-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Expand file tree
/
Copy pathindex.module.css
More file actions
73 lines (67 loc) · 1.49 KB
/
index.module.css
File metadata and controls
73 lines (67 loc) · 1.49 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
@reference "../../styles/index.css";
.articleLayout {
@apply max-w-10xl
ml:grid
ml:grid-cols-[--spacing(56)_1fr]
ml:grid-rows-[1fr]
ml:overflow-visible
ml:[grid-template-areas:'sidebar_main''sidebar_footer']
3xl:grid-cols-[--spacing(80)_1fr_--spacing(80)]
mx-auto
block
w-full
xl:grid-cols-[--spacing(56)_1fr_--spacing(64)]
xl:[grid-template-areas:'sidebar_main_metabar''sidebar_footer_metabar']
2xl:grid-cols-[--spacing(72)_1fr_--spacing(72)];
> *:nth-child(1) {
@apply ml:sticky
ml:top-[var(--header-height)]
ml:h-[calc(100svh-var(--header-height))]
ml:overflow-y-auto
[grid-area:sidebar];
}
> *:nth-child(2) {
@apply ml:max-xl:block
contents;
> *:first-child {
@apply ml:bg-gradient-subtle
ml:dark:bg-gradient-subtle-dark
3xl:px-18
ml:bg-fixed
ml:p-8
min-w-0
p-4
[grid-area:main]
motion-safe:scroll-smooth
xl:p-10
2xl:p-12;
}
> *:last-child {
@apply ml:mt-0
mt-8
border-t
[grid-area:metabar]
xl:sticky
xl:top-0
xl:max-w-none
xl:border-t-0
xl:border-l;
}
}
> *:nth-child(3) {
@apply sticky
bottom-0
flex
w-full
flex-col
items-center
self-stretch
border-t
border-t-neutral-200
bg-white
py-4
[grid-area:footer]
dark:border-t-neutral-900
dark:bg-neutral-950;
}
}