-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
58 lines (51 loc) · 1017 Bytes
/
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
body {
background-color: #1F3861;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
color: white;
}
.roulette-container {
width: 100px;
height: 300px;
overflow: hidden;
position: relative;
display: flex;
align-items: center;
justify-content: center;
}
.roulette {
position: absolute;
top: 50%;
transform: translateY(-50%);
transition: transform 4s ease-out;
}
.weight {
width: 100%;
height: 40px;
line-height: 40px;
text-align: center;
font-size: 20px;
font-weight: bold;
margin: 0;
padding: 0;
transition: opacity 0.5s, transform 0.5s;
will-change: transform;
}
.weight:nth-child(odd) {
color: #44BEFF;
}
.weight:nth-child(even) {
color: #D5C1FC;
}
.controls {
margin-top: 20px;
text-align: center;
}
button {
margin-left: 10px;
padding: 5px 10px;
}