Skip to content

Commit 04e8ce4

Browse files
committed
Fix links colors and size
1 parent 5b8f60a commit 04e8ce4

File tree

2 files changed

+30
-23
lines changed

2 files changed

+30
-23
lines changed

_sass/common/_release_style.scss

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -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

pages/releases/4.4.html

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -174,14 +174,9 @@
174174
<div class="release-card-content">
175175
<div class="release-card-content-container">
176176
<div class="c-content">
177-
<ul class="links-container">
177+
<ul class="links-container main-list">
178178
<li><a class="link link-highlights" href="#highlights"><span>Highlights</span></a></li>
179-
<li><a class="link link-_2D" href="#_2D"><span>2D</span></a></li>
180-
<li><a class="link link-_3D" href="#_3D"><span>3D</span></a></li>
181-
<li><a class="link link-core" href="#core"><span>Core</span></a></li>
182-
<li><a class="link link-documentation" href="#documentation"><span>Documentation</span></a></li>
183-
<li><a class="link link-editor" href="#editor"><span>Editor</span></a></li>
184-
<li><a class="link link-GUI" href="#GUI"><span>GUI</span></a></li>
179+
<li><a class="link link-general" href="#general"><span>General</span></a></li>
185180
<li><a class="link link-platforms" href="#platforms"><span>Platforms</span></a></li>
186181
<li><a class="link link-scripting" href="#scripting"><span>Scripting</span></a></li>
187182
<li><a class="link link-systems" href="#Systems"><span>Systems</span></a></li>

0 commit comments

Comments
 (0)