Skip to content

Commit

Permalink
Remove duplicate variable definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Sep 11, 2023
1 parent 9b13e9d commit 41bc92c
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions src/nationalarchives/tools/_colour.scss
Original file line number Diff line number Diff line change
Expand Up @@ -200,13 +200,13 @@
}

%accent {
--font-base: var(--accent-font-base, var(--accent-font-base));
--font-dark: var(--accent-font-dark, var(--accent-font-dark));
--font-light: var(--accent-font-light, var(--accent-font-light));
--link: var(--accent-link, var(--accent-link));
--link-visited: var(--accent-link-visited, var(--accent-link-visited));
--keyline: var(--accent-keyline, var(--accent-keyline));
--keyline-dark: var(--accent-keyline-dark, var(--accent-keyline-dark));
--font-base: var(--accent-font-base);
--font-dark: var(--accent-font-dark);
--font-light: var(--accent-font-light);
--link: var(--accent-link);
--link-visited: var(--accent-link-visited);
--keyline: var(--accent-keyline);
--keyline-dark: var(--accent-keyline-dark);

@include colour-background("accent-background");

Expand All @@ -227,6 +227,11 @@

%light-accent-background {
@include colour-background("accent-background-light");

--font-base: #{map.get(colour.$colour-palette-default, "font-base")};
--font-dark: #{map.get(colour.$colour-palette-default, "font-dark")};
--font-light: #{map.get(colour.$colour-palette-default, "font-light")};
--link: #{map.get(colour.$colour-palette-default, "font-dark")};
}

@mixin light-accent-background {
Expand Down

0 comments on commit 41bc92c

Please sign in to comment.