@@ -96,12 +96,6 @@ $donate-robot-size: 500px;
9696 }
9797}
9898
99- $subsection-base-color : grey ;
100- @mixin subsection-color () {
101- --color-top : #{adjust-color ($subsection-base-color , $lightness : 10 )} ;
102- --color-bottom : #{$subsection-base-color } ;
103- }
104-
10599#scroll-to-top {
106100 position : fixed ;
107101 top : 0 ;
@@ -289,21 +283,36 @@ $subsection-base-color: grey;
289283 .link {
290284 display : flex ;
291285 min-width : 50px ;
292- font-weight : 700 ;
293286 align-items : center ;
294287 justify-content : center ;
295288 padding : calc (var (--card-padding ) / 2 );
296289 border-radius : calc (var (--card-padding ) / 2 );
297290 text-decoration : none ;
298291 color : white ;
292+
299293 font-size : 1em ;
294+ font-weight : 800 ;
300295
301296 background : linear-gradient (
302297 to bottom ,
303298 var (--color-top ),
304299 var (--color-bottom )
305300 );
306- @include subsection-color ();
301+
302+ @at-root #{selector-replace (& , " .links-container" , " .links-container.links-container-subsections" )} {
303+ font-weight : 600 ;
304+ --color-top : var (--color-top-muted );
305+ --color-bottom : var (--color-bottom-muted );
306+ }
307+ @at-root #{selector-replace (& , " .links-container" , " .links-container.main-list" )} {
308+ font-size : 150% ;
309+ @each $section-name , $section-colors in $sections {
310+ & .link-#{$section-name } {
311+ --color-top : #{map-get ($section-colors , " color-top" )} ;
312+ --color-bottom : #{map-get ($section-colors , " color-bottom" )} ;
313+ }
314+ }
315+ }
307316
308317 & :hover {
309318 & > span {
@@ -1307,36 +1316,9 @@ $subsection-base-color: grey;
13071316 margin-bottom : 0 ;
13081317 }
13091318
1310- @each $section-name , $section-colors in $sections {
1311- & .section-#{$section-name } {
1312- --color-top : #{map-get ($section-colors , " color-top" )} ;
1313- --color-bottom : #{map-get ($section-colors , " color-bottom" )} ;
1314- --color-selection : #{map-get ($section-colors , " color-selection" )} ;
1315- --color-invert : #{map-get ($section-colors , " color-invert" )} ;
1316- --color-highlight : #{map-get ($section-colors , " color-highlight" )} ;
1317- --color-highlight-switch : #{map-get (
1318- $section-colors ,
1319- " color-highlight--dark"
1320- )} ;
1321- --color-invert-highlight : #{map-get (
1322- $section-colors ,
1323- " color-invert-highlight"
1324- )} ;
1325- @include is-dark () {
1326- --color-highlight : #{map-get (
1327- $section-colors ,
1328- " color-highlight--dark"
1329- )} ;
1330- --color-highlight-switch : #{map-get (
1331- $section-colors ,
1332- " color-highlight"
1333- )} ;
1334- }
1335- }
1336- }
1337-
13381319 & .subsection {
1339- @include subsection-color ();
1320+ --color-top : var (--color-top-muted );
1321+ --color-bottom : var (--color-bottom-muted );
13401322 }
13411323
13421324 // Remove margins from the .subsection under a .section
@@ -1355,13 +1337,19 @@ $subsection-base-color: grey;
13551337
13561338 .section-title h3 {
13571339 position : relative ;
1358- font-size : clamp (4 cqw , 50px , 6 cqw );
13591340 background : var (--color-top )
13601341 linear-gradient (to bottom , var (--color-top ), var (--color-bottom ));
13611342 padding : calc (var (--card-padding ) * 2 );
13621343 border-radius : var (--card-padding );
13631344 margin-bottom : 0 ;
13641345
1346+ font-size : clamp (4 cqw , 50px , 6 cqw );
1347+ font-weight : 800 ;
1348+ @at-root #{selector-replace (& , " .section" , " .section.subsection" )} {
1349+ font-size : clamp (2 cqw , 35px , 4 cqw );
1350+ font-weight : 600 ;
1351+ }
1352+
13651353 contain : paint;
13661354 .section-robot {
13671355 position : absolute ;
@@ -1385,6 +1373,36 @@ $subsection-base-color: grey;
13851373 }
13861374 }
13871375 }
1376+
1377+ @each $section-name , $section-colors in $sections {
1378+ .section-#{$section-name } {
1379+ --color-top : #{map-get ($section-colors , " color-top" )} ;
1380+ --color-bottom : #{map-get ($section-colors , " color-bottom" )} ;
1381+ --color-top-muted : #{map-get ($section-colors , " color-top-muted" )} ;
1382+ --color-bottom-muted : #{map-get ($section-colors , " color-bottom-muted" )} ;
1383+ --color-selection : #{map-get ($section-colors , " color-selection" )} ;
1384+ --color-invert : #{map-get ($section-colors , " color-invert" )} ;
1385+ --color-highlight : #{map-get ($section-colors , " color-highlight" )} ;
1386+ --color-highlight-switch : #{map-get (
1387+ $section-colors ,
1388+ " color-highlight--dark"
1389+ )} ;
1390+ --color-invert-highlight : #{map-get (
1391+ $section-colors ,
1392+ " color-invert-highlight"
1393+ )} ;
1394+ @include is-dark () {
1395+ --color-highlight : #{map-get (
1396+ $section-colors ,
1397+ " color-highlight--dark"
1398+ )} ;
1399+ --color-highlight-switch : #{map-get (
1400+ $section-colors ,
1401+ " color-highlight"
1402+ )} ;
1403+ }
1404+ }
1405+ }
13881406 }
13891407}
13901408
0 commit comments