Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Renamed theme CSS variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Vaughn committed Nov 22, 2018
1 parent d88f522 commit 321b592
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions frontend/SettingsPane.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
flex-shrink: 0;
align-items: center;
position: relative;
background-color: var(--base01);
border-bottom: 1px solid var(--base03);
background-color: var(--theme-base01);
border-bottom: 1px solid var(--theme-base03);
}

.SettingsMenuButton {
Expand All @@ -17,7 +17,7 @@
color: inherit;
}
.SettingsMenuButton:hover {
color: var(--state06);
color: var(--theme-state06);
}

.SearchInputWrapper {
Expand All @@ -35,10 +35,10 @@
cursor: default;
right: 0;
line-height: 28px;
color: var(--base02);
color: var(--theme-base02);
}
.ClearSearchButton:hover {
color: var(--base04);
color: var(--theme-base04);
}

.ActiveInspectMenuButton,
Expand All @@ -51,10 +51,10 @@
color: inherit;
}
.InspectMenuButton:hover {
color: var(--state06);
color: var(--theme-state06);
}
.ActiveInspectMenuButton {
color: var(--state00);
color: var(--theme-state00);
}

.SearchIcon {
Expand All @@ -66,8 +66,8 @@
width: 1em;
height: 100%;
stroke-width: 0;
stroke: var(--base03);
fill: var(--base03);
stroke: var(--theme-base03);
fill: var(--theme-base03);
line-height: 28px;
font-size: var(--font-size-sans-normal);
}
Expand All @@ -83,5 +83,5 @@
width: 100%;
}
.Input:focus {
background-color: var(--base00);
background-color: var(--theme-base00);
}
2 changes: 1 addition & 1 deletion frontend/Themes/Store.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class Store {
function updateCSSVariables(theme: Theme): void {
for (const key in theme) {
// $FlowFixMe
document.body.style.setProperty(`--${key}`, theme[key]);
document.body.style.setProperty(`--theme-${key}`, theme[key]);
}
}

Expand Down

0 comments on commit 321b592

Please sign in to comment.