blob: 262b40ca4f900d4f130cde92d88576bbfd42aa5a (
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
|
.main {
height: 100%;
position: absolute;
left: 3%;
right: 3%;
background: linear-gradient(to top, var(--secondary-color), var(--primary-color)) fixed;
}
.tab-yes {
height: 100%;
width: 10%;
float: left;
position: fixed;
z-index: -1;
background: var(--yes);
}
.tab-no {
height: 100%;
width: 10%;
float: right;
position: fixed;
z-index: -1;
right: 0;
background: var(--no);
}
.tab-yes:hover ~ .main {
left: 5%;
transition: 0.2s;
}
.tab-no:hover ~ .main {
right: 5%;
transition: 0.2s;
}
.post {
background: white;
border-radius: 14px;
padding: 1rem;
margin: 1rem;
width: 20%;
}
.post:hover {
background: linear-gradient(to left, var(--no) 50%, var(--yes) 50%);
cursor: pointer;
transition: 0.8s;
color: white;
}
|