Skip to content

Commit

Permalink
[style] add dark mode (#2029)
Browse files Browse the repository at this point in the history
  • Loading branch information
t0stiman authored Aug 1, 2021
1 parent c673917 commit 3637777
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 0 deletions.
23 changes: 23 additions & 0 deletions static/HtmlFormat.css
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,26 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
}

}

/* Dark theme, will automatically be set for those that have dark mode on their OS. */
@media (prefers-color-scheme: dark){

* {
scrollbar-color: #202324 #454a4d;
}

body {
background-color: #202325;
color: #e8e6e3;
}

a, a:link, a:visited {
color: #0A6AB6;
}

/* Section */
section {
background-color: #181A1B;
}

}
52 changes: 52 additions & 0 deletions static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -382,4 +382,56 @@ h5 {
width: 100%;
}

}

/* Dark theme */
@media (prefers-color-scheme: dark){
* {
scrollbar-color: #202324 #454a4d;
}

body {
background-color: #202325;
color: #e8e6e3;
}

a, a:link, a:visited {
color: #0A6AB6;
}

/* Header */
select,
input[type="text"],
input[type="number"] {
background-color: #181A1B;
/* does not apply to placeholder text without !important */
color: white !important;

border: 1px solid #393E40;
}

/* Section */
section {
background-color: #181A1B;
}

/* Buttons */
button {
background: #0A6AB6 none repeat scroll 0% 0%;
}

button:hover {
background: #004daa;
}

@supports (display: grid){
.parameters input[type="number"] {
color: #BAB4AB;
}
}

/* Show more / less */
.showmore:hover, .showless:hover {
color: #d8d3cb;
}
}

0 comments on commit 3637777

Please sign in to comment.