1
1
@import ' _reset.scss' ;
2
2
@import ' _palette.scss' ;
3
3
4
+ $content-max-width : 50rem ;
5
+
4
6
:root {
5
7
--block-gap : 1rem ;
6
8
--section-gap : 2.4rem ;
7
9
--box-rounding : 1rem ;
8
- --content-padding : 2rem ; // This padding has to make room for the anchor links
10
+ --content-padding : 1rem ;
11
+ --ferris-image : url (./8bit-ferris.svg );
12
+ --ferris-aspect-ratio : 1.5 ;
9
13
}
10
14
11
15
:root {
12
- font-size : 1.125em ;
13
- line-height : 1.5 ;
14
16
font-family : Inter, Roboto, ' Helvetica Neue' , ' Arial Nova' , ' Nimbus Sans' , Arial , sans-serif ;
15
17
accent-color : var (--accent-color );
16
18
color-scheme : light dark ;
17
- -webkit-text-size-adjust : none ; // Stop iOS Safari from adjusting the font size in landscape.
18
19
color : var (--text-color );
19
20
background-color : var (--bg-0-color );
20
21
35
36
}
36
37
37
38
@import ' _typography.scss' ;
38
- @import ' _form .scss' ;
39
+ @import ' _layout .scss' ;
39
40
@import ' _post-content.scss' ;
41
+ @import ' _form.scss' ;
40
42
41
43
body {
42
44
display : grid ;
43
- grid-template-columns : 1fr minmax (0 , 50 em ) 1fr ;
45
+ grid-template-columns : 1fr minmax (0 , $content-max-width ) 1fr ;
44
46
}
45
47
46
48
.skip-link {
@@ -57,19 +59,6 @@ body {
57
59
}
58
60
}
59
61
60
- .site-header {
61
- display : grid ;
62
- grid-template-columns : subgrid ;
63
- grid-column : 1 / 4 ;
64
- border-bottom : 2px solid var (--border-color );
65
- margin-bottom : var (--section-gap );
66
-
67
- > .wrapper {
68
- grid-column : 2 ;
69
- padding : .5rem var (--content-padding );
70
- }
71
- }
72
-
73
62
.site-title {
74
63
--fg-color : var (--text-color );
75
64
font-size : 1.2em ;
@@ -111,21 +100,20 @@ figure {
111
100
}
112
101
113
102
footer {
114
- margin-top : 4rem ;
115
- background-color : var (--bg-1-color );
103
+ // margin-top: 4rem;
116
104
position : relative ;
117
105
padding-top : 1.5em ; // TODO: variable / share with ferris icon
118
-
106
+
119
107
& :before {
120
108
position : absolute ;
121
109
top : -0.8em ;
122
110
left : calc (50% - 1.125em );
123
111
content : " " ;
124
112
display : inline-block ;
125
113
height : 1.5em ;
126
- aspect-ratio : 1.5 ;
114
+ aspect-ratio : var ( --ferris-aspect-ratio ) ;
127
115
background-color : color-mix (in oklab , var (--accent-color ), currentColor 20% );
128
- mask-image : url ( ./8bit- ferris.svg );
116
+ mask-image : var ( -- ferris-image );
129
117
mask-size : contain ;
130
118
}
131
119
@@ -144,15 +132,6 @@ footer {
144
132
vertical-align : middle ;
145
133
}
146
134
147
- .anchor {
148
- @media (prefers-contrast : no- preference) and (hover : hover) {
149
- transition : opacity 125ms ;
150
- & :not (:focus ):not (:hover ) {
151
- opacity : .1 ;
152
- }
153
- }
154
- }
155
-
156
135
.social-links {
157
136
list-style : none ;
158
137
padding-inline-start : 0 ; // TODO: only style lists in content
@@ -166,6 +145,7 @@ footer {
166
145
}
167
146
168
147
.site-footer {
148
+ background-color : var (--bg-1-color );
169
149
font-size : .9em ;
170
150
--block-gap : .5rem ;
171
151
@@ -179,12 +159,3 @@ footer {
179
159
margin-bottom : var (--block-gap );
180
160
}
181
161
}
182
-
183
- .footnote-definition {
184
- --block-gap : .5rem ;
185
- margin-top : var (--section-gap );
186
- }
187
-
188
- .footnote-definition + .footnote-definition {
189
- margin-top : 0 ;
190
- }
0 commit comments