Skip to content

Commit

Permalink
Fix themes colors by using SCSS variables (#3376)
Browse files Browse the repository at this point in the history
* 💄 Use foreground var for code

* 💄 Use submenu var color

* 💄 Use foreground var color for menu

* 🐛 Fix var used in menu
  • Loading branch information
madmath03 authored Nov 30, 2020
1 parent 617f4f5 commit a742b4b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions client/src/app/menu/menu.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ menu {
&:hover,
&:focus-visible {
my-global-icon {
@include apply-svg-color(var(--mainBackgroundColor));
@include apply-svg-color(var(--menuForegroundColor));
}
}

Expand Down Expand Up @@ -269,7 +269,7 @@ menu {
a, span[role=button] {
display: inline-block;
text-decoration: none;
color: pvar(--mainBackgroundColor);
color: pvar(--menuForegroundColor);
opacity: $footer-links-base-opacity;
white-space: nowrap;
font-size: 90%;
Expand All @@ -284,7 +284,7 @@ menu {
height: 1.4rem;

my-global-icon {
@include apply-svg-color(pvar(--mainBackgroundColor));
@include apply-svg-color(pvar(--menuForegroundColor));

display: flex;
width: auto;
Expand All @@ -298,7 +298,7 @@ menu {
.footer-copyleft small a {
@include disable-default-a-behaviour;

color: pvar(--mainBackgroundColor);
color: pvar(--menuForegroundColor);
opacity: $footer-links-base-opacity - .2;
}
}
Expand Down
3 changes: 2 additions & 1 deletion client/src/sass/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ label {

code {
background-color: pvar(--greyBackgroundColor);
color: pvar(--greyForegroundColor);
border-radius: 3px;
padding: .2em .4em;
margin: auto .4em;
Expand Down Expand Up @@ -261,7 +262,7 @@ code {
opacity: 0.6;

&.active {
background-color: #f0f0f0;
background-color: pvar(--submenuColor);
}

&.active, &:hover, &:active, &:focus {
Expand Down

0 comments on commit a742b4b

Please sign in to comment.