forked from hotwired/stimulus
/
main.css
79 lines (68 loc) · 1.3 KB
/
main.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
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
*:not(:active) {
color: #333;
}
a:active {
color: #333;
}
body {
background: #fff;
font-family: -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
font-size: 16px;
padding: 2ex 0;
line-height: 1.5;
}
p {
margin-bottom: 2ex;
}
textarea {
resize: none;
}
button,
input,
textarea {
background: #fff;
border: 0.25ex solid #333;
border-radius: 0.5em;
margin: 0.5ex 0.5em;
padding: 0.5ex 0.5em;
font-family: inherit;
font-size: 16px;
box-shadow: 0 0 0 0.5ex rgba(0, 0, 0, 0.25);
vertical-align: middle;
}
button {
background: #ccc;
border-left-color: #fff;
border-top-color: #fff;
cursor: pointer;
}
button:active {
border-left-color: #333;
border-top-color: #333;
border-bottom-color: #ccc;
border-right-color: #ccc;
color: #333;
padding: calc(0.5ex + 1px) calc(0.5em - 1px) calc(0.5ex - 1px) calc(0.5em + 1px);
margin: calc(0.5ex - 1px) calc(0.5em + 1px) calc(0.5ex + 1px) calc(0.5em - 1px);
transform: translate(1px, 1px);
}
button:active,
button:focus {
outline: none;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
outline: none;
box-shadow: 0 0 0 0.5ex rgba(0, 51, 255, 0.5);
}
input,
textarea {
border-bottom-color: #ccc;
border-right-color: #ccc;
}