feat(series): Enhance series block with interactive features and improved styling
This commit is contained in:
@@ -1780,119 +1780,118 @@
|
||||
padding: 0 1.1rem 1.1rem;
|
||||
}
|
||||
.series-toolbar {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(12rem, 18rem) minmax(0, 1fr);
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: .75rem;
|
||||
align-items: start;
|
||||
}
|
||||
.series-toolbar-btn {
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
min-width: 160px;
|
||||
}
|
||||
.series-card-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
||||
gap: .85rem;
|
||||
align-items: stretch;
|
||||
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
||||
gap: 1rem;
|
||||
}
|
||||
.series-block {
|
||||
min-width: 0;
|
||||
display: contents;
|
||||
}
|
||||
.series-card-shell {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: .65rem;
|
||||
height: 100%;
|
||||
padding: .85rem;
|
||||
border: 1px solid rgba(255,255,255,0.08);
|
||||
border-radius: .9rem;
|
||||
background: rgba(15,23,42,0.22);
|
||||
box-shadow: 0 10px 24px rgba(0,0,0,0.08);
|
||||
gap: .5rem;
|
||||
padding: 1rem;
|
||||
border: 1px solid rgba(255,255,255,0.1);
|
||||
border-radius: .75rem;
|
||||
background: rgba(15,23,42,0.3);
|
||||
}
|
||||
.series-card-main {
|
||||
display: grid;
|
||||
grid-template-columns: 84px minmax(0, 1fr);
|
||||
gap: .85rem;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: .75rem;
|
||||
width: 100%;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
padding: 0;
|
||||
text-align: left;
|
||||
color: inherit;
|
||||
cursor: pointer;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.series-card-main:hover .series-card-description,
|
||||
.series-card-main:focus-visible .series-card-description {
|
||||
color: var(--bs-emphasis-color, #fff);
|
||||
color: #fff;
|
||||
}
|
||||
.series-card-main:focus-visible {
|
||||
outline: 2px solid rgba(13,110,253,0.55);
|
||||
outline-offset: 4px;
|
||||
border-radius: .6rem;
|
||||
outline: 2px solid rgba(13,110,253,0.6);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
.series-card-thumb-wrap {
|
||||
width: 84px;
|
||||
flex-shrink: 0;
|
||||
width: 72px;
|
||||
height: 72px;
|
||||
}
|
||||
.series-card-thumb {
|
||||
width: 84px;
|
||||
height: 84px;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
border-radius: .75rem;
|
||||
border: 1px solid rgba(255,255,255,0.12);
|
||||
border-radius: .5rem;
|
||||
border: 1px solid rgba(255,255,255,0.1);
|
||||
display: block;
|
||||
background: rgba(255,255,255,0.04);
|
||||
}
|
||||
.series-card-thumb-placeholder {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: var(--bs-secondary-color, #6c757d);
|
||||
font-size: 1.35rem;
|
||||
font-size: 1.25rem;
|
||||
background: rgba(255,255,255,0.04);
|
||||
border: 1px solid rgba(255,255,255,0.1);
|
||||
border-radius: .5rem;
|
||||
}
|
||||
.series-card-content {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: .35rem;
|
||||
gap: .2rem;
|
||||
}
|
||||
.series-card-heading {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: .45rem .6rem;
|
||||
font-size: .95rem;
|
||||
font-weight: 600;
|
||||
line-height: 1.2;
|
||||
}
|
||||
.series-card-series-number {
|
||||
font-weight: 700;
|
||||
}
|
||||
.series-card-image-count {
|
||||
font-size: .8rem;
|
||||
color: var(--bs-secondary-color, #6c757d);
|
||||
color: #adb5bd;
|
||||
}
|
||||
.series-card-description {
|
||||
font-size: .95rem;
|
||||
line-height: 1.35;
|
||||
color: rgba(255,255,255,0.88);
|
||||
font-size: .85rem;
|
||||
line-height: 1.3;
|
||||
color: #d4d8dd;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
min-height: 2.55em;
|
||||
}
|
||||
.series-card-controls {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: .5rem;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.series-card-controls .btn {
|
||||
flex: 1 1 auto;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
padding: .35rem .5rem;
|
||||
font-size: .8rem;
|
||||
}
|
||||
.series-block.highlight-series .series-card-shell,
|
||||
.series-block:hover .series-card-shell {
|
||||
border-color: rgba(13,110,253,0.45);
|
||||
box-shadow: 0 14px 28px rgba(13,110,253,0.12);
|
||||
transform: translateY(-1px);
|
||||
border-color: rgba(13,110,253,0.5);
|
||||
background: rgba(13,110,253,0.08);
|
||||
}
|
||||
.series-actions[open] {
|
||||
border: 2px solid #0d6efd;
|
||||
@@ -1939,28 +1938,28 @@
|
||||
}
|
||||
@media (max-width: 991.98px) {
|
||||
.series-toolbar {
|
||||
grid-template-columns: 1fr;
|
||||
flex-direction: column;
|
||||
}
|
||||
.series-toolbar-btn {
|
||||
width: 100%;
|
||||
}
|
||||
.series-card-grid {
|
||||
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
||||
}
|
||||
}
|
||||
@media (max-width: 575.98px) {
|
||||
.series-panel-summary {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
.series-card-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.series-panel-badge {
|
||||
min-width: 0;
|
||||
}
|
||||
.series-card-main {
|
||||
grid-template-columns: 72px minmax(0, 1fr);
|
||||
}
|
||||
.series-card-thumb-wrap,
|
||||
.series-card-thumb {
|
||||
width: 72px;
|
||||
height: 72px;
|
||||
.series-card-thumb-wrap {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
}
|
||||
.series-card-controls {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
}
|
||||
.series-card-controls .btn {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
|
||||
Reference in New Issue
Block a user