-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
79 lines (68 loc) · 1.45 KB
/
style.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
* {
padding: 0;
margin: 0;
}
body {
text-align: center;
font-family: sans-serif;
}
h1 {
margin: 5em 0 1em;
}
#grid {
margin: .5em auto 0;
border-spacing: 0;
border-collapse: collapse;
}
#grid td {
border: 1px solid grey;
}
@keyframes birth {
50% {
box-shadow: 0 0 0 44px green inset;
}
}
#grid input[type="checkbox"] {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
display: block;
width: 44px;
height: 44px;
background: white;
}
#grid input[type="checkbox"]:checked {
box-shadow: 0 0 0 44px black inset;
animation: birth 1s;
}
button,
.button {
padding: .4em .6em;
border: 1px solid rgba(0,0,0,.2);
border-radius: .3em;
box-shadow: 0 1px 0 hsla(0,0%,100%,.7) inset, 0 .15em .1em -.1em rgba(0,0,0,.3);
background: linear-gradient(hsla(0,0%,100%,.3), hsla(0,0%,100%,0)) hsla(215,50%,50%,1);
color: white;
text-shadow: 0 -.05em .05em rgba(0,0,0,.3);
font: inherit;
font-weight: bold;
font-size: 1.5em;
outline: none;
cursor: pointer;
}
button:enabled:active,
.button:active,
input[type="checkbox"]:checked + label.button {
background-image: none;
box-shadow: 0 .1em .3em rgba(0,0,0,.5) inset;
}
button:disabled {
box-shadow: none;
background-color: hsla(215,25%,50%,0.75);
cursor: not-allowed;
}
/* hide the input giving the ability to interact with the input still */
#autoplay {
position: absolute;
clip: rect(0,0,0,0);
}