-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.css
More file actions
154 lines (132 loc) · 2.46 KB
/
popup.css
File metadata and controls
154 lines (132 loc) · 2.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
:root {
color-scheme: light dark;
}
body {
margin: 0;
padding: 14px 16px 12px;
width: 300px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
"Microsoft YaHei", sans-serif;
font-size: 13px;
background: #fff;
color: #1a1a1a;
}
@media (prefers-color-scheme: dark) {
body { background: #1e1e1e; color: #f1f1f1; }
}
h1 {
margin: 0 0 10px;
font-size: 13px;
font-weight: 600;
letter-spacing: 0.02em;
opacity: 0.85;
}
.title-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.lang-mini {
appearance: none;
-webkit-appearance: none;
background: transparent;
border: 1px solid rgba(127, 127, 127, 0.3);
border-radius: 5px;
padding: 1px 6px;
font: inherit;
font-size: 11px;
font-weight: 600;
text-align: center;
text-align-last: center;
cursor: pointer;
color: inherit;
min-width: 26px;
height: 20px;
line-height: 1;
opacity: 0.7;
transition: opacity 0.12s ease, border-color 0.12s ease;
}
.lang-mini:hover {
opacity: 1;
border-color: rgba(127, 127, 127, 0.55);
}
.lang-mini:focus {
outline: 2px solid rgba(16, 163, 127, 0.4);
outline-offset: -1px;
opacity: 1;
}
form {
display: flex;
flex-direction: column;
gap: 4px;
}
label {
display: grid;
grid-template-columns: 18px auto 1fr;
align-items: center;
gap: 4px 8px;
padding: 6px 8px;
border-radius: 6px;
cursor: pointer;
user-select: none;
transition: background-color 0.12s ease;
}
label:hover {
background: rgba(127, 127, 127, 0.12);
}
label > span {
font-weight: 500;
}
label > em {
font-style: normal;
font-size: 11px;
opacity: 0.55;
justify-self: end;
text-align: right;
}
input[type="radio"] {
accent-color: #10a37f;
margin: 0;
}
.sub-row {
display: none;
align-items: center;
gap: 8px;
padding: 2px 8px 8px 34px;
}
form:has(input[value="date"]:checked) .sub-row[data-show-when="date"] {
display: flex;
}
.sub-label {
font-size: 11px;
opacity: 0.55;
}
#dateFormat {
flex: 1;
font: inherit;
font-size: 12px;
padding: 3px 6px;
border-radius: 5px;
border: 1px solid rgba(127, 127, 127, 0.3);
background: transparent;
color: inherit;
}
#dateFormat:focus {
outline: 2px solid rgba(16, 163, 127, 0.4);
outline-offset: -1px;
}
.hint {
margin: 10px 0 0;
font-size: 11px;
line-height: 1.5;
opacity: 0.55;
text-align: center;
}
.hint a {
color: inherit;
text-decoration: none;
}
.hint a:hover {
text-decoration: underline;
}