Skip to content

Commit

Permalink
[Scorecards] Override bg-primary-* for .year-2025 pages
Browse files Browse the repository at this point in the history
Also fix broken background color on main-filter-methodology component,
making it much more noticeable on the Methodology page.
  • Loading branch information
zarino committed Jun 3, 2024
1 parent 30a84eb commit ca64e45
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
1 change: 1 addition & 0 deletions scoring/static/scoring/scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,4 @@
@import "toggle-buttons";
@import "loading-shimmer";
@import "open-graph-preview";
@import "years";
23 changes: 23 additions & 0 deletions scoring/static/scoring/scss/years.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.year-2025 {
$shades: (
"100": $primary2025-100,
"200": $primary2025-200,
"300": $primary2025-300,
"400": $primary2025-400,
"500": $primary2025-500,
"600": $primary2025-600,
"700": $primary2025-700,
"800": $primary2025-800,
"900": $primary2025-900
);

.bg-primary {
background-color: $primary2025-500 !important;
}

@each $n, $shade in $shades {
.bg-primary-#{$n} {
background-color: $shade !important;
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="bg-blue-l2 p-3 mb-4 border rounded">
<div class="bg-primary-100 p-3 mb-4 border rounded">
<label for="questions-council-name" class="d-block mb-2">Show questions for a specific council</label>
<input class="form-control searchbar js-methodology-council-autocomplete" type="search" placeholder="Council name" aria-label="Council name" id="questions-council-name">
<p class="mt-3 mt-lg-4 mb-2">Or show questions by type of council</p>
Expand Down

0 comments on commit ca64e45

Please sign in to comment.