aboutsummaryrefslogtreecommitdiff
path: root/assets/_main.scss
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2020-09-14 00:02:55 +0200
committerAlex Shpak <alex-shpak@users.noreply.github.com>2020-09-14 00:02:55 +0200
commit4e34988b5db9f4e78e1d27458e867be9a8f2db84 (patch)
treed0de0934017cd76493106c7af346f2373dda5518 /assets/_main.scss
parent6beca7928c20364462859f5af57da6182582d14c (diff)
#151, move SCSS vars to CSS vars, implement dark and light modes by browser preference
Diffstat (limited to 'assets/_main.scss')
-rw-r--r--assets/_main.scss20
1 files changed, 10 insertions, 10 deletions
diff --git a/assets/_main.scss b/assets/_main.scss
index b8a0e5d..5cf81d0 100644
--- a/assets/_main.scss
+++ b/assets/_main.scss
@@ -6,8 +6,8 @@ html {
body {
min-width: $body-min-width;
- color: $body-font-color;
- background: $body-background;
+ color: var(--body-font-color);
+ background: var(--body-background);
letter-spacing: 0.33px;
font-weight: $body-font-weight;
@@ -31,7 +31,7 @@ h5 {
a {
text-decoration: none;
- color: $color-link;
+ color: var(--color-link);
}
img {
@@ -81,7 +81,7 @@ ul.pagination {
}
.book-icon {
- filter: $icon-filter;
+ filter: var(--icon-filter);
}
.book-brand {
@@ -102,7 +102,7 @@ ul.pagination {
nav {
width: $menu-width;
padding: $padding-16;
- background: $body-background;
+ background: var(--body-background);
@include fixed;
}
@@ -113,7 +113,7 @@ ul.pagination {
}
a.active {
- color: $color-link;
+ color: var(--color-link);
}
a.collapsed {
@@ -174,8 +174,8 @@ ul.pagination {
border: 0;
border-radius: $border-radius;
- background: $gray-100;
- color: $body-font-color;
+ background: var(--gray-100);
+ color: var(--body-font-color);
&:required + .book-search-spinner {
display: block;
@@ -192,7 +192,7 @@ ul.pagination {
height: $padding-16;
border: $padding-1 solid transparent;
- border-top-color: $body-font-color;
+ border-top-color: var(--body-font-color);
border-radius: 50%;
@include spin(1s);
@@ -271,7 +271,7 @@ ul.pagination {
left: 0;
padding: $padding-8 0;
- background: $body-background;
+ background: var(--body-background);
box-shadow: 0 0 $padding-4 rgba(0, 0, 0, 0.1);
li img {