mirror of https://gitlab.com/tildes/tildes.git
Browse Source
Rework theme system a little more
Rework theme system a little more
Nothing too significant in here, but it rearranges some of the theme initialization a little more, including making sure that each theme sets a number of "essential" colors. It also moves the default theme out into its own file, instead of having it at the bottom of _theme_base.scss for no particular reason.merge-requests/60/head
Deimos
6 years ago
5 changed files with 92 additions and 52 deletions
-
1tildes/scss/styles.scss
-
15tildes/scss/themes/_black.scss
-
27tildes/scss/themes/_default.scss
-
4tildes/scss/themes/_solarized.scss
-
97tildes/scss/themes/_theme_base.scss
@ -0,0 +1,27 @@ |
|||
// Contains the default Tildes theme |
|||
|
|||
$default-theme: ( |
|||
"alert": #cb4b16, // Solarized |
|||
"background-primary": #fff, |
|||
"background-secondary": #eee, |
|||
"border": #ccc, |
|||
"comment-label-exemplary": #268bd2, // Solarized |
|||
"comment-label-joke": #859900, // Solarized |
|||
"comment-label-noise": #b58900, // Solarized |
|||
"comment-label-offtopic": #2aa198, // Solarized |
|||
"comment-label-malice": #dc322f, // Solarized |
|||
"error": #f00, |
|||
"foreground-highlight": #222, |
|||
"foreground-primary": #333, |
|||
"foreground-secondary": #999, |
|||
"link": #268bd2, // Solarized |
|||
"link-visited": #6c71c4, // Solarized |
|||
"stripe-mine": #6c71c4, // Solarized |
|||
"topic-tag-nsfw": #dc322f, // Solarized |
|||
"warning": #b58900, // Solarized |
|||
); |
|||
|
|||
// define the default theme using the base values |
|||
body { |
|||
@include use-theme($default-theme); |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue