-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecssentric.forms.css
More file actions
95 lines (83 loc) · 1.82 KB
/
ecssentric.forms.css
File metadata and controls
95 lines (83 loc) · 1.82 KB
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
/* forms */
/* Change autocomplete styles in WebKit */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
border: var(--border-input);
-webkit-text-fill-color: var(--text-color);
-webkit-box-shadow: 0 0 0px 1000px var(--bg-input) inset;
}
label {
display: block;
}
label.input-button {
cursor: pointer;
}
input,
input:-webkit-autofill,
input:autofill,
select,
label.input-button,
textarea{
background: var(--bg-input);
border: var(--border-input);
color: var(--text-input);
padding: 0.5rem 1rem;
margin: 0.4rem 0.2rem;
display: inline-block;
border-radius: var(--radius);
user-select: none;
outline:none;
}
input:invalid {
border: 1px solid red;
}
input:disabled,
textarea:disabled,
label.input-button:has(> input:disabled),
select:disabled,
input[type="radio"]:disabled,
input[type="checkbox"]:disabled {
background: var(--bg-input-disabled);
border: var(--border-input-disabled);
color: var(--text-input-disabled);
cursor: default;
}
label input[type="radio"]:checked:disabled,
label input[type="checkbox"]:checked:disabled {
background: hsl(from var(--action-primary) h 50% 33%);
}
label input[type="radio"]:checked,
label input[type="checkbox"]:checked {
background: var(--action-primary);
}
input[type="radio"],
input[type="checkbox"] {
appearance: none;
border: 2px solid gray;
width: 1rem;
height: 1rem;
margin:0;
padding:0;
border-radius: 50%;
}
input[type="checkbox"] {
border-radius: var(--radius);
}
textarea {
outline:none;
border-radius: var(--radius);
max-width: 100%;
width: 100%;
height:15vh;
font-family: var(--font-family);
font-size:inherit;
padding:var(--gutter);
margin:0;
}