forked from WebDevSimplified/countdown-flip-timer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
95 lines (82 loc) · 1.49 KB
/
styles.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
*, *::after, *::before {
box-sizing: border-box;
font-family: Arial, Helvetica, sans-serif;
font-size: 2.25rem;
}
body {
background-color: #f2f1ed;
color: #de4848;
}
.flip-card {
position: relative;
display: inline-flex;
flex-direction: column;
box-shadow: 0 2px 3px 0 rgba(0, 0, 0, .2);
border-radius: .1em;
}
.top,
.bottom,
.flip-card .top-flip,
.flip-card .bottom-flip {
height: .75em;
line-height: 1;
padding: .25em;
overflow: hidden;
}
.top,
.flip-card .top-flip {
background-color: #f7f7f7;
border-top-right-radius: .1em;
border-top-left-radius: .1em;
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.bottom,
.flip-card .bottom-flip {
background-color: white;
display: flex;
align-items: flex-end;
border-bottom-right-radius: .1em;
border-bottom-left-radius: .1em;
}
.flip-card .top-flip {
position: absolute;
width: 100%;
animation: flip-top 250ms ease-in;
transform-origin: bottom;
}
@keyframes flip-top {
100% {
transform: rotateX(90deg);
}
}
.flip-card .bottom-flip {
position: absolute;
bottom: 0;
width: 100%;
animation: flip-bottom 250ms ease-out 250ms;
transform-origin: top;
transform: rotateX(90deg);
}
@keyframes flip-bottom {
100% {
transform: rotateX(0deg);
}
}
.container {
display: flex;
gap: .5em;
justify-content: center;
}
.container-segment {
display: flex;
flex-direction: column;
gap: .1em;
align-items: center;
}
.segment {
display: flex;
gap: .1em;
}
.segment-title {
font-size: 1rem;
}