-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
106 lines (94 loc) · 1.7 KB
/
index.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
*,
*::after,
*::before {
box-sizing: border-box;
}
html,
body {
font-family: sans-serif;
}
.container {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
flex-direction: column;
overflow: hidden;
}
.item {
flex: 1;
width: 100%;
display: flex;
align-items: center;
justify-content: flex-end;
padding-right: 16px;
transition: transform 300ms ease-out;
will-change: transition;
backface-visibility: hidden;
height: 0;
z-index: 0;
}
.item--winner {
background: linear-gradient(45deg, #808080 25%, transparent 25%),
linear-gradient(-45deg, #808080 25%, transparent 25%),
linear-gradient(45deg, transparent 75%, #808080 75%),
linear-gradient(-45deg, transparent 75%, #808080 75%);
background-size: 20px 20px;
background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}
.item-text {
display: flex;
align-items: center;
justify-content: flex-end;
height: 100%;
position: relative;
}
.item-text-value {
font-size: 1.9vh;
}
.logo {
height: 175%;
display: block;
}
.logo-container {
height: 100%;
display: flex;
align-items: center;
justify-content: flex-end;
opacity: 1;
position: absolute;
left: 0;
width: -moz-available;
transform: translateX(-100%);
opacity: 1;
transition: opacity 150ms ease-out;
z-index: 1;
}
.logo-container--hidden {
opacity: 0;
}
.winner {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
padding: 24px;
background: white;
font-size: 40px;
border: 7px solid deeppink;
z-index: 2;
display: flex;
flex-direction: column;
}
.reset {
position: absolute;
top: 20px;
left: 20px;
z-index: 3;
}
.winner-gif {
margin-top: 20px;
width: 100%;
}