-
Notifications
You must be signed in to change notification settings - Fork 0
/
interactive.css
64 lines (54 loc) · 1.54 KB
/
interactive.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
/* INTERACTIVE */
/* INPUT */
input, button, textarea, select {
font: inherit;
line-height: inherit;
color: inherit;
}
input:focus, input:active, textarea:focus, textarea:active, select:focus, select:active {
border-color: var(--accent-color);
border-radius: 0;
outline: none;
}
[type=text], [type=email], [type=url], [type=password], [type=number], [type=date], [type=datetime-local], [type=month], [type=search], [type=tel], [type=time], [type=week], [multiple], [list], textarea, select {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
border-color: var(--primary-color);
border-width: 1px;
border-radius: 0;
padding: 0.5rem 0.75rem;
font-size: 1rem;
line-height: 1.5rem;
max-width: 100%;
}
textarea {
resize: vertical;
}
fieldset {
padding: 1rem;
}
/* BUTTON */
button, [role="button"], input[type="submit"], input[type="button"], input[type="reset"] {
all: unset;
cursor: pointer;
transition: 0.3s;
padding: 0.125rem 0.25rem;
border: 1px solid var(--primary-color);
background-color: var(--secondary-background);
}
button:active, [role="button"]:hover, input[type="submit"]:active, input[type="button"]:active, input[type="reset"]:active {
scale: 0.95;
}
button:hover, [role="button"]:hover, input[type="submit"]:hover, input[type="button"]:hover, input[type="reset"]:hover {
border-color: var(--accent-color);
opacity: 0.9;
}
/* OTHER */
details p {
height: 0;
transition: 0.3s;
}
details[open] p {
height: max-content;
}