blob: a7b35daeb8e3a28d6f068eca60385b783659cf96 (
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
|
#library {
#library-content {
--gap: 1rem;
display: flex;
align-items: center;
gap: var(--gap);
margin: 1rem 0;
flex-wrap: wrap;
.book {
width: calc(100% / 6 - var(--gap));
position: relative;
&.badbook {
opacity: 0.5;
z-index: 0;
&::before {
position: absolute;
z-index: 1;
content: "";
top: 25%;
left: 25%;
height: 50%;
width: 50%;
background-image: url('/img/thumbs-down.png');
background-size: 100%;
background-position: center;
background-repeat: no-repeat;
}
}
&.goodbook {
.book-cover {
border-color: gold;
box-shadow: 0 0.1rem 0.75rem goldenrod;
}
}
}
}
}
.book-body {
line-height: 2;
hr {
clear: both
}
.book-title {
margin: 0.1rem 0;
a {
color: var(--text-color);
text-decoration: none;
}
}
.rating {
font-size: 0.9rem;
color: var(--secondary-text-color);
}
}
.book-cover {
display: block;
img {
display: block;
width: 100%;
}
#library & {
border: 0.2rem solid #fff;
box-shadow: 0 0.1rem 0.75rem rgba(0,0,0,0.2);
transition: transform 0.3s ease;
transform: rotate(3deg);
&:hover {
transform: rotate(0) translateY(-0.5rem) scale(1.1)
}
}
#book-page &, #post-content & {
margin: 0;
@media screen and (min-width: 768px) {
display: inxwline-block;
float: left;
width: 12rem;
margin: 0 2rem 1.2rem 0;
}
}
}
|