blob: a0c6606fdb16d0174847c68ab06caa813c0eb50a (
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
|
/* Tabs. */
.tab-yes {
height: 100%;
width: 3%;
float: left;
position: relative;
background: var(--yes);
}
.tab-yes:hover ~ .feed-post {
width: 4%;
transition: 0.2s;
}
.tab-no {
height: 100%;
width: 3%;
float: right;
position: relative;
background: var(--no);
}
.tab-no:hover {width: 4%; transition: 0.2s;}
/* Feed of posts. */
.feed-post {
height: 100%;
display: flex;
position: relative;
flex-wrap: wrap;
overflow: auto;
justify-content: space-between;
}
.post-wrapper {
position: relative;
max-height: 25%;
max-width: 40%;
perspective: 600px;
perspective-origin: bottom;
}
.post {
position: relative;
height: 70%;
background: white;
z-index: -1;
border-radius: 12px;
padding: 1rem;
margin: 1rem;
overflow: hidden;
}
.post:hover {overflow: auto;}
.post:hover + .btn-wrapper {
opacity: 100%;
animation: btn-wrapper;
animation-duration: 1s;
}
@keyframes btn-wrapper {
from{transform: rotateX(-90deg);}
to {transform: rotateX(0deg);}
}
.btn-wrapper {
position: relative;
top: -0.6rem;
z-index: 1;
transform: rotateX(-90deg);
/* transition: 400ms transform ease-in-out; */
/* animation-fill-mode: forwards; */
}
.btn-yes {
height: 25%;
width: 45%;
float: left;
left: 1rem;
position: relative;
background: var(--yes);
border-radius: 12px;
}
.btn-no {
height: 25%;
width: 45%;
float: right;
right: 1rem;
position: relative;
background: var(--no);
border-radius: 12px;
}
|