1
unknown
plain_text
a year ago
5.3 kB
8
Indexable
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body,
html {
height: 100%;
font-family: Arial, sans-serif;
}
.content-wrapper {
display: flex;
flex: 1;
overflow-y: auto;
}
.sidebar-list {
width: 18%;
padding: 20px 24px;
background-color: #243F46;
box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
z-index: 1001;
color: #e0e0e0;
}
.logo {
position: relative;
top: -25px;
left: 38px;
}
.rating-filter {
border-bottom: 1px solid #83aeac;
padding: 0 0 1.25rem;
}
.rating-filter p {
font-size: 16px;
cursor: pointer;
padding: 5px 20px;
transition: color 0.2s ease;
color: #ffd36a;
}
.rating-filter p:hover {
color: #e0e0e0;
}
.genre-list,
.author-list {
margin-bottom: 20px;
border-bottom: 1px solid #83aeac;
padding: 0 0 1.25rem;
}
.rating-filter h2,
.genre-list h2,
.author-list h2 {
font-size: 20px;
margin-top: 10px;
margin-bottom: 10px;
color: #cdecef;
}
.genre-list button,
.author-list button {
display: inline-block;
padding: 10px;
text-align: left;
background-color: #1a2d31;
border: #83aeac 2px solid;
color: #83aeac;
cursor: pointer;
margin-right: 5px;
margin-bottom: 10px;
border-radius: 10px;
transition: transform 0.3s ease;
font-size: 13px;
}
.genre-list button:hover,
.author-list button:hover {
background-color: #ffd36a;
color: #1a2d31;
border: #ffd36a solid 2px;
transform: translateY(-5px);
}
.genre-list .active,
.author-list .active {
background-color: #ffd36a;
color: #0c2122;
}
.main-list {
flex: 1;
padding: 20px;
padding-left: 25px;
min-height: 80vh;
}
.list-title {
margin-top: 50px;
margin-bottom: 40px;
font-size: 24px;
font-weight: bold;
}
.books-list {
display: grid;
grid-template-columns: repeat(5, 1fr); /* 5 columns per row */
gap: 20px; /* Spacing between items */
}
.booklist {
position: relative;
text-align: left;
transition: transform 0.3s ease;
box-shadow: 0 0 10px 5px #132124;
border-radius: 10px;
overflow: hidden;
}
.booklist:hover {
transform: translateY(-10px);
}
.booklist img {
width: 100%;
height: 200px;
object-fit: cover;
border-radius: 10px 10px 0 0;
}
.booklist a {
display: block;
text-decoration: none;
color: #dfddd1;
padding: 10px 15px;
}
.booklist h3 {
font-size: 16px;
margin: 10px 0;
}
.booklist {
margin: 0;
color: #dfddd1;
}
.book-rating {
margin-top: auto;
color: #ffd36a;
}
.filtered-by {
display: flex;
margin-bottom: 20px;
justify-content:space-between;
}
.filtered-by p {
font-weight: bold;
margin-bottom: 10px;
}
.filtered-options {
display: flex;
flex-wrap: wrap;
gap: 5px;
margin-bottom: 10px; /* Adds space between options and Clear All button */
}
.filtered-options button {
padding: 5px 10px;
border-radius: 10px;
background-color: #ffd36a;
color: #0c2122;
display: flex;
align-items: center;
cursor: pointer;
}
.filtered-options svg {
margin-left: 5px;
}
.clear-all {
padding: 5px 10px;
color: #ffd36a;
background-color: #1a2d31;
font-weight: bold;
border: none;
cursor: pointer;
font-size: 15px;
margin-top: 10px; /* Adds space above the Clear All button */
align-self: flex-end; /* Aligns the Clear All button to the right */
}
.clear-all:hover {
color: #e0e0e0;
}
.pagination {
display: flex;
justify-content: center;
align-items: center;
margin-top: 50px;
}
.pagination button {
width: 35px;
height: 35px;
background-color: transparent;
border: none;
color: #999;
font-size: 16px;
margin: 0 5px;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
transition: background-color 0.3s ease, color 0.3s ease;
}
.pagination button.active {
color: #132124;
background-color: #ffd36a;
}
.pagination button:hover:not(.active) {
background-color: #ffd36a;
color: #0c2122;
}
.pagination button[disabled] {
cursor: not-allowed;
background-color: #e0e0e0;
color: #999;
}
.pagination .prev,
.pagination .next {
background-color: #ffd36a;
color: #0c2122;
}
.pagination .prev[disabled],
.pagination .next[disabled] {
background-color: #e0e0e0;
}
@media (max-width: 768px) {
.content-wrapper {
flex-direction: column;
}
.sidebar-list {
width: 100%;
padding: 20px;
box-shadow: none;
z-index: auto;
}
.main-list {
padding: 10px;
}
.filtered-by {
flex-direction: column;
align-items: flex-start;
}
.filtered-by p {
margin-bottom: 10px;
}
.filtered-options {
width: 100%;
justify-content: flex-start;
margin-left: 0;
}
.filtered-option {
margin-right: 5px;
margin-bottom: 5px;
padding: 5px 8px;
}
.clear-all {
margin-top: 10px;
width: 100%;
text-align: center;
}
.books-list {
grid-template-columns: 1fr;
}
.pagination {
margin-top: 20px;
}
.pagination button {
width: 30px;
height: 30px;
font-size: 14px;
margin: 0 3px;
}
}
Editor is loading...
Leave a Comment