forked from nowthis/sankeymatic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nav.css
166 lines (141 loc) · 2.81 KB
/
nav.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
footer nav,
header nav {
background-color: #035;
color: white;
padding: 3px 5px;
font-size: initial;
}
.manual_title {
margin-top: 0;
color: #047;
}
.skm_logo_small {
vertical-align: middle;
padding-bottom: 3px;
}
.main_nav_behavior {
width: auto;
background: #035;
/* Optional */
position: sticky;
top: 0;
}
.main_nav_behavior label,
.main_nav_checkbox,
.side_nav_behavior label,
.side_nav_checkbox { display: none; }
/* Horizontal Menu Items */
.main_nav_items,
.main_nav_items ul {
display: flex;
width: 100%;
align-items: center; /* works like vertical-align: middle, but for flex. */
}
.main_nav_items ul {
list-style-type: none;
padding: 0.1em 0.5em;
margin: 0;
}
.main_nav_items ul li {
text-align: center;
padding-right: 2.5em;
}
.main_nav_items li a {
/* width: 20%; /* 100% / 5 tabs = 20% */
padding: 8px;
color: white;
text-decoration: none;
text-align: center;
}
.main_nav_items a:hover {
background-color: #069;
}
.sidenavlinks {
float: left;
background-color: #F4F2E9;
border-right: 4px solid black;
border-left: 1px dotted black;
border-top: 1px dotted black;
border-bottom: 1px solid #999;
padding-left: 5px;
margin-right: 20px;
}
.sidenavlinks ul {
list-style-type: none;
padding: 0;
margin: 0.5em;
}
.sidenavlinks ul li {
margin-top: 0.5em;
font-size: medium;
}
.sidenavlinks h2 {
font-size: medium;
margin-bottom: 0.5em;
font-style: italic;
padding-left: 0.4em;
}
.sidenavlinks h3 {
font-size: medium;
margin-top: 0.2em;
margin-bottom: 0.5em;
}
.sidenavlinks section {
padding: 6px;
border-top: 1px dotted gray;
}
@media screen and (max-width: 850px) {
main,
#manual_main {
margin-left: 0.3em;
margin-right: 0.3em;
}
.main_nav_behavior label {
display: inline-block;
color: white;
background: #035;
font-style: normal;
font-size: 1.2em;
padding: 10px;
}
nav.side_nav_behavior {
float: none;
width: 100%;
}
.side_nav_behavior label {
display: inline-block;
font-style: normal;
font-size: 1.2em;
padding: 10px;
}
.main_nav_items ul {
display: block;
box-sizing: border-box;
width: 100%;
padding: 0;
}
.main_nav_items ul li {
width: auto;
border-top: 1px solid #069;
text-align: left;
padding-left: 2em;
padding-top: 0.5em;
padding-bottom: 0.5em;
}
.main_nav_items,
.side_nav_contents { display: none; }
.main_nav_behavior input:checked ~ .main_nav_items,
.side_nav_behavior input:checked ~ .side_nav_contents {
display: block;
}
.side_nav_behavior {
border-left-style: none;
border-right-style: none;
border-top-style: none;
border-bottom: 2px solid black;
width: auto;
}
.narrowlabel { display: inherit; }
.widelabel { display: none; }
.manual_title { margin-top: 1em; }
}