-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.css
More file actions
153 lines (131 loc) · 2.61 KB
/
Copy pathpopup.css
File metadata and controls
153 lines (131 loc) · 2.61 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
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
width: 360px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
background: var(--popup-bg);
color: var(--popup-text);
}
.header {
display: flex;
align-items: center;
gap: 10px;
padding: 14px 16px;
background: var(--popup-header-bg);
}
.header-icon {
background: var(--popup-icon-bg);
border-radius: 6px;
width: 28px;
height: 28px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.header-icon img {
width: 20px;
height: 20px;
}
.header-text {
font-size: 14px;
font-weight: 600;
color: #fff;
}
.body {
padding: 8px 16px 14px;
}
.section-label {
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.7px;
color: var(--popup-section-label);
margin: 14px 0 4px;
padding-left: 4px;
border-left: 3px solid var(--popup-accent);
}
.setting-row {
display: flex;
align-items: center;
justify-content: space-between;
padding: 8px 4px;
border-bottom: 1px solid var(--popup-border);
}
.setting-row:last-child {
border-bottom: none;
}
.setting-info {
flex: 1;
margin-right: 16px;
}
.setting-label {
font-size: 13px;
font-weight: 500;
color: var(--popup-text);
}
.setting-desc {
font-size: 11px;
color: var(--popup-text-weak);
margin-top: 2px;
line-height: 1.4;
}
/* Toggle switch */
.toggle {
position: relative;
display: inline-block;
width: 40px;
height: 22px;
flex-shrink: 0;
}
.toggle input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
inset: 0;
background: var(--popup-slider-off);
border-radius: 22px;
cursor: pointer;
transition: background 0.2s;
}
.slider::before {
content: '';
position: absolute;
width: 16px;
height: 16px;
left: 3px;
top: 3px;
background: #fff;
border-radius: 50%;
transition: transform 0.2s;
box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
input:checked + .slider {
background: var(--popup-slider-on);
}
input:checked + .slider::before {
transform: translateX(18px);
}
.footer {
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 10px 16px;
border-top: 1px solid var(--popup-border);
font-size: 11px;
color: var(--popup-text-weak);
}
.footer-dot {
opacity: 0.5;
}
.footer-link {
color: var(--popup-text-weak);
text-decoration: none;
transition: color 0.15s ease;
}
.footer-link:hover {
color: var(--popup-text);
}