blob: a188754da1c56e94dbf863b77e7919be23618fcd (
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
|
/* Tabs. */
.tab-yes {
height: 100%;
width: 3%;
float: left;
position: relative;
background: var(--yes);
}
.tab-yes:hover {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: 20%;
max-width: 30%;
}
.post {
height: 70%;
background: white;
border-radius: 12px;
padding: 1rem;
margin: 1rem;
overflow: hidden;
}
.post:hover {overflow: auto;}
.post:hover + .btn-wrapper {transform: rotateX(0deg);}
.btn-wrapper {
position: relative;
top: -0.6rem;
z-index: 1;
transition: 400ms transform ease-in-out;
transform: rotateX(90deg);
}
.btn-wrapper:hover {transform: rotateX(0deg);}
.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;
}
|