-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpopup.html
140 lines (125 loc) · 3.72 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
137
138
139
140
<!DOCTYPE html>
<html>
<head>
<title>Claude Sidebar Modifier</title>
<style>
:root {
--bg-color: #ffffff;
--text-color: #1f2937;
--border-color: #e5e7eb;
--accent-color: #3b82f6;
--accent-hover: #2563eb;
--input-bg: #f3f4f6;
}
@media (prefers-color-scheme: dark) {
:root {
--bg-color: #1f2937;
--text-color: #f3f4f6;
--border-color: #374151;
--input-bg: #374151;
}
}
body {
width: 300px;
padding: 16px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
background-color: var(--bg-color);
color: var(--text-color);
margin: 0;
}
h2 {
margin: 0 0 16px 0;
font-size: 18px;
font-weight: 600;
border-bottom: 1px solid var(--border-color);
padding-bottom: 8px;
}
.setting-group {
margin-bottom: 16px;
}
label {
display: block;
margin-bottom: 8px;
font-weight: 500;
font-size: 14px;
}
input[type="range"] {
width: 100%;
margin-bottom: 8px;
accent-color: var(--accent-color);
}
input[type="checkbox"] {
margin-right: 8px;
accent-color: var(--accent-color);
}
#widthValue {
font-size: 14px;
color: var(--text-color);
opacity: 0.9;
}
button {
width: 100%;
padding: 8px 12px;
background-color: var(--accent-color);
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
transition: background-color 0.2s ease-in-out;
}
button:hover {
background-color: var(--accent-hover);
}
button:active {
transform: translateY(1px);
}
.icon-button {
width: auto;
padding: 4px 8px;
background-color: var(--input-bg);
color: var(--text-color);
}
.icon-button:hover {
background-color: var(--border-color);
}
/* Success message styling */
.success-message {
position: fixed;
top: 8px;
left: 50%;
transform: translateX(-50%);
background-color: #10B981;
color: white;
padding: 8px 16px;
border-radius: 6px;
font-size: 14px;
opacity: 0;
transition: opacity 0.3s ease-in-out;
pointer-events: none;
}
.success-message.show {
opacity: 1;
}
</style>
</head>
<body>
<h2>Claude Sidebar Modifier</h2>
<div class="setting-group">
<label for="sidebarWidth">Sidebar Width: <span id="widthValue"></span>px</label>
<div style="display: flex; gap: 8px; align-items: center;">
<input type="range" id="sidebarWidth" min="100" max="500" value="267" style="flex: 1;">
<button id="resetWidth" class="icon-button" title="Reset to default width">RESET</button>
</div>
</div>
<div class="setting-group">
<label>
<input type="checkbox" id="sidebarDisabled"> Disable Sidebar
</label>
</div>
<button id="saveSettings">Save Settings</button>
<div id="successMessage" class="success-message">Settings saved!</div>
<script src="popup.js"></script>
</body>
</html>