forked from github/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharticle.scss
43 lines (36 loc) · 834 Bytes
/
article.scss
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
/* Grid-based layout
------------------------------------------------------------------------------*/
.article-grid-container {
max-width: 720px;
@include breakpoint(xl) {
max-width: none;
display: grid;
grid-template-rows: auto 1fr;
grid-template-columns: minmax(500px, 720px) minmax(220px, 1fr);
grid-template-areas:
"top right-sidebar"
"bottom right-sidebar";
column-gap: $spacer-6;
}
@include breakpoint(xl) {
column-gap: $spacer-9;
}
}
.article-grid-toc {
grid-area: right-sidebar;
}
.article-grid-toc-content {
@include breakpoint(xl) {
position: sticky;
top: $spacer-4;
max-height: calc(100vh - #{$spacer-4});
overflow-y: auto;
padding-bottom: $spacer-4;
}
}
.article-grid-head {
grid-area: top;
}
.article-grid-body {
grid-area: bottom;
}