-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcard.css
93 lines (80 loc) · 1.82 KB
/
card.css
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
.book {
position: relative;
background-color: rgba(248, 242, 242, 0.726);
margin: 1.5rem;
width: 275px;
height: 350px;
padding-top: .5rem;
overflow: hidden;
border-radius: 5px;
box-shadow: 2px 2px 5px rgb(180, 176, 176),
-2px -2px 5px rgb(180, 176, 176),
2px 0px 5px rgb(180, 176, 176),
-2px 0px 5px rgb(180, 176, 176);
transition: 500ms;
}
.book:hover {
box-shadow: 2px 2px 15px rgb(100, 98, 98),
-2px -2px 15px rgb(100, 98, 98),
2px 0px 15px rgb(100, 98, 98),
-2px 0px 15px rgb(100, 98, 98);
}
img {
height: 200px;
max-width: 265px;
box-shadow: 2px 2px 5px rgb(180, 176, 176),
-2px -2px 5px rgb(180, 176, 176),
2px 0px 5px rgb(180, 176, 176),
-2px 0px 5px rgb(180, 176, 176);
}
.fav {
background-color: rgb(112, 17, 17);
color: white;
cursor: pointer;
margin-bottom: .25rem;
margin-top: .5rem;
padding: .25rem 0;
font-size: .75rem;
letter-spacing: .2rem;
transition: 500ms;
}
.fav:hover, .onShelf {
background-color: rgba(112, 17, 17, 0.281);
color: black;
font-weight: bold;
}
.title {
text-align: center;
font-family: 'BenchNine';
font-size: 1.25rem;
padding: .25rem .25rem;
}
.author {
text-align: center;
font-size: .75rem;
padding: .25rem .5rem;
}
.publisher {
font-style: italic;
font-size: .5rem;
position: absolute;
bottom: 0;
padding: .25rem .5rem;
}
@media only screen and (max-width: 600px){
.book {
min-width: 250px;
height: 300px;
margin: .75rem;
}
img {
height: 150px;
max-width: 240px;
}
.title {
font-size: 1rem;
}
.author {
font-size: .5rem;
}
}