-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtextbox.css
More file actions
79 lines (72 loc) · 1.72 KB
/
textbox.css
File metadata and controls
79 lines (72 loc) · 1.72 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
input[type="text"],
input[type="search"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
textarea,
select {
font-size: var(--global-font-size);
font-family: var(--global-font-family);
outline: 0;
border: none;
border-radius: 4px;
background-color: var(--clr-control);
background-position: calc(100%);
padding: 4px 8px;
margin: 2px 4px;
transition: .2s;
}
select {
padding-top: 3px;
padding-bottom: 3px;
}
input[type="text"]:focus,
input[type="search"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
animation: outline .3s ease-in;
box-shadow: var(--clr-accent) 0 0 0 2px;
}
input[type="text"]:disabled,
input[type="search"]:disabled,
input[type="password"]:disabled,
input[type="email"]:disabled,
input[type="number"]:disabled,
input[type="date"]:disabled,
textarea:disabled,
select:disabled {
background-color: transparent;
box-shadow: var(--clr-control) 0 0 0 2px inset;
}
input[type="text"]::placeholder,
input[type="search"]::placeholder,
input[type="password"]::placeholder,
input[type="email"]::placeholder,
input[type="number"]::placeholder,
input[type="date"]::placeholder,
textarea::placeholder,
select::placeholder {
color: rgb(64,64,64);
}
input[type="text"]:required,
input[type="search"]:required,
input[type="password"]:required,
input[type="email"]:required,
input[type="number"]:required,
input[type="date"]:required {
background-image: url(mono/required.svg);
background-size: 24px 24px;
background-repeat: no-repeat;
}
input[type=number]:not(:focus) {
appearance: textfield;
}
select > option {
font-size: var(--global-font-size);
font-family: var(--global-font-family);
}