-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.css
209 lines (200 loc) · 4.78 KB
/
index.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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
/*
*
*/
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 300;
src: local('Roboto Light'),
local('Roboto-Light'),
url('roboto-light.woff2') format('woff2'),
url('roboto-light.woff') format('woff');
}
* {
font-family: roboto, sans-serif;
font-weight: 300;
}
body {
font-size: 1.2em;
margin-top: 0;
}
input,
button,
select {
font-size: inherit;
min-width: 3em;
}
input,
select {
border: 0;
background: transparent;
border-bottom: 2px solid #cecece;
text-align: center;
}
input:focus,
select:focus {
outline: 0;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
-webkit-appearance: none;
}
input[type="number"] {
-moz-appearance: textfield;
}
.toggle input {
display: none;
}
.toggle label {
display: inline-block;
border: 1px solid #e2e2e2;
border-radius: 4px;
color: #637280;
cursor: pointer;
padding: 0.5em 1em;
}
.toggle input:checked + label {
color: #fff;
background-color: #545969;
}
header {
display: flex;
justify-content: space-between;
background: #f0f0f0;
padding: 0.7em;
}
header .field,
#timer {
display: inline-block;
}
#timer.play button:after {
content: '▶';
}
#timer.stop button:after {
content: '■';
}
main {
padding-top: 2em;
columns: 3;
text-align: center;
}
main .op {
font-size: 2em;
line-height: 1.7em;
}
main .op, main footer {
transition: opacity 1.7s;
}
main .op .a,
main .op .b {
display: inline-block;
min-width: 1.1em;
}
main .op .sign {
font-size: 0.6em;
vertical-align: top;
}
main .op input {
min-width: inherit;
width: 2em;
transition: border-bottom-color 0.7s;
}
main .op.err input {
color: red;
border-bottom-color: red;
}
main footer {
break-inside: avoid;
margin-top: 2em;
}
main footer output[name="timer"] {
display: block;
font-size: 1em;
padding-top: 0.5em;
}
main footer output[name="score"] {
display: block;
padding-top: 0.5em;
min-height: 150px;
font-size: 1.7em;
transform: rotate(-7deg);
font-family: "Comic Sans MS", "Comic Sans", cursive;
}
/* https://github.com/una/animated-emojis
* https://dribbble.com/shots/1925708-Emojis
*/
.emojis {
display: inline-block;
width: 100px;
height: 100px;
background-image: url(emojis.gif);
background-repeat: no-repeat;
}
/* -106px -106px */
.emojis--01 { background-position: -37px -39px; }
.emojis--02 { background-position: -143px -39px; }
.emojis--03 { background-position: -249px -39px; }
.emojis--04 { background-position: -355px -39px; }
.emojis--05 { background-position: -461px -39px; }
.emojis--06 { background-position: -567px -39px; }
.emojis--07 { background-position: -673px -39px; }
.emojis--08 { background-position: -37px -145px; }
.emojis--09 { background-position: -143px -145px; }
.emojis--10 { background-position: -249px -145px; }
.emojis--11 { background-position: -355px -145px; }
.emojis--12 { background-position: -461px -145px; }
.emojis--13 { background-position: -567px -145px; }
.emojis--14 { background-position: -673px -145px; }
.emojis--15 { background-position: -37px -251px; }
.emojis--16 { background-position: -143px -251px; }
.emojis--17 { background-position: -249px -251px; }
.emojis--18 { background-position: -355px -251px; }
.emojis--19 { background-position: -461px -251px; }
.emojis--20 { background-position: -567px -251px; }
.emojis--21 { background-position: -673px -251px; }
.emojis--22 { background-position: -37px -357px; }
.emojis--23 { background-position: -143px -357px; }
.emojis--24 { background-position: -249px -357px; }
.emojis--25 { background-position: -355px -357px; }
.emojis--26 { background-position: -461px -357px; }
.emojis--27 { background-position: -567px -357px; }
.emojis--28 { background-position: -673px -357px; }
.emojis--29 { background-position: -37px -463px; }
.emojis--30 { background-position: -143px -463px; }
.emojis--31 { background-position: -249px -463px; }
.emojis--32 { background-position: -355px -463px; }
.emojis--33 { background-position: -461px -463px; }
.emojis--34 { background-position: -567px -463px; }
.emojis--35 { background-position: -673px -463px; }
/*
* Media queries
*/
@media print {
header,
footer {
display: none;
}
}
@media only screen and (max-width: 800px) {
main {
columns: 2;
}
}
@media only screen and (max-width: 600px) {
.field {
display: block;
margin-top: 0.3em;
}
main {
columns: 1;
}
.toggle label {
padding: 0.2em 0.5em;
}
.field label[for="qty"], .field label[for="nos"] {
display:none;
}
.field input[name="qty"], .field input[name="nos"] {
width:2em;
}
}