-
Notifications
You must be signed in to change notification settings - Fork 0
/
soothy.css
87 lines (80 loc) · 1.57 KB
/
soothy.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
:root {
--base: white;
--aliceblue: aliceblue;
--lightblue: lightblue;
--lightsteelblue: lightsteelblue;
}
@media (prefers-color-scheme: dark) {
:root {
--base: black;
--aliceblue: #00070f;
--lightblue: #0c3745;
--lightsteelblue: #2c3f5a;
}
}
* {
margin: 0;
box-sizing: border-box;
transition: all 2s;
-moz-user-select: none;
-ms-user-select: none;
-webkit-user-select: none;
-webkit-touch-callout: none;
-webkit-tap-highlight-color: transparent;
}
*:active, *:focus, *:hover { outline: none }
html {
height: 100%;
padding: 5vmin 0;
font-variant-numeric: tabular-nums;
color: var(--lightblue);
background: linear-gradient(var(--aliceblue), var(--base));
}
body {
display: flex;
height: 100%;
flex-direction: column;
justify-content: center;
align-items: center;
}
select {
margin-bottom: 2vmin;
font: 1.25em sans-serif;
color: var(--lightsteelblue);
text-align: center;
background: none;
border: none;
border-bottom: 1px solid var(--lightsteelblue);
transition: none;
}
#play {
display: flex;
flex: 0 1 80vmin;
aspect-ratio: 1;
justify-content: center;
align-items: center;
font-size: 20vmin;
line-height: 1.25;
background: var(--lightsteelblue);
border: 10vmin solid var(--aliceblue);
border-radius: 50%;
cursor: pointer;
user-select: none;
}
#play:before {
content: '▶';
color: var(--aliceblue);
}
body.playing #play {
background: var(--lightblue);
}
body.playing #play:before {
content: '▣';
}
#countdown {
font: 20vmin bold Garamond, serif;
user-select: none;
}
body.playing #countdown {
color: var(--lightsteelblue);
}