Finished dark mode! This means re-doing all sass variables in the
variables.scss file and defining css variables in :root and alterting them based on prefered color scheme. This gives us a mechanism to set custom color schemes for the entire site from one place and changing between them just by setting a class to the body element. This is done by overwriting the css variables and then our scss variables use these changes and apply them downward. This seems like a really nice setup for the switching between- and adding color schemes. Also did a lot of cleanup of unused, duplicate or errors styling throughout the application.
This commit is contained in:
@@ -36,7 +36,7 @@ export default {
|
||||
z-index: 20;
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
background: rgba($c-dark, 0.93);
|
||||
background: rgba($dark, 0.93);
|
||||
-webkit-overflow-scrolling: touch;
|
||||
overflow: auto;
|
||||
&__box{
|
||||
@@ -44,7 +44,7 @@ export default {
|
||||
max-width: 768px;
|
||||
position: relative;
|
||||
z-index: 5;
|
||||
background: $c-dark;
|
||||
background: $background-color-secondary;
|
||||
padding-bottom: 50px;
|
||||
@include tablet-min{
|
||||
padding-bottom: 0;
|
||||
@@ -71,7 +71,7 @@ export default {
|
||||
left: 10px;
|
||||
width: 20px;
|
||||
height: 2px;
|
||||
background: $c-white;
|
||||
background: $white;
|
||||
}
|
||||
&:before{
|
||||
transform: rotate(45deg);
|
||||
@@ -80,7 +80,7 @@ export default {
|
||||
transform: rotate(-45deg);
|
||||
}
|
||||
&:hover{
|
||||
background: $c-green;
|
||||
background: $green;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user