-
Notifications
You must be signed in to change notification settings - Fork 0
/
dropdown.css
132 lines (130 loc) · 2.56 KB
/
dropdown.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;1,600&display=swap");
* {
margin: 0;
padding: 0;
font-family: "Poppins", sans-serif;
box-sizing: border-box;
}
body {
min-height: 100vh;
background: linear-gradient(45deg, #4e65ff, #92effd);
}
.navigation {
position: fixed;
top: 20px;
right: 20px;
width: 120px;
height: 60px;
background: #fff;
box-shadow: 0 25px 35px rgba(0, 0, 0, 0.1);
display: flex;
justify-content: space-between;
transition: height 0.5s, width 0.5s;
transition-delay: 0s, 0.75s;
overflow: hidden;
}
.navigation.active {
width: 300px;
height: 400px;
transition: width 0.5s, height 0.5s;
transition-delay: 0s, 0.75s;
}
.navigation .userBox {
position: relative;
width: 60px;
height: 60px;
display: flex;
align-items: center;
background: #fff;
overflow: hidden;
transition: 0.5s;
transition-delay: 0.5s;
}
.navigation.active .userBox {
width: calc(100%);
transition-delay: 0s;
}
.navigation .userBox .username {
white-space: nowrap;
color: #555;
font-size: 1.1em;
}
.navigation .userBox .imgBx {
position: relative;
min-width: 60px;
height: 60px;
overflow: hidden;
background: #000;
border-radius: 50%;
border: 10px solid #fff;
}
.navigation .userBox .imgBx img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
.navigation .menuToggle {
position: relative;
width: 60px;
height: 60px;
cursor: pointer;
/* background: #f00; */
display: flex;
justify-content: center;
align-items: center;
}
.navigation .menuToggle::before {
content: "";
position: absolute;
width: 32px;
height: 2px;
background: #555;
transform: translateY(-10px);
box-shadow: 0 10px #555;
transition: 0.5s;
}
.navigation .menuToggle::after {
content: "";
position: absolute;
width: 32px;
height: 2px;
background: #555;
transform: translateY(10px);
transition: 0.5s;
}
.navigation.active .menuToggle::before {
transform: translateY(0px) rotate(45deg);
box-shadow: 0 0px #555;
}
.navigation.active .menuToggle::after {
transform: translateY(0px) rotate(-45deg);
}
.menu {
position: absolute;
width: 100%;
height: calc(100%-60px);
margin-top: 60px;
padding: 20px;
border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.menu li {
list-style: none;
}
.menu li a {
display: flex;
align-items: center;
gap: 10px;
margin: 20px 0;
font-size: 1em;
text-decoration: none;
color: #555;
}
.menu li a:hover {
color: #4e65ff;
}
.menu li a ion-icon {
font-size: 1.5em;
}