Skip to content

Commit 19e6aa3

Browse files
committed
add settings icon
1 parent d67b302 commit 19e6aa3

File tree

1 file changed

+58
-47
lines changed

1 file changed

+58
-47
lines changed
Lines changed: 58 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,98 +1,109 @@
11
div.settings-ui {
2-
left: 20px;
3-
bottom: 70px;
4-
padding: 10px 10px;
2+
left: 20px;
3+
bottom: 70px;
4+
padding: 10px 10px;
5+
}
6+
7+
.settings-accordion-icon::before {
8+
content: "";
9+
background-image: url("@fortawesome/fontawesome-free/svgs/solid/gear.svg");
10+
display: inline-block;
11+
filter: invert(var(--dark-mode));
12+
height: 16px;
13+
width: 16px;
14+
background-size: 16px 16px;
15+
vertical-align: text-top;
516
}
617

718
#settings-content {
8-
display: grid;
9-
gap: 8px 6px;
19+
display: grid;
20+
gap: 8px 6px;
1021

11-
align-items: center;
22+
align-items: center;
1223
}
1324

1425
#settings-content > label {
15-
grid-column-start: 1;
26+
grid-column-start: 1;
1627
}
1728

1829
#settings-content > input,
1930
#settings-content > select,
2031
#settings-content > label.switch {
21-
grid-column-start: 2;
32+
grid-column-start: 2;
2233
}
2334

2435
#settings-content select {
25-
background-color: var(--color-background);
26-
color: var(--color-foreground);
27-
border: 1px solid var(--color-foreground);
28-
border-radius: 6px;
36+
background-color: var(--color-background);
37+
color: var(--color-foreground);
38+
border: 1px solid var(--color-foreground);
39+
border-radius: 6px;
2940
}
3041

3142
.switch input:disabled + .slider {
32-
background-color: color-mix(in srgb, var(--color-primary) 50%, #555 50%);
43+
background-color: color-mix(in srgb, var(--color-primary) 50%, #555 50%);
3344
}
3445

3546
.switch input:disabled + .slider:before {
36-
background-color: color-mix(in srgb, var(--color-background) 50%, #555 50%);
47+
background-color: color-mix(in srgb, var(--color-background) 50%, #555 50%);
3748
}
3849

3950
/* https://www.w3schools.com/HOWTO/howto_css_switch.asp */
4051
/* The switch - the box around the slider */
4152
.switch {
42-
position: relative;
43-
display: inline-block;
44-
width: 30px;
45-
height: 17px;
53+
position: relative;
54+
display: inline-block;
55+
width: 30px;
56+
height: 17px;
4657
}
4758

4859
/* Hide default HTML checkbox */
4960
.switch input {
50-
opacity: 0;
51-
width: 0;
52-
height: 0;
61+
opacity: 0;
62+
width: 0;
63+
height: 0;
5364
}
5465

5566
/* The slider */
5667
.slider {
57-
position: absolute;
58-
cursor: pointer;
59-
top: 0;
60-
left: 0;
61-
right: 0;
62-
bottom: 0;
63-
background-color: var(--color-background);
64-
-webkit-transition: 0.4s;
65-
transition: 0.4s;
68+
position: absolute;
69+
cursor: pointer;
70+
top: 0;
71+
left: 0;
72+
right: 0;
73+
bottom: 0;
74+
background-color: var(--color-background);
75+
-webkit-transition: 0.4s;
76+
transition: 0.4s;
6677
}
6778

6879
.slider:before {
69-
position: absolute;
70-
content: "";
71-
height: 13px;
72-
width: 13px;
73-
left: 2px;
74-
bottom: 2px;
75-
background-color: var(--color-primary);
76-
-webkit-transition: 0.3s;
77-
transition: 0.3s;
80+
position: absolute;
81+
content: "";
82+
height: 13px;
83+
width: 13px;
84+
left: 2px;
85+
bottom: 2px;
86+
background-color: var(--color-primary);
87+
-webkit-transition: 0.3s;
88+
transition: 0.3s;
7889
}
7990

8091
input:checked + .slider {
81-
background-color: var(--color-background);
92+
background-color: var(--color-background);
8293
}
8394

8495
input:checked + .slider:before {
85-
-webkit-transform: translateX(13px);
86-
-ms-transform: translateX(13px);
87-
transform: translateX(13px);
88-
background-color: var(--color-foreground);
96+
-webkit-transform: translateX(13px);
97+
-ms-transform: translateX(13px);
98+
transform: translateX(13px);
99+
background-color: var(--color-foreground);
89100
}
90101

91102
/* Rounded sliders */
92103
.slider.round {
93-
border-radius: 17px;
104+
border-radius: 17px;
94105
}
95106

96107
.slider.round:before {
97-
border-radius: 50%;
98-
}
108+
border-radius: 50%;
109+
}

0 commit comments

Comments
 (0)