-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
119 lines (110 loc) · 2.26 KB
/
style.css
File metadata and controls
119 lines (110 loc) · 2.26 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
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
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #333333;
}
.container {
position: relative;
width: 400px;
height: 400px;
display: flex;
justify-content: center;
align-items: center;
}
.container .spinBtn {
position: absolute;
width: 60px;
height: 60px;
background: #ffffff;
border-radius: 50%;
z-index: 10;
display: flex;
justify-content: center;
align-items: center;
text-transform: uppercase;
font-weight: 600;
color: #333333;
letter-spacing: 0.1em;
border: 4px solid #000000bf;
cursor: pointer;
user-select: none;
}
.container .spinBtn::before {
content: '';
position: absolute;
top: -28px;
width: 20px;
height: 30px;
background: #ffffff;
clip-path: polygon(50% 0%, 20% 100%, 80% 100%);
}
.container .wheel {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #333333;
border-radius: 50%;
overflow: hidden;
box-shadow: 0 0 0 5px #333333,
0 0 0 15px #ffffff,
0 0 0 18px #111;
transition: transform 5s ease-in-out;
}
.container .wheel .content{
position: absolute;
width: 50%;
height: 50%;
background: var(--clr);
transform-origin: bottom right;
transform: rotate(calc(45deg * var(--i)));
clip-path: polygon(0 0, 60% 0, 100% 100%, 0 60%);
display: flex;
justify-content: center;
align-items: center;
user-select: none;
cursor: pointer;
}
.container .wheel .content span{
position: relative;
transform: rotate(45deg);
font-weight: 600;
font-size: 14px;
color: #ffffff;
text-shadow: 3px 3px 2px rgb(0,0,0,0.15);
}
header {
padding: 20px;
position: absolute;
top: 0;
width: 100%;
background: #505050;
color: #ffffff;
z-index: 1;
text-align: center;
}
.swiffy-slider {
position: absolute;
z-index: 11;
top: 800px;
bottom: 0;
left: 0;
justify-content: center;
align-items: center;
}
.itensLegend {
padding: 30px;
list-style: none;
background: #ffffff;
text-align: center;
}