-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
136 lines (118 loc) · 2.69 KB
/
popup.html
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
<!DOCTYPE html>
<html>
<head>
<style>
:root {
--background: #fafafa;
--foreground: #000000;
--primary: #5E6AD2;
--surface: #ffffff;
--border: #e5e5e5;
}
@media (prefers-color-scheme: dark) {
:root {
--background: #1b1b1d;
--foreground: #ffffff;
--surface: #242426;
--border: #2e2e30;
}
}
body {
width: 320px;
padding: 16px;
font-family: -apple-system, system-ui, BlinkMacSystemFont;
background: var(--background);
color: var(--foreground);
margin: 0;
}
h2 {
font-size: 14px;
font-weight: 500;
margin: 0 0 16px;
}
.control-group {
margin-bottom: 16px;
padding: 12px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: space-between;
}
.toggle-switch {
width: 36px;
height: 20px;
background: var(--border);
border-radius: 32px;
position: relative;
cursor: pointer;
transition: all 0.2s;
}
.toggle-switch.active {
background: var(--primary);
}
.toggle-switch::after {
content: '';
position: absolute;
width: 16px;
height: 16px;
border-radius: 50%;
background: white;
top: 2px;
left: 2px;
transition: all 0.2s;
}
.toggle-switch.active::after {
transform: translateX(16px);
}
input[type="text"] {
width: 100%;
padding: 8px;
border: 1px solid var(--border);
border-radius: 6px;
background: var(--surface);
color: var(--foreground);
font-size: 13px;
}
button {
width: 100%;
padding: 8px;
background: var(--primary);
color: white;
border: none;
border-radius: 6px;
font-size: 13px;
font-weight: 500;
cursor: pointer;
transition: opacity 0.2s;
}
button:hover {
opacity: 0.9;
}
label {
font-size: 13px;
color: var(--foreground);
}
</style>
</head>
<body>
<h2>Font Settings</h2>
<div class="control-group">
<label>Apply to All Sites</label>
<div class="toggle-switch" id="globalToggle"></div>
</div>
<div class="control-group">
<label>Use on This Site</label>
<div class="toggle-switch" id="siteToggle"></div>
</div>
<div class="control-group">
<input type="text" id="primaryFont" placeholder="Primary Font">
</div>
<div class="control-group">
<input type="text" id="fallbackFont" placeholder="Fallback Font">
</div>
<button id="save">Save</button>
<script src="popup.js"></script>
</body>
</html>