-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenu.css
executable file
·197 lines (196 loc) · 3.64 KB
/
menu.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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
body {
margin:0;
padding: 0;
box-sizing: border-box;
}
.wosaMenu {
font-family: Verdana,sans-serif;
font-size: 12px;
background-color: black;
box-shadow: 1px 1px 4px 0 rgba(0,0,0,.1);
position: relative;
width: 100%;
z-index: 3;
}
.wosaMenu .wosa-logo {
color: #fff;
display: block;
float: right;
font-size: 1.3em;
padding: 12px 20px;
text-decoration: none;
}
.menu-wrapper {
background: #414141;
height: 45px;
line-height: 45px;
width: 100%;
}
.wosaMenu .wosa-logo{
line-height: 1;
}
/* menu icon */
.wosaMenu .menu-icon {
float: right;
padding: 22px 22px;
position: relative;
user-select: none;
cursor: pointer;
}
.wosaMenu .menu-icon .navicon {
background: #fff;
display: block;
height: 2px;
position: relative;
transition: background .2s ease-out;
width: 18px;
}
.wosaMenu .menu-icon .navicon:before,
.wosaMenu .menu-icon .navicon:after {
background: #fff;
content: '';
display: block;
height: 100%;
position: absolute;
transition: all .2s ease-out;
width: 100%;
}
.wosaMenu .menu-icon .navicon:before {
top: 5px;
}
.wosaMenu .menu-icon .navicon:after {
top: -5px;
}
/* menu btn */
.wosaMenu .menu-btn {
display: none;
}
.wosaMenu .menu-btn:checked ~ .menu-icon .navicon {
background: transparent;
}
.wosaMenu .menu-btn:checked ~ .menu-icon .navicon:before {
transform: rotate(-45deg);
}
.wosaMenu .menu-btn:checked ~ .menu-icon .navicon:after {
transform: rotate(45deg);
}
.wosaMenu .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:before,
.wosaMenu .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:after {
top: 0;
}
/* Dropdown CSS menus from: https://webcodeflow.com/responsive-navbar-with-dropdown/ */
#navbar {
float:left;
clear:none;
position: absolute;
z-index: 100;
padding-left: 5px;
line-height: 1;
visibility: visible;
color: #fff
}
#navbar ul {
list-style: none;
margin: 0px;
padding: 0px;
}
#navbar ul li {
color: inherit;
display: inline-block;
position: relative;
margin-bottom: 0px;
}
#navbar ul li a {
color: inherit;
text-decoration: none;
display: block;
padding: 1rem;
}
/* Hide Nested ul By Default */
#navbar ul li ul {
display: none;
}
#navbar ul li:hover {
background-color: dimgray;
color: #fff;
}
#navbar ul li:hover a {
color: #fff;
}
/* Nested Dropdown Show */
#navbar ul li:hover ul {
display: block;
position: absolute;
left: 0;
width: 200px;
}
#navbar ul li:hover ul li {
display: block;
background-color: #414141;
}
#navbar ul li:hover ul li a {
color: #fff;
}
#navbar ul li:hover ul li:hover {
background-color: dimgray;
color: inherit;
}
#navbar ul li:hover ul li span {
float: right;
color: #fff;
background: blue;
text-align: center;
font-size: 0.8rem;
border-radius: 5px;
}
#navbar ul li:hover ul li:hover span {
background: #fff;
}
/* responsive: small */
@media only screen and (max-width: 800px){
#navbar {
display:block;
width: 100%;
border-top: 1px solid dimgray;
position: absolute;
margin-top: 45px;
float:left;
padding-left: 0px;
visibility: hidden;
color: black;
}
#navbar ul li {
display: block;
}
#navbar ul li:hover ul {
width: 100%;
position: relative;
}
.wosaMenu .wosa-logo{
line-height: 1;
float:left;
}
#navbar ul{
background-color: lightgray;
line-height: 1;
display: block;
}
#navbar li {
border-bottom: 1px solid dimgray;
}
#navbar li a {
color: #000;
display: inline-block;
}
}
/* responsive: big */
@media only screen and (min-width: 800px) {
.wosaMenu .menu {
clear: none;
float: right;
max-height: none;
}
.wosaMenu .menu-icon {
display: none;
}
}