137 lines
2.5 KiB
SCSS
137 lines
2.5 KiB
SCSS
.dashboard-scroller-container {
|
|
border-radius: 20px;
|
|
padding: 1rem 2rem 0;
|
|
margin-bottom: 2rem;
|
|
position: relative;
|
|
overflow: hidden;
|
|
background: transparent;
|
|
border: 1px solid var(--color-border);
|
|
}
|
|
|
|
.dashboard-scroller-title {
|
|
text-align: left;
|
|
font-size: 1.5rem;
|
|
font-weight: 800;
|
|
margin-bottom: 1rem;
|
|
padding: 0;
|
|
background: linear-gradient(135deg, var(--color-text), var(--color-text-secondary), var(--color-primary));
|
|
background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
position: relative;
|
|
z-index: 2;
|
|
letter-spacing: -0.02em;
|
|
|
|
&::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: -6px;
|
|
left: 0;
|
|
width: 80px;
|
|
height: 4px;
|
|
background: linear-gradient(90deg, var(--color-primary), var(--color-primary));
|
|
border-radius: 2px;
|
|
}
|
|
}
|
|
|
|
.dashboard-scroller-no-books {
|
|
padding: 3rem 2rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
text-align: center;
|
|
position: relative;
|
|
z-index: 2;
|
|
|
|
.empty-state-icon {
|
|
width: 25px;
|
|
height: 25px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-bottom: 2rem;
|
|
position: relative;
|
|
|
|
i {
|
|
font-size: 2rem;
|
|
color: var(--color-text);
|
|
}
|
|
}
|
|
|
|
p {
|
|
color: var(--color-text-secondary);
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
max-width: 400px;
|
|
line-height: 1.7;
|
|
}
|
|
}
|
|
|
|
.dashboard-scroller-strip {
|
|
display: flex;
|
|
overflow: auto hidden;
|
|
scroll-snap-type: x mandatory;
|
|
padding: 1rem 0.5rem;
|
|
gap: 2rem;
|
|
width: 100%;
|
|
position: relative;
|
|
z-index: 2;
|
|
}
|
|
|
|
.dashboard-scroller-card {
|
|
width: 116px;
|
|
flex: 0 0 124px;
|
|
scroll-snap-align: start;
|
|
position: relative;
|
|
transition: transform 0.15s ease;
|
|
|
|
&.square-card {
|
|
width: 160px;
|
|
flex-basis: 160px;
|
|
}
|
|
|
|
&:hover {
|
|
transform: translateY(-2px);
|
|
}
|
|
}
|
|
|
|
.magic-shelf-icon {
|
|
margin-left: 0.5rem;
|
|
color: var(--color-primary) !important;
|
|
background: none !important;
|
|
background-clip: unset !important;
|
|
-webkit-text-fill-color: var(--color-primary) !important;
|
|
}
|
|
|
|
@media (width <= 767px) {
|
|
.dashboard-scroller-card {
|
|
height: 184px;
|
|
width: 108px;
|
|
flex-basis: 108px;
|
|
|
|
&.square-card {
|
|
width: 150px;
|
|
height: auto;
|
|
flex-basis: 150px;
|
|
}
|
|
}
|
|
|
|
.dashboard-scroller-no-books {
|
|
padding: 4rem 1rem;
|
|
|
|
.empty-state-icon {
|
|
width: 80px;
|
|
height: 80px;
|
|
|
|
i {
|
|
font-size: 2rem;
|
|
}
|
|
}
|
|
|
|
p {
|
|
font-size: 1.1rem;
|
|
}
|
|
}
|
|
}
|