-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsz-navbar.css
127 lines (121 loc) · 2.84 KB
/
sz-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
.sz-navbar {
width: 100%;
height: 64px;
/* OVERRIDE WITH YOUR OWN HEIGHT */
background-color: #000;
/* OVERRIDE WITH YOUR OWN BG COLOR */
position: fixed;
top: 0;
left: 0;
z-index: 5;
}
.sz-navbar-inner {
width: 100%;
height: 100%;
display: -webkit-inline-box;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.sz-navbar-items {
height: 100%;
display: -webkit-box;
display: -ms-flexbox;
font-size: 0.9rem;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
#sz-navbar-check {
display: none;
}
@media (min-width: 1400px) {
.sz-navbar-inner {
max-width: 1500px;
position: relative;
left: 50%;
-webkit-transform: translateX(-50%);
transform: translateX(-50%);
}
.sz-navbar-hamburger {
display: none;
}
.sz-navbar-right .sz-navbar-items {
margin-left: auto;
}
.sz-navbar-right .sz-navbar-items .sz-navbar-item {
margin-left: 8px;
}
.sz-navbar-left .sz-navbar-item {
margin-right: 8px;
}
}
@media (max-width: 1400px) {
.sz-navbar-inner {
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
}
.sz-navbar-items {
position: fixed;
top: 0;
bottom: 0;
width: 100%;
background-color: #eee;
/* OVERRIDE WITH YOUR OWN MENU BG COLOR */
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-flow: column nowrap;
flex-flow: column nowrap;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
}
.sz-navbar-hamburger {
position: absolute;
z-index: 6;
top: 50%;
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
}
.sz-navbar-left .sz-navbar-items {
left: 0;
margin-left: -100%;
-webkit-transition: margin-left 0.2s ease;
transition: margin-left 0.2s ease;
}
.sz-navbar-left #sz-navbar-check:checked ~ .sz-navbar-items {
margin-left: 0;
}
.sz-navbar-left .sz-navbar-hamburger {
left: 24px;
/* OVERRIDE WITH YOUR OWN HAMBURGER BUTTON MARGIN */
}
.sz-navbar-right .sz-navbar-items {
right: 0;
margin-right: -100%;
-webkit-transition: margin-right 0.2s ease;
transition: margin-right 0.2s ease;
}
.sz-navbar-right #sz-navbar-check:checked ~ .sz-navbar-items {
margin-right: 0;
}
.sz-navbar-right .sz-navbar-hamburger {
right: 24px;
/* OVERRIDE WITH YOUR OWN HAMBURGER BUTTON MARGIN */
}
div.sz-navbar-item:not(:last-of-type) {
margin-bottom: 8px;
}
}
@media (min-width: 1200px){
#sota-navbar .sota-navbar-logo, #sota-navbar .sota-navbar-logo a {
margin-left: 1em;
margin-top: 0.02em;
}
}