-
Notifications
You must be signed in to change notification settings - Fork 0
/
navbar.css
168 lines (123 loc) · 2.67 KB
/
navbar.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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
.clear {
clear: both;
}
#nav-bar {
display: inline-flex;
justify-content: flex-end;
gap: 2vw;
width: max-content;
max-width: 100%;
min-width: 200px;
height: max-content;
font-weight: 500;
font-size: 10pt;
border: 0px solid white;
padding: 2px 0vw 2px 3px;
margin: 0;
opacity: 0.85;
}
.navigation {
list-style: none;
padding: 0;
margin: 0;
}
.navigation ul li {
float: none;
}
.navigation li {
float: left;
margin: 0;
}
.navigation li:first-child {
-webkit-border-radius: 5px 5px 0 0;
border-radius: 5px 0 0 5px;
}
.navigation li a {
display: block;
padding: 0 20px;
text-decoration: none;
color: rgba(255, 255, 255, 0.603);
}
.dropdown {
cursor: pointer
}
/* This style background cover element fixes the selection bug when hovering the dropdown class element when
.navigation ul has no top margin (which is better visualy), and generates a gap between the dropdown image
and the dropdown-list, what makes the dropdown rollback when the cursor moves between the two child elements. */
.dropdown::before {
content: '';
position: absolute;
background-color: transparent;
width: 100%;
height: 100%;
}
.dropdown a {
min-width: 200px;
line-height: 50px;
}
.navigation ul {
display: none;
position: absolute;
list-style: none;
margin-left: 0px;
margin-top: 6px;
padding: 0;
overflow: hidden;
opacity: 0;
transition: all 2s;
}
.navigation li:hover > ul {
display: block;
border: solid 1px #ffffff54;
border-top: 0;
-webkit-box-shadow: 0px 3px 3px 0px rgba(0, 0, 0, 0.25);
box-shadow: 0px 3px 3px 0px rgba(0, 0, 0, 0.25);
opacity: 0.9;
}
.navigation li:hover > ul li:hover {
-webkit-border-radius: 0 0 5px 5px;
border-radius: 0 0 5px 5px;
}
.dropdown a:hover {
background-color: rgba(240, 248, 255, 0.199);
color: rgba(63, 37, 37, 0.945);
}
.navigation ul li:last-child a,
.navigation ul li:last-child a:hover {
-webkit-border-radius: 0 0 5px 5px;
border-radius: 0 0 5px 5px;
}
#login-button {
border-style: solid;
border-width: 1px;
border-radius: 4px;
border-color: rgba(255, 255, 255, 0.651);
background-color: transparent;
color: rgba(255, 255, 255, 0.664);
cursor: pointer;
}
#login-button:hover {
background-color: rgba(226, 226, 226, 0.938);
color: rgba(8, 8, 8, 0.712);
}
.favorite-options {
display: inline-flex;
justify-content: center;
align-items: center;
margin-right: 2vw;
}
.dropdown-list {
background-color: rgba(255, 255, 255, 0.075);
}
.dropdown-image {
width: 40px;
height: 100%;
transition: 1s margin;
opacity: 0.8;
}
.dropdown:hover > .dropdown-image {
margin-right: 150px;
}
.dropdown:hover > a {
opacity: 0.8;
}