@@ -81,7 +81,6 @@ $sections: r-generate-sections(
8181 $base-color : $color-godot-blue ,
8282 $offset : $section-hue-offset ,
8383);
84- $subsection-base-color : grey ;
8584
8685$donate-robot-size : 500px ;
8786
@@ -97,6 +96,12 @@ $donate-robot-size: 500px;
9796 }
9897}
9998
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+
100105#scroll-to-top {
101106 position : fixed ;
102107 top : 0 ;
@@ -291,26 +296,34 @@ $donate-robot-size: 500px;
291296 border-radius : calc (var (--card-padding ) / 2 );
292297 text-decoration : none ;
293298 color : white ;
294- font-size : 0.75em ;
295-
296- @each $section-name , $section-colors in $sections {
297- & .link-#{$section-name } {
298- --color-top : #{map-get ($section-colors , " color-top" )} ;
299- --color-bottom : #{map-get ($section-colors , " color-bottom" )} ;
300- background : linear-gradient (
301- to bottom ,
302- var (--color-top ),
303- var (--color-bottom )
304- );
305- }
306- }
299+ font-size : 1em ;
300+
301+ background : linear-gradient (
302+ to bottom ,
303+ var (--color-top ),
304+ var (--color-bottom )
305+ );
306+ @include subsection-color ();
307307
308308 & :hover {
309309 & > span {
310310 text-decoration : underline ;
311311 }
312312 }
313313 }
314+
315+ & .main-list {
316+ font-size : 150% ;
317+
318+ .link {
319+ @each $section-name , $section-colors in $sections {
320+ & .link-#{$section-name } {
321+ --color-top : #{map-get ($section-colors , " color-top" )} ;
322+ --color-bottom : #{map-get ($section-colors , " color-bottom" )} ;
323+ }
324+ }
325+ }
326+ }
314327}
315328
316329#special-thanks-release-authors {
@@ -1317,8 +1330,7 @@ $donate-robot-size: 500px;
13171330 }
13181331
13191332 & .subsection {
1320- --color-top : #{adjust-color ($subsection-base-color , $lightness : 10 )} ;
1321- --color-bottom : #{$subsection-base-color } ;
1333+ @include subsection-color ();
13221334 }
13231335
13241336 // Remove margins from the .subsection under a .section
0 commit comments