summaryrefslogtreecommitdiff
path: root/app/static/styles/home.css
blob: c8758937ad1f0cdcb160fdf21f2413b469b51fe8 (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
68
69
70
71
72
73
.main {
    height: 100%;
    position: absolute;
    z-index: 0;
    left: 3%;
    right: 3%;
    overflow: hidden;
}

.feed-post {
    height: 100%;
    padding: 1px;
    display: flex;
    position: relative;
    flex-wrap: wrap;
    overflow: auto;
    justify-content: space-around;
}

.tab-yes {
    height: 100%;
    width: 3%;
    float: left;
    position: fixed;
    left: 0;
    background: var(--yes);
}
.tab-no {
    height: 100%;
    width: 3%;
    float: right;
    position: fixed;
    right: 0;
    background: var(--no);
}

.tab-yes:hover {
    width: 4%;
    transition: 0.2s;
}

.tab-no:hover {
    width: 4%;
    transition: 0.2s;
}

.tab-yes:hover ~ .main {
    left: 5%;
    transition: 0.2s;
}

.tab-no:hover ~ .main {
    right: 5%;
    transition: 0.2s;
}

.post {
    max-height: 20%;
    max-width: 30%;
    background: white;
    border-radius: 14px;
    padding: 1rem;
    margin: 1rem;
    overflow: hidden;
}

.post:hover {
    background: linear-gradient(to left, var(--no) 50%, var(--yes) 50%);
    cursor: pointer;
    transition: 0.8s;
    color: white;
    overflow: auto;
}
Copyright 2019--2024 Marius PETER