-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Expand file tree
/
Copy pathindex.module.css
More file actions
69 lines (63 loc) · 1.38 KB
/
index.module.css
File metadata and controls
69 lines (63 loc) · 1.38 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
@reference "../../styles/index.css";
.articleLayout {
@apply mx-auto
block
w-full
sm:grid
sm:grid-cols-[theme(spacing.52)_1fr]
sm:grid-rows-[1fr]
sm:overflow-visible
sm:[grid-template-areas:'sidebar_main''sidebar_footer']
md:grid-cols-[theme(spacing.64)_1fr]
lg:grid-cols-[theme(spacing.52)_1fr_theme(spacing.52)]
lg:[grid-template-areas:'sidebar_main_metabar''sidebar_footer_metabar']
xl:grid-cols-[theme(spacing.80)_1fr_theme(spacing.80)];
> *:nth-child(1) {
@apply [grid-area:sidebar]
lg:sticky
lg:top-0
lg:h-[100vh]
lg:overflow-y-auto;
}
> *:nth-child(2) {
@apply contents
sm:max-lg:block;
> *:first-child {
@apply sm:bg-gradient-subtle
sm:dark:bg-gradient-subtle-dark
p-4
[grid-area:main]
motion-safe:scroll-smooth
sm:bg-fixed
sm:p-12
xl:px-18;
}
> *:last-child {
@apply mt-8
border-t
[grid-area:metabar]
sm:mt-0
lg:sticky
lg:top-0
lg:max-w-xs
lg:border-t-0
lg: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;
}
}