aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionCardDeckView.scss
blob: 981e528ccda207f26f1172327e0906ba81528fa3 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
.collectionCardView-outer {
    height: 100%;
    width: 100%;
    position: relative;
    background-color: white;
    overflow: hidden;
    display: flex;
    .collectionCardView-inner {
        display: flex;
        transform-origin: top left;
        align-items: center;
        position: relative;
    }

    button {
        border-radius: 50%;
    }
}

.collectionCardView-flashcardUI {
    top: 0px;
    position: absolute;
    width: 100%;
    height: 100%;
    transform-origin: top left;
}

.collectionCardView-cardwrapper {
    display: grid;
    transform-origin: left 50%;
    align-items: center;
    z-index: 0; // so that setting z-index of active card doesn't make it land on top of things outside of the card-wrapper
}
.collectionCardView-cardSizeDragger {
    position: absolute;
    top: 0px;
    width: 28px;
    height: 28px;
    > svg {
        width: 100%;
        height: 100%;
    }
}

.no-card-span {
    position: relative;
    width: fit-content;
    text-align: center;
    font-size: 65px;
}

.card-item-inactive,
.card-item-active,
.card-item {
    position: relative;
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.card-item-inactive {
    opacity: 0.5;
}

.card-item-active {
    z-index: 100;
}