-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
111 lines (100 loc) · 2.36 KB
/
style.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
107
108
109
110
111
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
@font-face {
font-family: 'Poppins', sans-serif;
src: url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');
}
*{
font-family: 'Poppins', sans-serif;
margin : 0;
padding : 0;
box-sizing: border-box;
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #4158D0;
background-image: linear-gradient(43deg, #4158D0 0%, #C850C0 46%, #FFCC70 100%);
}
.container{
position: relative;
display: flex;
width: 400px;
height: 400px;
justify-content: center;
align-items: center;
}
.container .title {
position: relative;
width: 500px;
height: 700px;
text-align: center;
font-weight: 600;
text-transform: uppercase;
color: #fff;
text-shadow: 3px 5px 2px rgba(0,0,0,0.15);
font-size: 2em;
}
.container .spinbutton{
position : absolute;
width: 60px;
height: 60px;
background-color: #fff;
border-radius: 50%;
z-index: 10;
display: flex;
justify-content: center;
align-items: center;
text-transform: uppercase;
font-weight: 600;
color: #333;
border: 3px solid rgba(0,0,0,0.75);
cursor: pointer;
user-select: none;
}
.container .spinbutton::before{
content: '';
position : absolute;
width: 20px;
height: 30px;
top: -25px;
background : #fff;
clip-path: polygon(50% 0%, 10% 100%, 90% 100%);
}
.container .wheel {
position: absolute;
width: 100%;
height: 100%;
border-radius: 50%;
pointer-events: none;
box-shadow: 0 0 0 3px #333,
0 0 0 15px #fff,
0 0 0 18px #111;
overflow: hidden;
transition: transform 5s ease-in-out;
}
.container .wheel .activity {
position: absolute;
width: 50%;
height: 50%;
background: var(--clr);
transform-origin: bottom right;
transform: rotate(calc(45deg * var(--i)));
clip-path: polygon(0 0, 59% 0, 100% 100%, 0 59%);
display: flex;
justify-content: center;
align-items: center;
user-select: none;
cursor: pointer;
padding : 50px;
}
.container .wheel .activity span {
position : relative;
rotate: -45deg;
font-weight: 700;
color: #fff;
font-size: 1.05em;
text-shadow: 3px 5px 2px rgba(0,0,0,0.15);
text-align: center;
}