-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
87 lines (86 loc) · 1.9 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
80
81
82
83
84
85
86
87
:root {
--color-background: #fff;
--color-text: #000;
--color-text-light: lightgray;
--color-button-start: #0557ff;
--color-button-stop: #f00;
--color-button-text: #fff;
}
@media (prefers-color-scheme: dark) {
:root {
--color-background: #000213;
--color-text: #a5a8d2;
--color-text-light: #444766;
--color-button-start: #0557ff;
--color-button-stop: #f00;
--color-button-text: #d8d8d8;
}
}
body {
margin: 0;
padding: 0;
min-height: 100vh;
background: var(--color-background);
display: flex;
align-items: center;
justify-content: center;
}
.RandomPicker {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 16px;
font-family: 'Helvetica', sans-serif;
}
.RandomPicker__choice {
display: flex;
align-content: center;
margin: 0;
margin-bottom: 1em;
color: var(--color-text);
font-size: 60px;
font-weight: bold;
line-height: 1;
text-align: center;
white-space: nowrap;
}
.RandomPicker__button {
display: block;
padding: 0.8em 1.6em;
min-width: 160px;
color: var(--color-button-text);
font-size: 20px;
font-weight: bold;
text-align: center;
text-transform: uppercase;
letter-spacing: 2px;
border: 0;
border-radius: 4em;
background-color: var(--color-button-start);
user-select: none;
cursor: pointer;
transition: background-color 250ms ease-in-out, color 150ms ease-in-out;
}
.RandomPicker__button--stop {
background-color: var(--color-button-stop);
}
.RandomPicker__button--reset {
color: var(--color-text);
font-size: 14px;
text-transform: lowercase;
background-color: inherit;
}
.RandomPicker__button--reset[disabled] {
color: var(--color-text-light);
text-decoration: line-through;
cursor: not-allowed;
}
.RandomPicker__controls {
display: flex;
flex-direction: column;
align-items: center;
}
.RandomPicker__controls > *:not(:last-child) {
margin-bottom: 16px;
}