-
Notifications
You must be signed in to change notification settings - Fork 12
/
navbar_default.css
194 lines (163 loc) · 3.68 KB
/
navbar_default.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
/*******************************************************************************
* Navbar Stylesheet
*******************************************************************************
*
* Authors: David Farmer, Rob Beezer
*
*******************************************************************************
*/
nav.ptx-navbar {
background: #ededed;
border: 0;
border-top: 1px solid #bababa;
border-bottom: 1px solid #bababa;
margin: 0;
z-index: 100;
font-family: "Open Sans";
overflow: visible;
display: flex;
}
.ptx-navbar .button {
font-size: 1.0em;
display: flex;
justify-content: center;
align-items: center;
padding: 0 10px;
gap: 10px;
min-height: 34px;
color: #333333;
background-color: #ededed;
border: 0;
border-right: 1px solid #bababa;
/* Disable accidental text-selection */
user-select: none;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.ptx-navbar .button:focus {
outline: thin dotted #333;
outline-offset: -2px;
}
.ptx-navbar .button:active {
box-shadow: rgba(0, 0, 0, 0.5) 0 2px 5px inset;
}
.ptx-navbar .button:hover {
background-color: #fafafa;
}
.ptx-navbar .button:active {
background-color: #e0e0e0;
}
.ptx-navbar .button.disabled {
opacity: .4;
color: #333333;
background: #ededed;
box-shadow: none;
}
.ptx-navbar .toc-toggle {
width: 240px;
gap: 0.4em;
}
.ptx-navbar .button .icon {
font-size: 1.5em;
}
.ptx-navbar :is(.treebuttons, .nav-runestone-controls) {
display: flex;
}
.ptx-navbar .treebuttons {
flex: 1 1 210px;
justify-content: end;
}
.ptx-navbar .nav-runestone-controls {
flex: 1 1 70px;
justify-content: end;
}
.pretext .navbar .dropdown {
height: 34px;
}
.ptx-navbar :is(.treebuttons, .nav-runestone-controls) > *:first-child {
border-left: 1px solid #bababa;
}
.ptx-navbar .treebuttons > * {
display: flex;
align-items: center;
justify-content: center;
min-width: 75px;
}
.ptx-navbar .treebuttons .icon {
margin: 0 -7px; /* chevrons have lots of horizontal padding */
}
.ptx-navbar :is(.index-button, .calculator-toggle) .icon {
display: none;
}
.ptx-navbar :is(.runestone-profile, .activecode-toggle, .searchbutton) .name {
display: none;
}
.ptx-navbar .index-button {
width: 70px;
}
.ptx-navbar .calculator-toggle {
width: 60px;
min-height: 32px;
text-align: center;
border-radius: 20px;
margin-left: 5px;
border: 2px solid #66f;
line-height: 25px;
margin-top: 1px;
background-color: #eef;
}
.ptx-navbar .calculator-toggle.open {
background: #fee;
border: 2px solid #f66;
}
@media screen and (max-width: 800px) {
.ptx-navbar {
position: fixed;
top: auto;
bottom: 0;
left: 0;
right: 0;
background: #ededed;
box-shadow: rgba(0, 0, 0, 0.3) 0px -2px 5px;
}
.ptx-navbar .nav-runestone-controls {
flex: 0;
}
.ptx-navbar .toc-toggle {
flex: 2 1 100px;
}
.ptx-navbar .treebuttons {
flex: 3 1 150px; /* 3:2 ratio with toc-toggle */
}
.ptx-navbar .treebuttons > * {
flex: 1 1;
min-width: 35px
}
.ptx-navbar .index-button {
display: none;
}
.ptx-navbar :is(.treebuttons) > *:first-child {
border-left: 0;
}
.ptx-navbar :is(.toc-toggle, .previous-button, .up-button, .next-button, .calculator-toggle, .index-button) .name {
display: none;
}
.pretext .ptx-navbar :is(.calculator-toggle, .index-button) .icon {
display: inline-block;
}
.ptx-navbar .nav-runestone-controls > *:first-child {
border-left: 0
}
.ptx-navbar .calculator-toggle {
width: auto;
height: 35px;
border-radius: 0;
margin-left: 0;
border: 0;
border-right: 1px solid #bababa;
line-height: inherit;
margin-top: 0;
background-color: inherit;
}
}