Skip to content

Commit

Permalink
Add dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
autinerd committed Dec 8, 2024
1 parent 3a22007 commit 7627306
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 8 deletions.
31 changes: 23 additions & 8 deletions app.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,29 @@

* {
box-sizing: border-box;

--background-color: white;
--text-color: #333;
--table-alternate-color: #f9f9f9;
--background-color-attribution: rgba(255, 255, 255, 0.8);
}

@media (prefers-color-scheme: dark) {
* {
--background-color: #333333;
--text-color: #cccccc;
--table-alternate-color: #444;
--background-color-attribution: rgba(51, 51, 51, 0.8);
}
}

body {
margin: 0;
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
font-size: 14px;
line-height: 1.42;
color: #333;
background-color: #fff;
color: var(--text-color);
background-color: var(--background-color);
overflow-y: scroll;
}

Expand Down Expand Up @@ -68,11 +82,11 @@ h1, h2, h3, h4, h5, h6 {
position: sticky;
top: 0;
z-index: 1;
background: #fff;
background: var(--background-color);
}

.table-striped > tbody > tr:nth-of-type(2n+1) {
background-color: #f9f9f9;
background-color: var(--table-alternate-color);
}

.table td, th {
Expand Down Expand Up @@ -175,6 +189,7 @@ h1, h2, h3, h4, h5, h6 {

#wizard #type-pane .radiogroup label {
background-color: #ffb400;
color: #333333;
}

#wizard #type-pane .radiogroup input[type="radio"]:checked + label {
Expand Down Expand Up @@ -230,7 +245,7 @@ h1, h2, h3, h4, h5, h6 {
font: inherit;
color: inherit;
margin-bottom: .5em;
background: #fff;
background: var(--background-color);
border: none;
border: 1px solid #ddd;
box-shadow: 1px 2px 2px 0 #ccc;
Expand Down Expand Up @@ -262,7 +277,7 @@ h1, h2, h3, h4, h5, h6 {
display: inline-block;
list-style-type: none;
font: inherit;
color: black;
color: var(--text-color);
margin: .5em;
padding: .5em 1em;
border: none;
Expand All @@ -272,7 +287,7 @@ h1, h2, h3, h4, h5, h6 {
}

#wizard .btn:hover {
color: black;
color: var(--text-color);
}

#wizard .imagePreview {
Expand Down Expand Up @@ -309,7 +324,7 @@ h1, h2, h3, h4, h5, h6 {
min-height: 11em;
margin: 0.5em;
padding: 0.5em;
border: 1px solid white;
border: 1px solid var(--background-color);
text-align: center;
}

Expand Down
1 change: 1 addition & 0 deletions device-pictures
Submodule device-pictures added at 36efe1

0 comments on commit 7627306

Please sign in to comment.