Skip to content

Commit

Permalink
Add more options for background colours
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Oct 12, 2023
1 parent 0daf44a commit c9d4184
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
6 changes: 5 additions & 1 deletion src/nationalarchives/tools/_colour.scss
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,14 @@
@extend %accent;
}

@mixin tint-background {
%tint-background {
@include colour-background("background-tint");
}

@mixin tint-background {
@extend %tint-background;
}

%accent-background {
@include colour-background("accent-background");
}
Expand Down
22 changes: 14 additions & 8 deletions src/nationalarchives/utilities/_global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -168,14 +168,20 @@ hr {
}
}

.tna-background--contrast {
@include colour.invert;
}
.tna-background {
&--contrast {
@include colour.invert;
}

.tna-background--accent {
@include colour.accent;
}
&--accent {
@include colour.accent;
}

.tna-background--accent-light {
@include colour.light-accent-background;
&--accent-light {
@include colour.light-accent-background;
}

&--tint {
@include colour.tint-background;
}
}

0 comments on commit c9d4184

Please sign in to comment.