Repository navigation
Expand file tree
/
Copy path_styles_project.scss
More file actions
368 lines (308 loc) · 7.63 KB
/
Copy path_styles_project.scss
File metadata and controls
368 lines (308 loc) · 7.63 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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
// Blowhorn docs skin: docs-only styling over Docsy and Bootstrap.
// Every value is a token from static/assets/brand/tokens.json (version 1).
// Light is the default; dark follows the OS. The marketing sheet (site.css,
// loaded after the Docsy bundle) owns the header, footer, type ramp, and
// element rules; this file owns the docs layout and Docsy components.
// ---------- Docs layout ----------
.docs-wrap {
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: var(--space-8);
padding-top: var(--space-8);
padding-bottom: var(--space-12);
}
.docs-main {
min-width: 0;
}
.docs-toc {
display: none;
}
@media (min-width: 992px) {
.docs-wrap {
grid-template-columns: 15rem minmax(0, 1fr);
}
}
@media (min-width: 1280px) {
.docs-wrap {
grid-template-columns: 15rem minmax(0, 1fr) 13.75rem;
}
.docs-toc {
display: block;
}
}
// ---------- Docs type ----------
// Section and leaf titles come from the template with the brand h1 class.
// Landing and Markdown headings below match the same ramp.
.docs-landing h1 {
font-family: var(--font-display);
font-weight: 700;
font-size: clamp(32px, 4.5vw, 40px);
line-height: 1.15;
letter-spacing: -0.015em;
color: var(--ink-wordmark);
}
.docs-landing h2 {
font-family: var(--font-display);
font-weight: 700;
font-size: 28px;
line-height: 34px;
letter-spacing: -0.01em;
color: var(--ink-wordmark);
}
.docs-main .prose h2 {
font-family: var(--font-display);
font-weight: 700;
font-size: 28px;
line-height: 34px;
letter-spacing: -0.01em;
color: var(--ink-wordmark);
margin-top: var(--space-8);
}
.docs-main .prose h3 {
font-family: var(--font-display);
font-weight: 700;
font-size: 20px;
line-height: 26px;
letter-spacing: -0.005em;
color: var(--ink-wordmark);
margin-top: var(--space-6);
}
.docs-lead {
color: var(--ink-muted);
}
// ---------- Landing: banner, cards, platforms, note ----------
.docs-banner {
background: var(--surface-tint);
border-radius: var(--radius-lg);
padding: var(--space-4) var(--space-6);
margin-top: var(--space-6);
max-width: 62ch;
}
.docs-start,
.docs-quadrants {
margin-top: var(--space-6);
}
.docs-card {
display: flex;
flex-direction: column;
text-decoration: none;
color: var(--ink);
}
.docs-card:hover {
background: var(--surface-tint);
text-decoration: none;
color: var(--ink);
}
.docs-card > span {
display: block;
}
.docs-card > span:last-child {
color: var(--ink-muted);
}
.docs-landing .platforms {
margin-top: var(--space-6);
grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
}
.docs-landing a.platform {
text-decoration: none;
}
.docs-landing a.platform:hover {
background: var(--surface-tint);
text-decoration: none;
}
.docs-note {
margin-top: var(--space-8);
color: var(--ink-muted);
max-width: 62ch;
}
// ---------- Sidebar, search, breadcrumb, contents, pager ----------
.docs-sidebar {
min-width: 0;
}
.docs-sidebar a {
text-decoration: none;
}
// The tree follows layer5io/docs (assets/scss/_sidebar-tree.scss): one link
// color for sections, subsections and pages, section titles in a heavier
// weight, the current page bold. Indent is one small step per level so page
// titles stay on one line, and the current page carries the brand accent.
.td-sidebar-nav {
font-size: 14px;
line-height: 20px;
}
.td-sidebar-nav .td-sidebar-nav__section .ul-1 ul {
padding-left: var(--space-3);
}
.td-sidebar-nav .td-sidebar-link {
display: block;
flex: 1 1 auto;
min-width: 0;
padding: var(--space-1) var(--space-2);
border-left: 2px solid transparent;
border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
color: var(--ink);
}
.td-sidebar-nav .td-sidebar-link__section {
font-weight: 600;
}
.td-sidebar-nav .td-sidebar-link__page {
font-weight: 400;
}
.td-sidebar-nav a.td-sidebar-link:hover,
.td-sidebar-nav a.td-sidebar-link:focus-visible {
color: var(--link);
background: var(--surface-raised);
}
.td-sidebar-nav .active-path > a.td-sidebar-link,
.td-sidebar-nav .active-path > .td-sidebar-row > a.td-sidebar-link {
color: var(--link);
}
.td-sidebar-nav a.td-sidebar-link.active {
color: var(--link);
font-weight: 700;
background: var(--surface-tint);
border-left-color: var(--teal);
}
.td-sidebar-nav .td-sidebar-link.tree-root {
font-weight: 700;
border-bottom: 1px solid var(--line);
border-radius: 0;
margin-bottom: var(--space-2);
}
.td-sidebar-row {
display: flex;
align-items: flex-start;
}
.td-sidebar-fold {
flex: none;
width: 28px;
height: 28px;
padding: 0;
border: 0;
border-radius: var(--radius-sm);
background: none;
color: var(--ink-muted);
cursor: pointer;
}
.td-sidebar-fold::before {
content: "";
display: block;
width: 7px;
height: 7px;
margin: auto;
border-right: 2px solid currentColor;
border-bottom: 2px solid currentColor;
transform: rotate(-45deg);
transition: transform 0.15s ease;
}
.td-sidebar-fold[aria-expanded="true"]::before {
transform: rotate(45deg);
}
.td-sidebar-fold:hover {
color: var(--link);
background: var(--surface-raised);
}
@media (prefers-reduced-motion: reduce) {
.td-sidebar-fold::before {
transition: none;
}
}
.td-sidebar__search {
position: relative;
padding-bottom: var(--space-4);
}
.td-search__input {
border-radius: var(--radius-md);
}
// Offline search results: an inline box under the field (see
// assets/js/offline-search.js), not a Bootstrap popover.
.td-offline-search-results {
position: absolute;
top: calc(100% - var(--space-4) + var(--space-2));
left: 0;
right: 0;
z-index: 100;
background: var(--surface);
border: 1px solid var(--line);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-soft);
padding: var(--space-4);
}
.td-offline-search-results__close {
border: 0;
background: none;
color: var(--ink-muted);
font-size: 20px;
line-height: 1;
padding: var(--space-1) var(--space-2);
cursor: pointer;
}
.td-offline-search-results__close:hover {
color: var(--ink);
}
// Narrow viewports hide the section nav until the toggle opens it: the nav
// carries Bootstrap's collapse class, so it starts hidden, and the .show
// class below reopens it. Wide viewports always show the nav through Docsy's
// own rules. The toggle button is Docsy's; the class is wired in
// assets/js/docs-toggle.js, without Bootstrap's JavaScript.
#td-section-nav {
display: none;
}
#td-section-nav.show {
display: block;
}
// The toggle button ships without content or styling upstream; draw the
// three bars here so narrow viewports can open the section nav.
.td-sidebar__toggle {
flex: none;
width: 40px;
height: 40px;
margin-left: var(--space-2);
border: 1px solid var(--line);
border-radius: var(--radius-md);
color: var(--ink);
}
.td-sidebar__toggle::before {
content: "";
display: block;
width: 18px;
height: 12px;
margin: auto;
border-top: 2px solid currentColor;
border-bottom: 2px solid currentColor;
background: linear-gradient(currentColor, currentColor) center/100% 2px no-repeat;
}
.td-breadcrumbs {
font-size: 13px;
line-height: 20px;
margin-bottom: var(--space-4);
}
.td-breadcrumbs a {
text-decoration: none;
}
.td-breadcrumbs .breadcrumb-item.active {
color: var(--ink-muted);
}
.td-toc {
font-size: 13px;
line-height: 20px;
}
.td-toc a {
color: var(--ink-muted);
text-decoration: none;
}
.td-toc a:hover {
color: var(--link);
}
.section-index .entry h5 a {
text-decoration: none;
}
.docs-main .btn-primary {
border-radius: var(--radius-md);
text-decoration: none;
}
// Keep code samples inside narrow columns: the grid items already allow
// shrinking, and samples scroll instead of pushing the page wider.
.docs-main pre {
max-width: 100%;
}