summaryrefslogtreecommitdiff
path: root/app/static/styles/home.css
blob: d18729dcd476911849227f5179378f637bc39ac3 (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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
/* Tabs. */
.tab-yes {
    height: 100%;
    width: 10%;
    float: left;
    position: relative;
    background: var(--yes);
}
.tab-yes:hover ~ .feed-post {
    left: 6%;
    right: 0%;
    transition: var(--fast-speed);
}
.tab-no {
    height: 100%;
    width: 10%;
    float: right;
    position: relative;
    background: var(--no);
}
.tab-no:hover ~ .feed-post {
    left: 0%;
    right: 6%;
    transition: var(--fast-speed);
}

/* Feed of posts. */
.feed-post {
    height: 100%;
    left: 3%;
    right: 3%;
    background: white;
    background-image: url(../img/home.png);
    background-repeat: repeat-x;
    display: flex;
    position: absolute;
    flex-wrap: wrap;
    overflow: auto;
    justify-content: space-between;
}

.post-wrapper {
    position: relative;
    z-index: 1;
    max-height: 25%;
    max-width: 40%;
    perspective: 600px;
    perspective-origin: bottom;
}

@keyframes post {
    0% {}
    100% {overflow: auto; height: 40%;}
}
.post {
    position: relative;
    height: 70%;
    background: white;
    z-index: 0;
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem;
    overflow: hidden;
}
.post:hover {
    animation-name: post;
    animation-duration: var(--med-speed);
    animation-fill-mode: both;
}
.post:hover + .btn-wrapper {
    animation-name: btn-wrapper;
    animation-duration: var(--med-speed);
    animation-fill-mode: both;
}

@keyframes btn-wrapper {
    0% {}
    100% {transform: rotateX(0deg); opacity: 100%;}
}
.btn-wrapper {
    position: relative;
    z-index: 1;
    opacity: 0%;
    transform: rotateX(-90deg);
}

.btn-yes {
    height: 25%;
    width: 40%;
    float: left;
    left: 1rem;
    z-index: 2;
    position: relative;
    background: var(--yes);
    border-radius: 12px;
}

.btn-no {
    height: 25%;
    width: 40%;
    float: right;
    right: 1rem;
    position: relative;
    background: var(--no);
    border-radius: 12px;
}
Copyright 2019--2024 Marius PETER