-
Notifications
You must be signed in to change notification settings - Fork 0
/
books-styles.css
121 lines (110 loc) · 3.15 KB
/
books-styles.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
/* ----- Books page stylesheet ----- */
/* For mobile display */
@media screen and (max-width: 600px) {
.book-grid {
margin: 25px;
margin-bottom: 250px;
}
/* Hide hover message */
.hover {
visibility: hidden;
}
.flip-card-front {
max-width: 600px;
}
.book1-description {
margin-top: 20px;
}
.book1-copy {
text-align: left;
}
.book1-buy {
color: black;
width: fit-content;
padding: 10px;
border: 7px groove rgb(200, 200, 200);
}
/* The flip card container - set the width and height to whatever you want. We have added the border property to demonstrate that the flip itself goes out of the box on hover (remove perspective if you don't want the 3D effect */
.flip-card {
margin-left: 50px;
background-color: transparent;
width: 300px;
height: 200px;
perspective: 1000px; /* Remove this if you don't want the 3D effect */
}
.flip-card-front {
max-width: 100%;
}
/* Hide the back side */
.flip-card-back {
visibility: hidden;
}
}
/* For desktop screen */
@media screen and (min-width: 600px) {
.book-grid {
margin: 25px;
margin-bottom: 250px;
display: grid;
grid-template-columns: 50% 50%;
}
.book1-description {
margin-top: 20px;
}
.book1-copy {
text-align: left;
}
.book1-buy {
color: black;
width: fit-content;
margin-left: auto;
margin-right: auto;
padding: 10px;
border: 7px outset powderblue;
}
.book1-buy:hover {
font-weight: bold;
background-color: rgb(220, 220, 220);
}
/* The flip card container - set the width and height to whatever you want. We have added the border property to demonstrate that the flip itself goes out of the box on hover (remove perspective if you don't want the 3D effect */
.flip-card {
margin-left: 50px;
background-color: transparent;
width: 300px;
height: 200px;
perspective: 1000px; /* Remove this if you don't want the 3D effect */
}
/* This container is needed to position the front and back side */
.flip-card-inner {
position: relative;
width: 100%;
height: 100%;
text-align: center;
transition: transform 0.8s;
transform-style: preserve-3d;
}
/* Do an horizontal flip when you move the mouse over the flip box container */
.flip-card:hover .flip-card-inner {
transform: rotateY(180deg);
}
/* Position the front and back side */
.flip-card-front, .flip-card-back {
position: absolute;
width: 100%;
height: 100%;
-webkit-backface-visibility: hidden; /* Safari */
backface-visibility: hidden;
}
/* Style the front side (fallback if image is missing) */
.flip-card-front {
background-color: #bbb;
}
/* Style the back side */
.flip-card-back {
background-color: white;
transform: rotateY(180deg);
}
.flip-instructions {
bottom: 0;
}
}