11@import ' _reset.scss' ;
22@import ' _palette.scss' ;
33
4+ $content-max-width : 50rem ;
5+
46:root {
57 --block-gap : 1rem ;
68 --section-gap : 2.4rem ;
79 --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 ;
913}
1014
1115:root {
12- font-size : 1.125em ;
13- line-height : 1.5 ;
1416 font-family : Inter, Roboto, ' Helvetica Neue' , ' Arial Nova' , ' Nimbus Sans' , Arial , sans-serif ;
1517 accent-color : var (--accent-color );
1618 color-scheme : light dark ;
17- -webkit-text-size-adjust : none ; // Stop iOS Safari from adjusting the font size in landscape.
1819 color : var (--text-color );
1920 background-color : var (--bg-0-color );
2021
3536}
3637
3738@import ' _typography.scss' ;
38- @import ' _form .scss' ;
39+ @import ' _layout .scss' ;
3940@import ' _post-content.scss' ;
41+ @import ' _form.scss' ;
4042
4143body {
4244 display : grid ;
43- grid-template-columns : 1fr minmax (0 , 50 em ) 1fr ;
45+ grid-template-columns : 1fr minmax (0 , $content-max-width ) 1fr ;
4446}
4547
4648.skip-link {
@@ -57,19 +59,6 @@ body {
5759 }
5860}
5961
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-
7362.site-title {
7463 --fg-color : var (--text-color );
7564 font-size : 1.2em ;
@@ -111,21 +100,20 @@ figure {
111100}
112101
113102footer {
114- margin-top : 4rem ;
115- background-color : var (--bg-1-color );
103+ // margin-top: 4rem;
116104 position : relative ;
117105 padding-top : 1.5em ; // TODO: variable / share with ferris icon
118-
106+
119107 & :before {
120108 position : absolute ;
121109 top : -0.8em ;
122110 left : calc (50% - 1.125em );
123111 content : " " ;
124112 display : inline-block ;
125113 height : 1.5em ;
126- aspect-ratio : 1.5 ;
114+ aspect-ratio : var ( --ferris-aspect-ratio ) ;
127115 background-color : color-mix (in oklab , var (--accent-color ), currentColor 20% );
128- mask-image : url ( ./8bit- ferris.svg );
116+ mask-image : var ( -- ferris-image );
129117 mask-size : contain ;
130118 }
131119
@@ -144,15 +132,6 @@ footer {
144132 vertical-align : middle ;
145133}
146134
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-
156135.social-links {
157136 list-style : none ;
158137 padding-inline-start : 0 ; // TODO: only style lists in content
@@ -166,6 +145,7 @@ footer {
166145}
167146
168147.site-footer {
148+ background-color : var (--bg-1-color );
169149 font-size : .9em ;
170150 --block-gap : .5rem ;
171151
@@ -179,12 +159,3 @@ footer {
179159 margin-bottom : var (--block-gap );
180160 }
181161}
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