forked from cmgiven/justgrimes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
elonmusk-review.css
155 lines (128 loc) · 2.7 KB
/
elonmusk-review.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
body {
background: #fff;
font-family: 'Open Sans', sans-serif;
font-weight: 300;
text-align: center;
}
h1, h2, th {
font-weight: 300;
}
h2 {
font-size: 1em;
margin: 0;
}
a { color: inherit; text-decoration: none; }
#chart { margin-top: 2em; }
table {
margin: 0 auto;
text-align: left;
}
label {
display: block;
position: relative;
width: 20%;
padding-bottom: 20%;
float: left;
background: url('images/background.png') 100% 100%;
}
label span {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
label:after {
content: "";
display: none;
position: absolute;
top: 0; left: 0; bottom: 0; right: 0;
background: url('images/elonmusk.png') 100% 100%;
animation-duration: .6s;
animation-timing-function: ease-in-out;
animation-fill-mode: forwards;
}
label.spin:after {
animation-name: spin;
}
form.active label:after {
display: block;
}
form.active input[type='radio']:checked ~ label:after {
display: none;
}
form:not(.disabled) > div:hover label:after {
display: block !important;
}
form:not(.disabled) > div:hover label:hover ~ label:after {
display: none !important;
}
@keyframes spin {
75% {
transform: rotate(375deg);
}
100% {
transform: rotate(360deg);
}
}
input[type='radio'] {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
clip-path: circle(1% at 1% 1%);
height: 1px;
overflow: hidden;
padding: 0;
position: absolute;
left: 0;
width: 1px;
}
input[type='submit'] {
-webkit-appearance: button;
cursor: pointer;
border: none;
border-radius: 0;
background: #197CB2;
color: white;
font-family: inherit;
font-weight: inherit;
font-size: 2em;
padding: .25em 1em;
margin: 1em 0;
}
input[type='submit']:hover, input[type='submit']:focus {
background: #0C6CA0;
}
input[type='submit']:active {
background: #773311;
}
input[type='submit']:disabled {
background: #E5E4E3;
}
td, th { padding: 0 .5em; }
svg text {
font-family: 'Open Sans', sans-serif;
}
.x.axis path, .y.axis path { display: none; }
.x.axis line, .y.axis line { stroke: #E5E4E3; stroke-width: 2px; }
.y.axis text { font-size: 2em; fill: #707070; }
.graph { fill: none; stroke: #707070; stroke-width: 1.5px; }
.marker text {
text-anchor: middle;
font-size: .75em;
fill: #fff;
}
.badge path { fill: #d53030}
footer { font-size: .8125em; }
footer a { color: #197CB2; }
footer a:hover, footer a:focus { color: #0C6CA0; }
footer ul {
padding: 0;
margin: 2em 0;
}
footer li {
display: inline-block;
padding: .5em 1em;
}