-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinputs.css
144 lines (121 loc) · 3.52 KB
/
inputs.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
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
141
142
143
144
fieldset {
border: 1px solid var(--ui-border);
border-radius: var(--bradius);
padding: var(--gap);
margin: var(--gap) 0;
}
input[type=range] {
--webkit-appearance: none;
appearance: none;
width: 100%;
height: 1em;
outline: none;
margin: 1.5em auto;
cursor: ew-resize;
}
input[type=range]::-webkit-slider-runnable-track {
border: 1px solid var(--ui-border);
transition: border-color var(--animation-speed) ease-in-out;
background-color: var(--background-lighter);
height: 100%;
}
input[type=range]:hover::-webkit-slider-runnable-track,
input[type=range]:focus::-webkit-slider-runnable-track {
border-color: var(--secondary-color);
}
input[type=range]::-webkit-slider-thumb {
--webkit-appearance: none;
appearance: none;
width: 0.2em;
height: 100%;
background-color: var(--secondary-color);
transition: height var(--animation-speed) ease-in-out, margin-top var(--animation-speed) ease-in-out;
}
input[type=range]:hover::-webkit-slider-thumb,
input[type=range]:focus::-webkit-slider-thumb {
margin-top: -0.5em;
height: 200%;
}
input[type=search], input[type=text], input[type=number], select, textarea {
padding: var(--gap);
font-family: inherit;
font-size: inherit;
border: 1px solid var(--ui-border);
border-radius: var(--bradius);
background-color: var(--background-lighter);
color: inherit;
width: 100%;
box-sizing: border-box;
transition: background-color var(--animation-speed) ease-in-out,
border-color var(--animation-speed) ease-in-out;
}
input[type=search]:hover, input[type=text]:hover, input[type=number]:hover, select:hover, textarea:hover,
table input[type=search], table input[type=text], table input[type=number], table select, table textarea {
border-color: var(--secondary-color);
}
input[type=search]:focus, input[type=text]:focus, input[type=number]:focus, select:focus, textarea:focus {
background-color: var(--secondary-color);
color: var(--background-color);
}
input[type=search]:focus-visible, [type=text]:focus-visible, input[type=number]:focus-visible, select:focus-visible, textarea:focus-visible {
outline: none;
}
input[type=radio] {
--webkit-appearance: none;
--moz-appearance: none;
appearance: none;
display: inline-block;
width: 1em;
height: 1em;
border-radius: 50%;
border: 1px solid var(--secondary-color);
background-color: var(--background-lighter);
transition: background-color var(--animation-speed) ease-in-out;
}
input[type=radio]:checked {
background-color: var(--secondary-color);
}
textarea {
resize: vertical;
}
.button-bar {
display: flex;
justify-content: left;
margin: 1em 0;
}
.button-bar button + button {
margin-left: 0.5em;
}
button {
background-color: var(--secondary-color);
color: var(--background-color);
border: 1px solid currentColor;
border-radius: var(--bradius);
cursor: pointer;
transition: background-color var(--animation-speed);
}
button.danger {
background-color: var(--brand-red);
}
button[disabled] {
background-color: var(--background-lighter);
color: var(--ui-border);
cursor: not-allowed;
}
button:hover {
filter: brightness(115%);
}
button.large, .button-bar button {
padding: var(--gap) var(--gap2);
}
a, a:hover, a:active {
color: inherit;
}
label {
-webkit-user-select: none; /* Added to support Safari and Safari on iOS */
user-select: none;
cursor: pointer;
}
label.spaced + label.spaced {
margin-left: 0.2em;
}