-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.css
87 lines (71 loc) · 1.57 KB
/
settings.css
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
body {
display: grid;
grid-template-columns: auto auto;
grid-row-gap: 0.4em;
align-items: center;
padding: 10px 1em;
}
label {
grid-column: 1;
}
input, textarea, select, .select-wrapper {
grid-column: 2;
}
textarea {
line-height: inherit;
font-family: inherit;
outline: none;
overflow: scroll;
resize: none;
border: 1px solid var(--highlight);
border-radius: 5px;
}
select {
appearance: none;
border: 1px solid var(--highlight);
border-radius: 5px;
background-color: var(--bg);
padding: 1px 0.75ch;
width: 100%;
}
.select-wrapper {
position: relative;
}
.select-wrapper::after {
content: "▼";
font-size: 1rem;
right: 10px;
position: absolute;
}
input[type="number"] {
appearance: none;
border: 1px solid var(--highlight);
border-radius: 5px;
padding: 1px 0.75ch;
}
input[type=number]::-webkit-inner-spin-button {
-webkit-appearance: none;
}
input[type="checkbox"] {
appearance: none;
position: relative;
width: 1em;
height: 1em;
border: 1px solid var(--highlight);
border-radius: 5px;
/* Adjusts the position of the checkboxes on the text baseline */
vertical-align: -2px;
background: linear-gradient(45deg, var(--bg) 50%, var(--highlight) 50%) left bottom;
background-size: 400% 100%;
transition: 0.25s;
}
input[type="checkbox"]:checked {
background-position: right bottom;
}
input[type="checkbox"]::before {
content: "✔";
position: absolute;
font-size: 1.2em;
color: var(--bg);
top: -0.2em;
}