Skip to content

Commit

Permalink
add mixins to separately change main and heading colors for light/dar…
Browse files Browse the repository at this point in the history
…k backgrounds
  • Loading branch information
yann-soubeyrand committed Jun 25, 2023
1 parent 12f5ba4 commit 3e3f4ab
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion css/theme/template/mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,38 @@
}
}

@mixin light-bg-main-color( $color ) {
section.has-light-background {
color: $color;
}
}

@mixin light-bg-heading-color( $color ) {
section.has-light-background {
h1, h2, h3, h4, h5, h6 {
color: $color;
}
}
}

@mixin dark-bg-text-color( $color ) {
section.has-dark-background {
&, h1, h2, h3, h4, h5, h6 {
color: $color;
}
}
}
}

@mixin dark-bg-main-color( $color ) {
section.has-dark-background {
color: $color;
}
}

@mixin dark-bg-heading-color( $color ) {
section.has-dark-background {
h1, h2, h3, h4, h5, h6 {
color: $color;
}
}
}

0 comments on commit 3e3f4ab

Please sign in to comment.