-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
41 lines (34 loc) · 1.05 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
.game-table {
width: 100%; height: 100%; background: green; padding: 4em;
}
.slot, .card, .card-won {
width: 10em; height: 14em;
}
.slot {
margin: .25em;
position: relative; display: inline-block;
}
.card, .card-won {
margin-left: -5em; margin-right: -5em;
margin-top: -7em; margin-bottom: -7em;
display: inline-block; position: absolute; top: 50%; left: 50%;
border-radius: .625em; background: white; border: solid black 2px;
font-size: small;
transition: .25s;
}
.slot, .card-chosen, .card-won { font-size: large; }
.card-won {
opacity: 0;
transform: translateY(100%) scale(.8);
transition: .5s;
}
.dot {
width: 2.5em; height: 2.5em;
margin: -1.25em; border-radius: 50%; position: absolute;
}
.dot-0 { top: 3em; left: 3em; background: red; }
.dot-1 { top: 7em; left: 3em; background: gold; }
.dot-2 { top: 11em; left: 3em; background: blue; }
.dot-3 { top: 3em; left: 7em; background: darkorange; }
.dot-4 { top: 7em; left: 7em; background: lime; }
.dot-5 { top: 11em; left: 7em; background: purple; }