Skip to content

Commit

Permalink
Merge pull request #270 from gopasspw/improve-dark-mode
Browse files Browse the repository at this point in the history
Improve dark mode and options styling
  • Loading branch information
Pharb authored Nov 17, 2024
2 parents 2aebe09 + 60f80a7 commit 3d7b5bd
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 3 deletions.
41 changes: 41 additions & 0 deletions web-extension/options.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,44 @@
@media (prefers-color-scheme: light) {
:root {
--background-color: #fff;
--text-color: #000;
--link-color: #004650;
}
}
@media (prefers-color-scheme: dark) {
:root {
--background-color: #23222b;
--text-color: #ddd;
--link-color: #bde;
}
}

body {
min-width: 600px;
}

body,
input {
background-color: var(--background-color);
color: var(--text-color);
}

a {
color: var(--link-color);
}

.container > label {
display: block;
}

.container > * {
margin: 12px 0;
}

li {
line-height: 2;
}

#savingindicator {
display: inline-block;
width: 20px;
Expand All @@ -18,3 +55,7 @@
opacity: 1;
transition: none;
}

#clear {
height: 32px;
}
7 changes: 4 additions & 3 deletions web-extension/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
--row-background-color: #fff;
--text-color: #000;
--hover-color: #bde;
--basic-auth-header-color: #bde;
}
}
@media (prefers-color-scheme: dark) {
Expand All @@ -12,6 +13,7 @@
--row-background-color: #000;
--text-color: #ddd;
--hover-color: #bde3;
--basic-auth-header-color: #004650;
}
}

Expand Down Expand Up @@ -70,7 +72,7 @@ input {
line-height: 1.2;
font-size: 12px;
min-height: 32px;
color: #ddd;
color: var(--text-color);
}

.detail-clickable-value:hover {
Expand Down Expand Up @@ -218,7 +220,6 @@ input {

.create > form > div {
padding: 5px;
width: 100%;
}

#create_name {
Expand Down Expand Up @@ -289,7 +290,7 @@ input {

#auth_login {
padding: 10px;
background-color: #6bd6e4;
background-color: var(--basic-auth-header-color);
font-size: 14px;
line-height: 1.2;
}
Expand Down

0 comments on commit 3d7b5bd

Please sign in to comment.