Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

Commit

Permalink
fix dark theme
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeAskew committed Apr 8, 2015
1 parent 30d029e commit 16b4f4c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 5 additions & 1 deletion src/assets/fabricator/styles/partials/_controls.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,16 @@
box-shadow: inset 0 3px 0 0 map-get($colors, accent);

use {
fill: map-get($colors, normal);
fill: map-get($colors, menu-text);
}
}

svg {
vertical-align: middle;

use {
fill: if($theme == $theme-dark, map-get($colors, normal), map-get($colors, light) );
}
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/assets/fabricator/styles/partials/_menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@
a {
display: block;
padding: 0.5rem 2rem;
color: map-get($colors, normal) !important;
color: map-get($colors, menu-text) !important;
text-decoration: none;
font-size: 0.75rem;
line-height: 1;

&:hover {
color: map-get($colors, normal) !important;
color: map-get($colors, menu-text) !important;
text-decoration: underline;
}

Expand Down
6 changes: 4 additions & 2 deletions src/assets/fabricator/styles/partials/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ $base-colors: (
);

$theme-dark: (
menu-background: lighten(map-get($base-colors, dark), 4%),
menu-background: map-get($base-colors, dark),
menu-text: map-get($base-colors, light),
normal: map-get($base-colors, medium)
);

$theme-light: (
menu-background: rgb(255, 255, 255),
menu-background: hsl(0, 0%, 100%),
menu-text: map-get($base-colors, medium),
normal: map-get($base-colors, medium)
);

Expand Down

0 comments on commit 16b4f4c

Please sign in to comment.