-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
71 lines (59 loc) · 1.27 KB
/
styles.css
File metadata and controls
71 lines (59 loc) · 1.27 KB
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
/* common ------------------------------------ */
:root {
--num-width: 40px;
--num-height: 60px;
--num-digits: 6;
}
body {
font-family: sans-serif;
font-size: var(--num-height);
line-height: var(--num-height);
display: flex;
align-items: center;
justify-content: center;
width: 100vw;
height: 100vh;
margin: 0;
}
/* app --------------------------------------- */
#app {
position: relative;
display: block;
}
.counter {
overflow: hidden;
border: 2px solid #000;
border-radius: 5px;
-webkit-pointer-events: none;
-webkit-user-select: none;
pointer-events: none;
user-select: none;
position: relative;
display: flex;
flex-flow: row nowrap;
align-items: center;
justify-content: center;
width: calc(var(--num-width) * var(--num-digits));
height: var(--num-height);
}
.roller {
-webkit-pointer-events: none;
-webkit-user-select: none;
pointer-events: none;
user-select: none;
position: absolute;
top: 0;
left: 0;
transition: all .25s ease-out;
}
.digit {
-webkit-pointer-events: none;
-webkit-user-select: none;
pointer-events: none;
user-select: none;
display: flex;
align-items: center;
justify-content: center;
width: var(--num-width);
height: 100%;
}