-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
124 lines (108 loc) · 2.48 KB
/
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
119
120
121
122
123
124
html, body {
height: 100%;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
}
body {
display: flex;
flex-direction: column;
}
.container {
flex: 1;
display: flex;
flex-direction: column;
}
header {
background-color: #441b07;
color: white;
padding: 15px;
text-align: center;
}
header input {
padding: 10px;
width: 300px;
margin-right: 10px;
}
header button {
padding: 10px;
}
main {
flex: 1;
display: flex;
flex-wrap: wrap;
justify-content: center;
margin: 20px;
}
.book {
background-color: white;
border: 1px solid #ddd;
border-radius: 5px;
margin: 10px;
padding: 15px;
width: 200px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
text-align: center;
text-decoration: none; /* Remove underline */
color: inherit; /* Inherit text color */
cursor: pointer; /* Add pointer cursor */
transition: transform 0.2s; /* Add a transition effect */
}
.book:hover {
transform: scale(1.05); /* Scale up on hover */
}
.book img {
max-width: 100%;
height: auto;
margin-bottom: 10px;
}
.description {
margin-top: 10px;
text-align: left;
}
.toggle-description {
margin-top: 10px;
padding: 5px 10px;
background-color: #441b07;
color: white;
border: none;
cursor: pointer;
border-radius: 5px;
}
.toggle-description:hover {
background-color: #441b07;
}
.pagination-controls {
display: flex;
justify-content: center;
margin: 20px; /* Ensure margin to separate from books */
}
.pagination-controls button {
padding: 5px 10px; /* Smaller padding */
margin: 0 5px; /* Smaller margin */
background-color: #441b07;
color: white;
border: none;
cursor: pointer;
border-radius: 3px; /* Smaller border-radius */
font-size: 12px; /* Smaller font size */
height: 30px; /* Consistent button height */
line-height: 30px; /* Center text vertically */
width: auto; /* Adjust width automatically */
min-width: 60px; /* Minimum width for consistency */
display: flex;
align-items: center;
justify-content: center;
}
.pagination-controls button:hover {
background-color: #441b07;
}
footer {
background-color: #441b07;
color: white;
text-align: center;
padding: 10px;
width: 100%;
flex-shrink: 0; /* Ensure the footer doesn't shrink */
}