Skip to content

Commit

Permalink
Improve dark mode slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfr committed Apr 13, 2021
1 parent 57165b7 commit 5119706
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
6 changes: 6 additions & 0 deletions src/scss/_c-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
width: 100%;

border-bottom: .1rem solid $color-gray-150;
@media (prefers-color-scheme: dark) {
border-color: $color-gray-700;
}

&:last-child {
border: none;
Expand Down Expand Up @@ -47,6 +50,9 @@

.c-list__first-line {
color: $color-gray-900;
@media (prefers-color-scheme: dark) {
color: #FFF;
}
font-weight: 500;
padding-bottom: .2rem;
}
Expand Down
24 changes: 21 additions & 3 deletions src/scss/_c-side-menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,41 @@
@media (prefers-color-scheme: dark) {
background: $color-gray-800;
}
color: $color-blue-600;
@media (prefers-color-scheme: dark) {
color: $color-blue-400;
}
}

.o-svg-icon {
.c-icon {
margin-right: 1.2rem;
color: $color-gray-300;
@media (prefers-color-scheme: dark) {
color: $color-gray-600;
}
}
}

.c-side-menu__item a:focus,
.c-side-menu__item--active a {
background: $color-gray-50;

@media (prefers-color-scheme: dark) {
background: $color-gray-800;
}
color: $color-primary;

color: $color-blue-600;
@media (prefers-color-scheme: dark) {
color: $color-blue-400;
}


// @todo does this code make any sense? If it's SVG, it should be fill
.o-svg-icon {
color: $color-primary;
color: $color-blue-600;
@media (prefers-color-scheme: dark) {
color: $color-blue-400;
}
}
}

Expand Down

0 comments on commit 5119706

Please sign in to comment.