-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.html
113 lines (98 loc) · 2.19 KB
/
options.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
<!DOCTYPE html>
<html>
<head>
<style>
body {
padding: 10px;
font-family: system-ui, -apple-system, sans-serif;
transition: background-color 0.3s, color 0.3s;
background-color: #ffffff;
color: #000000;
}
.form-group {
margin-bottom: 15px;
}
label {
display: block;
margin-bottom: 5px;
font-size: 14px;
}
input {
width: 100%;
padding: 6px;
box-sizing: border-box;
border: 1px solid #ccc;
border-radius: 4px;
background-color: #ffffff;
color: #000000;
transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
#status {
margin-top: 10px;
font-size: 12px;
text-align: center;
min-height: 20px;
}
.success {
color: #22c55e;
}
.error {
color: #ef4444;
}
#saveButton {
width: 100%;
padding: 8px;
margin-top: 10px;
background-color: #0060df;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.2s;
}
#saveButton:hover {
background-color: #0250bb;
}
@media (prefers-color-scheme: dark) {
body {
background-color: #1c1c1e;
color: #ffffff;
}
input {
background-color: #2c2c2e;
color: #ffffff;
border-color: #3c3c3e;
}
input:focus {
border-color: #0060df;
outline: none;
}
.success {
color: #4ade80;
}
.error {
color: #f87171;
}
#saveButton {
background-color: #0060df;
}
#saveButton:hover {
background-color: #0250bb;
}
}
</style>
</head>
<body>
<div class="form-group">
<label for="minStep">Amount of scrolling for a single keystroke in pixels:</label>
<input type="number" id="minStep" min="1" max="1000">
</div>
<div class="form-group">
<label for="maxStep">Non-linear speed-up when a key is held down:</label>
<input type="number" id="maxStep" min="1" max="1000">
</div>
<div id="status"></div>
<button id="saveButton">Save Settings</button>
<script src="options.js"></script>
</body>
</html>