Repository navigation
Expand file tree
/
Copy pathsite-navigation.css
More file actions
196 lines (195 loc) · 4.19 KB
/
Copy pathsite-navigation.css
File metadata and controls
196 lines (195 loc) · 4.19 KB
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
@import "./theme.css";
/* Site navigation is independent of formula themes and host editor SDK styles. */
.math-site-header {
display: block;
height: auto;
min-height: 80px;
margin: 0;
padding: 0;
border: 0;
border-bottom: 1px solid #dce0e5;
background: #fafaf8;
color: #20242b;
color-scheme: light;
font: 14px/1.5 system-ui, sans-serif;
position: relative;
z-index: 50;
}
.math-site-header .math-site-header-inner {
display: flex;
align-items: center;
gap: 28px;
box-sizing: border-box;
max-width: 1264px;
min-height: 80px;
margin: 0 auto;
padding: 16px 48px;
}
.math-site-header a {
color: inherit;
text-decoration: none;
letter-spacing: 0;
}
.math-site-header .math-site-brand {
font-size: 23px;
font-weight: 650;
letter-spacing: -1px;
white-space: nowrap;
}
.math-site-header .math-site-brand span {
color: #606975;
font-weight: 400;
}
.math-site-header .math-site-links {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 20px;
margin: 0 0 0 auto;
padding: 0;
border: 0;
}
.math-site-links > a,
.math-site-samples > summary {
font: 500 13px/1.5 system-ui, sans-serif;
white-space: nowrap;
}
.math-site-header a:hover,
.math-site-samples > summary:hover {
color: #315efb;
text-decoration: underline;
text-underline-offset: 5px;
}
.math-site-header [aria-current],
.math-site-samples > summary[data-active] {
color: #315efb;
font-weight: 650;
}
.math-site-header :is(a, select, summary):focus-visible {
outline: 2px solid #315efb;
outline-offset: 4px;
}
/* Keep the native select's keyboard behavior while matching the site controls.
Explicit metrics avoid page resets and OS appearance changing its closed box. */
.math-site-header .math-site-language {
position: relative;
display: flex;
flex-shrink: 0;
align-items: center;
gap: 8px;
color: #606975;
margin: 0;
font: 13px/20px system-ui, sans-serif;
white-space: nowrap;
}
.math-site-header .math-site-language::after {
content: "";
position: absolute;
right: 13px;
top: calc(50% - 4px);
width: 6px;
height: 6px;
border-right: 1.5px solid currentColor;
border-bottom: 1.5px solid currentColor;
transform: rotate(45deg);
pointer-events: none;
}
.math-site-header [data-site-locale] {
appearance: none;
-webkit-appearance: none;
box-sizing: border-box;
width: 104px;
height: 36px;
margin: 0;
padding: 7px 32px 7px 12px;
border: 1px solid #dce0e5;
border-radius: 6px;
background: #fff;
color: #20242b;
font: 500 13px/20px system-ui, sans-serif;
letter-spacing: normal;
text-align: left;
cursor: pointer;
}
.math-site-header [data-site-locale]:hover {
border-color: #aeb8c6;
background: #f3f5fb;
}
.math-site-header [data-site-locale]:focus-visible {
border-color: #315efb;
outline: 2px solid #315efb;
outline-offset: 2px;
}
.math-site-header .math-site-samples {
position: relative;
padding: 0;
margin: 0;
border: 0;
color: inherit;
font: inherit;
}
.math-site-samples > summary {
cursor: pointer;
list-style: none;
padding: 0;
margin: 0;
}
.math-site-samples > summary::-webkit-details-marker {
display: none;
}
.math-site-samples > summary::after {
content: "⌄";
margin-left: 5px;
}
.math-site-samples > div {
position: absolute;
top: calc(100% + 12px);
left: -12px;
min-width: 185px;
padding: 6px;
background: white;
border: 1px solid #dce0e5;
border-radius: 8px;
box-shadow: 0 8px 24px #20242b14;
}
.math-site-samples a {
display: block;
padding: 8px 10px;
font-size: 13px;
white-space: nowrap;
border-radius: 4px;
}
.math-site-samples a:hover {
background: #edf1ff;
}
@media (max-width: 1050px) {
.math-site-header .math-site-header-inner {
flex-wrap: wrap;
gap: 14px 24px;
padding: 16px 24px;
}
.math-site-header .math-site-language {
margin-left: auto;
}
.math-site-header .math-site-links {
order: 3;
width: 100%;
margin: 0;
gap: 14px 24px;
}
}
@media (max-width: 480px) {
.math-site-header .math-site-header-inner {
padding-inline: 20px;
gap: 16px;
}
.math-site-header .math-site-links {
gap: 12px 18px;
}
.math-site-language > span {
display: none;
}
.math-site-header .math-site-brand {
font-size: 21px;
}
}