-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpopup.css
More file actions
113 lines (97 loc) · 1.84 KB
/
popup.css
File metadata and controls
113 lines (97 loc) · 1.84 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
body {
margin: 0;
padding: 0;
font-family:
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
background: #fff;
color: #222;
}
body.popup-dark {
background: #242424;
color: #f2f2f2;
}
.popup-container {
padding: 1em;
}
.popup-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 0.5em;
gap: 10px;
}
h3 {
margin: 0;
font-size: 18px;
font-weight: 600;
color: inherit;
}
.mode-toggle-row {
display: flex;
align-items: center;
gap: 6px;
font-size: 12px;
font-weight: 600;
color: inherit;
user-select: none;
}
.switch {
position: relative;
display: inline-block;
width: 34px;
height: 20px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.switch-slider {
position: absolute;
cursor: pointer;
inset: 0;
background-color: #c7c7c7;
border-radius: 20px;
transition: background-color 0.2s ease;
}
.switch-slider:before {
content: "";
position: absolute;
width: 14px;
height: 14px;
left: 3px;
top: 3px;
background-color: white;
border-radius: 50%;
transition: transform 0.2s ease;
}
.switch input:checked + .switch-slider {
background-color: #767676;
}
.switch input:checked + .switch-slider:before {
transform: translateX(14px);
}
.color-grid {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 8px;
}
.color-button {
width: 40px;
height: 40px;
border: 2px solid transparent;
border-radius: 4px;
cursor: pointer;
transition: all 0.2s;
}
.color-button.mode-hidden {
display: none;
}
.color-button.dark-swatch {
filter: brightness(1.22) saturate(1.08);
border: solid 2px grey;
}
.color-button:hover {
transform: scale(1.1);
border-color: grey;
}