Repository navigation
Expand file tree
/
Copy pathlayout.css
More file actions
85 lines (83 loc) · 2.05 KB
/
Copy pathlayout.css
File metadata and controls
85 lines (83 loc) · 2.05 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
.site-body.docs-body {
display: flex;
flex-direction: column;
min-height: 100vh;
font-size: var(--step-4);
}
.docs-shell {
display: grid;
flex: 1;
grid-template-columns: minmax(0, 1fr);
width: 100%;
max-width: calc(var(--content-width) + var(--nav-width) + var(--sp-10));
margin: 0 auto;
padding: var(--header-height) var(--sp-4) 0;
}
.docs-shell__main {
min-width: 0;
}
.docs-article__header,
.docs-article__content {
min-width: 0;
}
.docs-shell__nav {
margin: 0 calc(var(--sp-4) * -1);
background: var(--docs-sidebar-color);
border-bottom: 1px solid var(--color-border);
}
@media (min-width: 50rem) {
.docs-shell {
grid-template-columns: var(--nav-width-md) minmax(0, var(--content-width));
column-gap: var(--sp-7);
padding: var(--header-height) var(--sp-6) 0;
justify-content: center;
}
.docs-shell__nav {
margin: 0;
position: sticky;
top: var(--header-height);
align-self: start;
max-height: calc(100vh - var(--header-height));
overflow-y: auto;
background: transparent;
border: 0;
}
}
@media (min-width: 66.5rem) {
.docs-shell {
grid-template-columns: var(--nav-width) minmax(0, var(--content-width));
}
}
@media screen and (min-width: 80rem) {
.docs-shell {
max-width: 94rem;
grid-template-columns: var(--nav-width) minmax(0, 1fr);
}
.docs-article--with-toc {
display: grid;
grid-template-columns: minmax(0, var(--content-width)) 16rem;
column-gap: var(--sp-7);
align-items: start;
}
.docs-article__header,
.docs-article__content {
grid-column: 1;
max-width: var(--content-width);
}
.docs-article--with-toc > .docs-page-toc {
grid-column: 2;
grid-row: 1 / span 2;
position: sticky;
top: calc(var(--header-height) + var(--sp-7));
max-height: calc(100dvh - var(--header-height) - var(--sp-7) * 2);
overflow-y: auto;
overflow-wrap: anywhere;
margin: 0;
}
}
/* Phone navigation lives inside the shared header's Organizer Kit disclosure. */
@media (max-width: 640px) {
.docs-shell__nav {
display: none;
}
}