-
Notifications
You must be signed in to change notification settings - Fork 0
/
input.css
58 lines (42 loc) · 1013 Bytes
/
input.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
/* Text */
input[type=text], input[type=number] {
appearance: none;
border: none;
outline: none;
border-bottom: .2em solid #7e292a;
background: rgba(0, 0, 0, 0.2);
border-radius: .2em .2em 0 0;
padding: .4em;
color: #e2cbd3;
margin-top: 0.4rem;
margin-bottom: 1rem;
}
input[type=checkbox]::before {
content: "";
width: 0.65em;
height: 0.65em;
transform: scale(0);
transition: 120ms transform ease-in-out;
box-shadow: inset 1em 1em #E91E63;
background-color: CanvasText;
clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
transform-origin: left top;
}
input[type=checkbox]:checked::before {
transform: scale(1);
}
/* Color */
input[type=color] {
padding: 0;
border: none;
width: 10em;
height: 2em;
border-radius: 2rem;
}
input[type=color]::-webkit-color-swatch {
border: none;
border-radius: 2rem;
}
input[type=color]::-webkit-color-swatch-wrapper {
padding: 0;
}