forked from Technigo/project-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
197 lines (171 loc) · 3.47 KB
/
style.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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
:root{
--f1: #b1abc3;
--f2: #5c5470;
--f3: #352f44;
--f4: #2a2438;
}
body {
font-family: Arial, sans-serif;
font-size: 100%;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
justify-content: space-around;
flex-wrap: wrap;
height: 100%;
}
header {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
width: 100%;
background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('./books-images/pexels-abby-chung-1106468.jpg');
background-size: cover;
background-position: center;
height: 300px;
color: #fff;
text-align: center;
margin-bottom: 10px;
transition: background-image 1s ease; /* Define transition for background image */
}
.sortButtons {
display: flex;
flex-direction: row;
justify-content: space-around;
align-items: center;
width: 100%;
height: 40px;
padding: 5px 30px;
}
#genreDropdown,
#btnRate, #btnRandom{
font-size: 0.875em;
margin: 10px;
padding: 10px 25px;
background-color:rgb(255, 255, 255);
color: var(--f2);
border: none;
border-radius: 20px;
cursor: pointer;
height: 100%;
}
#az:hover, #za:hover, #genreDropdown:hover,
#btnRandom:hover, #btnRate:hover{
color: #fff;
background-color: var(--f2);
}
#az {
border-radius: 20px 0 0 20px ;
padding: 10px;
margin-right: 0;
}
#za{
border-radius: 0 20px 20px 0;
padding: 10px;
margin-left: 5px;
}
#az-za {
display: flex;
justify-content: center;
}
.main{
display: flex;
flex: 1;
height: 100%;
flex-wrap: wrap;
flex-direction: column;
align-items: center;
min-height: 100vh;
}
.card{
display: flex;
flex-direction: row;
border-bottom: 2px solid rgb(215, 213, 213);
max-width: 500px;
max-height: 600px;
padding: 5px;
position: relative;
}
h2, h3, p{
margin:5px 0;
}
.card img{
object-fit: cover;
width: 130px;
height: 220px;
margin: 5px 20px 5px 5px;
box-shadow: 3px 3px 5px #AAA;
}
#rate{
position: absolute;
margin: 10px;
font-size: 0.875em;
padding: 10px 10px;
color: #fff;
border-radius: 25px;
background-color: var(--f1);
}
footer {
position: sticky;
bottom: 0;
height: 40px;
color: #fff;
background-color: var(--f3);
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 10px;
font-size: .6em;
}
.logo {
width: 40px;
height: auto;
}
.card div h2{
color: var(--f4);
}
.card div h3{
color: var(--f3);
}
.card div p{
color: var(--f2);
}
/* -----------------------------------------------MEDIA QUERIES--------------------------------------- */
/* -----------------------------------MOBILE SCREENS 360px to 670xp 1column--------------------------- */
@media (min-width: 360px) and (max-width:670px){
.sortButtons {
padding: 5px 0px;
}
button, select,
#btnRate, #btnRandom{
font-size: 0.875em;
margin: 5px;
padding: 10px 5px;
color: var(--f2);
border-radius: 20px;
cursor: pointer;
height: 100%;
}
h1{
padding: 30px
}
}
/* -----------------------------------TABLET SCREENS 671px to 1024xp 1 colums-------------------------- */
@media (min-width:671px) and (max-width:1024px) {
.sortButtons {
width: 80%;
}
}
/* -----------------------------------PC SCREENS >1024px 3 columns ------------------------------------- */
@media (min-width: 1024px){
#container{
height: 100%;
display: grid;
gap: 30px;
max-width: 80%;
grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: auto 1fr auto
}
}