summaryrefslogtreecommitdiff
path: root/frontend/src/components/game/Hand.css
blob: 01c177632f95f46867a606e8db9774f521056e88 (plain)
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
.hand {
    align-items: center;
    bottom: -14rem;
    display: flex;
    height: 345px; /* can hold enhanced cards */
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    transition: 0.5s
}
.hand:hover {
    bottom: 1rem;
}

.hand-card {
    align-items: flex-end;
    display: grid;
    margin: 0.2rem;
}

.hand-card .hand-card-img {
    border-radius: 0.5rem;
    box-shadow: 0 0 10px black;
    grid-row: 1;
    grid-column: 1;
    opacity: 1;
    transition: 0.1s;
    width: 11rem;
}
.hand-card.unplayable .hand-card-img {
    opacity: 0.7;
}
.hand-card:hover .hand-card-img {
    box-shadow: 0 10px 40px black;
    width: 14rem;
}

.hand-card .action-buttons {
    align-items: flex-end;
    display: none;
    grid-row: 1;
    grid-column: 1;
}
.hand-card:hover .action-buttons {
    display: flex;
}
bgstack15