-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathroulette.css
More file actions
executable file
·92 lines (78 loc) · 1.43 KB
/
roulette.css
File metadata and controls
executable file
·92 lines (78 loc) · 1.43 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
/* Horizontal Roulette Spinner: https://codepen.io/hugoptz_/pen/qBEpOve */
.roulette-wrapper {
position:relative;
display:flex;
justify-content:center;
width:100%;
margin:0 auto;
overflow:hidden;
}
.roulette-wrapper .selector {
width:85px;
background:green;
left:50%;
height:100%;
transform:translate(-50%,0%);
position:absolute;
z-index:2;
opacity: 0.4;
}
.roulette-wrapper .wheel {
display:flex;
}
.roulette-wrapper .wheel .row {
display:flex;
}
.roulette-wrapper .wheel .row .crd {
height:75px;
width:75px;
margin:3px;
border-radius:8px;
border-bottom:3px solid rgba(0,0,0,0.2);
display:flex;
align-items:center;
justify-content:center;
color:white;
font-size:2.5em;
}
.crd.red{
/* background:#F95146;*/
/* background: #232724;*/
background: #4c4f4cbf;
user-select: none;
}
.crd.black{
/* background:#2D3035;*/
/* background: #232724;*/
}
.crd.green{
/* background:#00C74D;*/
/* background: #232724;*/
}
.crd.red.anim-right {
transform: translate(82px, 0px);
transition-duration: 1s;
}
.crd.red.anim-left {
transform: translate(-82px, 0px);
transition-duration: 1s;
}
.textarea {
resize: none;
border: 1rem solid grey !important;
background: lightsteelblue !important;
}
*{
box-sizing:border-box;
}
@media screen and (min-width: 600px) {
#app {
width: 600px;
margin: auto;
}
}
@media (prefers-color-scheme: light) {
html {
background: beige;
}
}