-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
133 lines (132 loc) · 2.66 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
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
:root {
--animate-blink: blink 1s steps(2, start) infinite;
--color-primary: #4285F4;
--border-primary: 1px solid #8888b3;
--danger-highlight: #f16514;
--success-highlight: #09c409;
--hover-picker-bg: #fcfbfb;
--container-box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1),
0px 10px 15px rgba(0, 0, 0, 0.2);
}
@font-face { /* Include sevenSegment font */
font-family: sevenSegment;
src: url(./font/seven-segment.ttf);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-weight: 500;
font-family: sevenSegment;
}
body {
height: 100vh;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
background-color: var(--color-primary);
}
.container {
width: 500px;
border-radius: 8px;
background-color: #fff;
box-shadow: var(--container-box-shadow);
}
.coundown {
height: 151px;
text-align: center;
border-bottom: 1px solid #ccc;
}
.coundown h1 {
width: 100%;
padding: 8px 0;
border-radius: 6px;
user-select: none;
color: var(--color-primary);
background-color: #222;
}
.coundown span {
font-size: 2em;
margin: 0 16px;
position: relative;
}
.coundown span:not(.coundown span:last-child)::after {
content: ":";
position: absolute;
top: -13px;
margin-left: 10px;
}
.coundown h1.active span::after {
animation: var(--animate-blink);
}
.coundown h1.danger span {
color: var(--danger-highlight);
animation: var(--animate-blink);
}
.coundown h1.stop span {
color: var(--danger-highlight);
}
@keyframes blink {
to {
visibility: hidden;
}
}
.content {
user-select: none;
border-bottom: 1px solid #ccc;
}
.group {
width: 100%;
margin: 0 8px;
text-align: center;
}
.coundown_picker {
height: 44px;
border-radius: 6px;
margin-top: 5px;
overflow: auto;
cursor: pointer;
scroll-behavior: smooth;
transition: all 0.3s linear;
border: var(--border-primary);
}
.coundown_picker div {
line-height: 44px;
font-size: 22px;
}
::-webkit-scrollbar {
width: 0px;
}
.coundown_picker:hover {
background-color: var(--hover-picker-bg);
}
.controls button {
width: 100%;
margin: 0 8px;
height: 44px;
border-radius: 6px;
outline: none;
color: #fff;
cursor: pointer;
font-size: 17px;
opacity: 0.7;
pointer-events: none;
border: var(--border-primary);
background-color: var(--color-primary);
}
.controls button:hover {
background-color: #3374dd;
}
.controls.active button {
opacity: 1;
pointer-events: all;
}
.coundown, .content, .controls {
padding: 22px;
}
.coundown, .coundown h1, .content, .controls {
display: flex;
justify-content: center;
align-items: center;
}