Skip to content

Commit

Permalink
Merge pull request #40 from rio-codes/vars
Browse files Browse the repository at this point in the history
Change hard coded variables in base theme css to variables, update modes
  • Loading branch information
joeroe authored Sep 26, 2022
2 parents 82b6346 + e93ff30 commit c94228e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions static/css/colour/dark-mode.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@
--bright-bg: var(--bright-black);
--fg: var(--white);
--bright-fg: var(--bright-white);
--logo-bg: var(--green);
--logo-hover: var(--bright-green);
--highlight-bg: var(--yellow);
}
3 changes: 3 additions & 0 deletions static/css/colour/light-mode.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@
--bright-bg: var(--bright-black);
--fg: var(--black);
--bright-fg: var(--bright-black);
--logo-bg: var(--green);
--logo-hover: var(--bright-green);
--highlight-bg: var(--yellow);
}
4 changes: 2 additions & 2 deletions static/css/logo.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

.page__logo-inner {
display: block;
background: var(--green);
background: var(--logo-bg);
padding: 0.25rem;
}

Expand All @@ -22,7 +22,7 @@ a.page__logo-inner:link, a.page__logo-inner:visited {

a.page__logo-inner:hover,
a.page__logo-inner:active {
background: var(--bright-green);
background: var(--logo-hover);
}

.page__logo-inner:before {
Expand Down
2 changes: 1 addition & 1 deletion static/css/typography.css
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ strong {
/* Highlighting */
::selection,
mark {
background-color: var(--yellow);
background-color: var(--highlight-bg);
color: var(--bg);
}

Expand Down

0 comments on commit c94228e

Please sign in to comment.