aboutsummaryrefslogtreecommitdiff
path: root/css
diff options
context:
space:
mode:
authorEinar Egilsson <einar@einaregilsson.com>2019-12-12 11:55:10 +0000
committerEinar Egilsson <einar@einaregilsson.com>2019-12-12 11:55:10 +0000
commit30d7570bae57d97e906f5389a1b7e827455a719f (patch)
tree11c40a8bec95f62dc4740f74b7764f239dede27f /css
parent31f1b675bf738f5905bf3f9e7dccf9515a471ec2 (diff)
Dark theme support
Diffstat (limited to 'css')
-rw-r--r--css/help.css31
-rw-r--r--css/popup.css30
-rw-r--r--css/redirector.css118
3 files changed, 178 insertions, 1 deletions
diff --git a/css/help.css b/css/help.css
index 1658291..e104f93 100644
--- a/css/help.css
+++ b/css/help.css
@@ -74,4 +74,33 @@ table {
padding-right:2px;
border-radius:3px;
background: #eee;
-} \ No newline at end of file
+}
+
+/* Dark mode support */
+
+@media (prefers-color-scheme: dark) {
+
+ html {
+ background: rgb(32,33,36);
+ }
+ body {
+ background: rgb(42,43,46);
+ color: #ddd;
+ border: solid 1px #888;
+ }
+ th {
+ color: white;
+ font-weight: normal;
+ }
+ a, a:visited, a:hover {
+ color: rgb(138,179,241);
+ }
+
+ h1, h2, h3, h4, strong {
+ color: white;
+ }
+
+ tr .pattern {
+ color: rgb(53,180,75);
+ }
+ } \ No newline at end of file
diff --git a/css/popup.css b/css/popup.css
index 83311af..0d774aa 100644
--- a/css/popup.css
+++ b/css/popup.css
@@ -47,3 +47,33 @@ label {
top:1px;
}
}
+
+
+@media (prefers-color-scheme: dark) {
+
+ html {
+ background: rgb(52,53,56);
+ color: #ddd;
+ }
+
+ h1 {
+ color: white;
+ }
+
+ label {
+ color: #eee;
+ }
+ th {
+ color: white;
+ font-weight: normal;
+ }
+
+ .disabled span {
+ color: rgb(252,87,84);
+ }
+ button {
+ background-color: rgb(32,33,36) !important;
+ border: solid 1px #777 !important;
+ color: #eee;
+ }
+ }
diff --git a/css/redirector.css b/css/redirector.css
index d0046cc..f727dc4 100644
--- a/css/redirector.css
+++ b/css/redirector.css
@@ -479,4 +479,122 @@ footer small a:hover {
#storage-sync-option input {
margin:10px;
+}
+
+/* Dark mode support */
+
+@media (prefers-color-scheme: dark) {
+
+ body {
+ background: rgb(32,33,36);
+ color: #bbb;
+ }
+
+ h1 {
+ color: #eee;
+ }
+ h5, footer small {
+ color: #aaa;
+ }
+
+ .redirect-row label {
+ color: white;
+ }
+
+ footer small a, footer small a:visited {
+ color: rgb(138,179,241);
+ }
+
+ .redirect-row:nth-child(odd) {
+ background: rgb(31,32,35);
+ }
+ .redirect-row:nth-child(even) {
+ background: rgb(41,42,45);
+ }
+
+ .btn {
+ background-color: rgb(32,33,36);
+ border: solid 1px #777;
+ }
+
+ .btn.grey {
+ color: #ccc;
+ }
+
+ .btn.green {
+ color: rgb(53,180,75);
+ }
+
+ #message-box.success {
+ background-color: rgb(53,203,75);;
+ }
+
+ #message-box.error {
+ background-color: rgb(252,87,84);
+ }
+
+ .redirect-table, .redirect-row {
+ border-color: #555 !important;
+ }
+
+ .redirect-row h4 span.disabled-marker {
+ color:rgb(252,87,84) !important;
+ }
+
+ .btn.red {
+ color: rgb(252,87,84);
+ }
+
+ .btn.grey[disabled]:hover {
+ border: solid 1px #777 !important;
+ background: rgb(32,33,36) !important;
+ color:#555 !important;;
+ }
+
+ .btn.grey:hover {
+ border: solid 1px white;
+ background: black;
+ color: white !important;
+ }
+
+ .btn.blue {
+ color: rgb(138,179,241);
+ }
+
+ [data-bind="description"] {
+ color: #eee;
+ }
+
+ .redirect-info.disabled label, .redirect-info.disabled span, span.disabled, .redirect-info.disabled p, a.disabled, button[disabled] {
+ color:#555 !important;
+ }
+
+ #edit-redirect-form {
+ background:rgb(41,42,45);
+ border: solid 1px #888;
+ }
+
+ #advanced-toggle a, #advanced-toggle a:visited {
+ color: rgb(138,179,241);
+ }
+
+ h3 {
+ color: #eee;
+ }
+
+ #edit-redirect-form label {
+ color: white;
+ font-weight: normal;
+ }
+
+ .example-result-error {
+ color:rgb(252,87,84) !important;
+ }
+
+ #edit-redirect-form input {
+ background: rgb(68,68,68);
+ color: #ddd;
+ border-color: rgb(68,68,68) !important ;
+ border-radius: 2px;
+ }
} \ No newline at end of file