Skip to content

Commit 3d7b5bd

Browse files
authored
Merge pull request #270 from gopasspw/improve-dark-mode
Improve dark mode and options styling
2 parents 2aebe09 + 60f80a7 commit 3d7b5bd

File tree

2 files changed

+45
-3
lines changed

2 files changed

+45
-3
lines changed

web-extension/options.css

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,44 @@
1+
@media (prefers-color-scheme: light) {
2+
:root {
3+
--background-color: #fff;
4+
--text-color: #000;
5+
--link-color: #004650;
6+
}
7+
}
8+
@media (prefers-color-scheme: dark) {
9+
:root {
10+
--background-color: #23222b;
11+
--text-color: #ddd;
12+
--link-color: #bde;
13+
}
14+
}
15+
16+
body {
17+
min-width: 600px;
18+
}
19+
20+
body,
21+
input {
22+
background-color: var(--background-color);
23+
color: var(--text-color);
24+
}
25+
26+
a {
27+
color: var(--link-color);
28+
}
29+
130
.container > label {
231
display: block;
332
}
433

34+
.container > * {
35+
margin: 12px 0;
36+
}
37+
38+
li {
39+
line-height: 2;
40+
}
41+
542
#savingindicator {
643
display: inline-block;
744
width: 20px;
@@ -18,3 +55,7 @@
1855
opacity: 1;
1956
transition: none;
2057
}
58+
59+
#clear {
60+
height: 32px;
61+
}

web-extension/styles.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
--row-background-color: #fff;
55
--text-color: #000;
66
--hover-color: #bde;
7+
--basic-auth-header-color: #bde;
78
}
89
}
910
@media (prefers-color-scheme: dark) {
@@ -12,6 +13,7 @@
1213
--row-background-color: #000;
1314
--text-color: #ddd;
1415
--hover-color: #bde3;
16+
--basic-auth-header-color: #004650;
1517
}
1618
}
1719

@@ -70,7 +72,7 @@ input {
7072
line-height: 1.2;
7173
font-size: 12px;
7274
min-height: 32px;
73-
color: #ddd;
75+
color: var(--text-color);
7476
}
7577

7678
.detail-clickable-value:hover {
@@ -218,7 +220,6 @@ input {
218220

219221
.create > form > div {
220222
padding: 5px;
221-
width: 100%;
222223
}
223224

224225
#create_name {
@@ -289,7 +290,7 @@ input {
289290

290291
#auth_login {
291292
padding: 10px;
292-
background-color: #6bd6e4;
293+
background-color: var(--basic-auth-header-color);
293294
font-size: 14px;
294295
line-height: 1.2;
295296
}

0 commit comments

Comments
 (0)