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' - title: '✨ Enhancements'
labels: labels:
- 'enhancement' - 'enhancement'
- title: '🎨 UI Tweaks'
labels:
- 'ui-tweaks'
- title: '🐛 Bug Fixes' - title: '🐛 Bug Fixes'
labels: labels:
- 'bug' - 'bug'
@@ -129,9 +129,9 @@
&::after { &::after {
content: ''; content: '';
position: absolute; position: absolute;
bottom: -12px; bottom: -8px;
left: 15%; left: 10%;
right: 15%; right: 10%;
height: 5px; height: 5px;
background: linear-gradient( background: linear-gradient(
90deg, 90deg,
@@ -149,8 +149,8 @@
@media (max-width: 767px) { @media (max-width: 767px) {
.dashboard-scroller-card { .dashboard-scroller-card {
height: 184px; /* 80% of 230px */ height: 184px;
width: 108px; /* 80% of 135px */ width: 108px;
flex-basis: 108px; flex-basis: 108px;
} }
@@ -47,9 +47,40 @@
.dashboard-scroller-card { .dashboard-scroller-card {
width: 115px; width: 115px;
flex-basis: 115px;
flex-shrink: 0; flex-shrink: 0;
flex-grow: 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 { .description-container {
@@ -138,4 +169,3 @@
::ng-deep .custom-tag-padding { ::ng-deep .custom-tag-padding {
padding: 0.1rem !important; padding: 0.1rem !important;
} }