Skip to content

Commit

Permalink
Implemented dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
PeeHaa committed Jun 27, 2019
1 parent ef7bbf4 commit 6b82122
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 1 deletion.
14 changes: 14 additions & 0 deletions assets/scss/components/articles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,17 @@ table.articles {
}
}
}

.dark {
table.articles {
tr {
&:hover {
background: #363636;
}
}

td, th {
border-top: 1px solid #636357;
}
}
}
14 changes: 14 additions & 0 deletions assets/scss/elements/input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,17 @@ button {
text-align: right;
font-weight: bold;
}

.dark {
.form-control {
background-color: #878686;

&:focus {
background-color: #878686;
}

&::placeholder {
color: #495057;
}
}
}
13 changes: 13 additions & 0 deletions assets/scss/theme/default.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,21 @@ body {
background: $color-main-background;
}

&.dark {
background: rgba(0, 0, 0, 0.87);
color: #abaaaa;

a {
color: inherit;
}
}

main {
padding-top: calc(48px);

a {
text-decoration: none;
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion public/css/bundle.min.css

Large diffs are not rendered by default.

0 comments on commit 6b82122

Please sign in to comment.