Checkpoint
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
height: auto;
|
||||
background-color: var(--surface-card);
|
||||
border-radius: 8px;
|
||||
position: relative; /* Positioning container for the button and overlay */
|
||||
position: relative; /* Positioning container for the buttons and overlay */
|
||||
}
|
||||
|
||||
.book-cover {
|
||||
@@ -24,7 +24,7 @@
|
||||
object-fit: cover;
|
||||
background-color: #444;
|
||||
transition: background-color 0.3s ease, filter 0.3s ease; /* Add transition for blur effect */
|
||||
position: relative; /* Make this the reference point for the overlay */
|
||||
position: relative; /* Make this the reference point for the overlay and buttons */
|
||||
}
|
||||
|
||||
/* Blur and overlay effect */
|
||||
@@ -40,7 +40,7 @@
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
|
||||
z-index: 0; /* Put overlay behind the button */
|
||||
z-index: 0; /* Put overlay behind the buttons */
|
||||
}
|
||||
|
||||
.book-info {
|
||||
@@ -62,7 +62,6 @@ h4 {
|
||||
max-width: 100%;
|
||||
text-align: center;
|
||||
margin-bottom: 5px;
|
||||
|
||||
}
|
||||
|
||||
p {
|
||||
@@ -87,17 +86,22 @@ p {
|
||||
}
|
||||
|
||||
/* PrimeNG button styling */
|
||||
.view-btn {
|
||||
.view-btn, .read-btn {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%); /* Center button on the image */
|
||||
transform: translate(-50%, -20%); /* Center buttons within the book-cover */
|
||||
display: none; /* Hide by default */
|
||||
z-index: 1; /* Ensure it appears over the image */
|
||||
margin: -60px 0; /* Add spacing between the buttons */
|
||||
}
|
||||
|
||||
.book-item:hover .view-btn {
|
||||
display: block; /* Show the button when the card is hovered */
|
||||
display: block; /* Show the View button when the card is hovered */
|
||||
}
|
||||
|
||||
.book-item:hover .read-btn {
|
||||
display: block; /* Show the Read button when the card is hovered */
|
||||
top: 75%; /* Slightly adjust the position to be below the View button */
|
||||
}
|
||||
|
||||
.infinite-scroll {
|
||||
|
||||
Reference in New Issue
Block a user