Refine book card styling (#975)

This commit is contained in:
Aditya Chandel
2025-08-24 10:48:33 -06:00
committed by GitHub
parent fe8925f65e
commit e5d54d1caa
3 changed files with 40 additions and 7 deletions
+3
View File
@@ -8,6 +8,9 @@ categories:
- title: '✨ Enhancements'
labels:
- 'enhancement'
- title: '🎨 UI Tweaks'
labels:
- 'ui-tweaks'
- title: '🐛 Bug Fixes'
labels:
- 'bug'
@@ -129,9 +129,9 @@
&::after {
content: '';
position: absolute;
bottom: -12px;
left: 15%;
right: 15%;
bottom: -8px;
left: 10%;
right: 10%;
height: 5px;
background: linear-gradient(
90deg,
@@ -149,8 +149,8 @@
@media (max-width: 767px) {
.dashboard-scroller-card {
height: 184px; /* 80% of 230px */
width: 108px; /* 80% of 135px */
height: 184px;
width: 108px;
flex-basis: 108px;
}
@@ -47,9 +47,40 @@
.dashboard-scroller-card {
width: 115px;
flex-basis: 115px;
flex-shrink: 0;
flex-grow: 0;
flex-basis: 115px;
scroll-snap-align: start;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
border-radius: 8px;
&:hover {
transform: translateY(-4px);
&::after {
opacity: 1;
}
}
&::after {
content: '';
position: absolute;
bottom: 0;
left: 7%;
right: 7%;
height: 4px;
background: linear-gradient(
90deg,
transparent,
var(--p-primary-500),
transparent
);
border-radius: 50%;
opacity: 0;
transition: all 0.4s ease;
filter: blur(4px);
}
}
.description-container {
@@ -138,4 +169,3 @@
::ng-deep .custom-tag-padding {
padding: 0.1rem !important;
}