Files
xuetang/TUICallKit-Vue3/native/tang-detective/pages/catalog/catalog.wxss
T
2026-09-09 14:47:29 +08:00

365 lines
5.6 KiB
Plaintext

.catalog-shell {
display: flex;
height: 100vh;
gap: 12px;
flex-direction: column;
overflow: hidden;
}
.catalog-head {
display: grid;
flex: 0 0 auto;
min-height: 64px;
grid-template-columns: 132px minmax(0, 1fr) 132px;
align-items: center;
gap: 14px;
padding: 8px 112px 8px 14px;
}
.restart-story-button {
width: 100%;
min-width: 0;
min-height: 48px;
padding-right: 8px;
padding-left: 8px;
color: #7b2c25;
border-color: #a85d4e;
}
.catalog-heading-copy {
display: flex;
min-width: 0;
flex-direction: column;
}
.catalog-head > .quiet-button {
width: 100%;
min-width: 0;
min-height: 48px;
padding-right: 8px;
padding-left: 8px;
}
.catalog-title {
overflow: hidden;
font-size: 25px;
font-weight: 850;
letter-spacing: 2px;
text-overflow: ellipsis;
white-space: nowrap;
}
.catalog-title-short {
display: none;
}
.catalog-heading-copy .eyebrow {
overflow: hidden;
font-size: 16px;
letter-spacing: 1px;
text-overflow: ellipsis;
white-space: nowrap;
}
.chapter-scroll {
min-height: 0;
flex: 1;
}
.list-scroll-guide {
display: flex;
min-height: 40px;
flex: 0 0 auto;
align-items: center;
justify-content: center;
gap: 10px;
color: #f4e5bd;
background: rgba(58, 40, 28, 0.94);
border: 1px solid rgba(222, 194, 139, 0.55);
border-radius: 8px;
font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
font-size: 17px;
font-weight: 750;
}
.scroll-guide-mark {
color: #f0c86b;
font-size: 24px;
line-height: 1;
}
.chapter-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
padding: 0 2px 22px;
}
.chapter-card {
position: relative;
display: grid;
width: 100%;
min-height: 112px;
overflow: hidden;
grid-template-columns: 68px minmax(0, 1fr) 24px;
align-items: center;
gap: 14px;
padding: 12px 16px 12px 12px;
text-align: left;
border-radius: 8px;
}
.chapter-card.completed {
border-color: #50745f;
}
.chapter-card.current {
border: 3px solid #a23a2d;
box-shadow: 0 10px 25px rgba(94, 32, 24, 0.24);
}
.chapter-card-hover {
transform: translateY(2px);
opacity: 0.88;
}
.chapter-number {
display: flex;
height: 88px;
align-items: center;
justify-content: center;
flex-direction: column;
color: #f4e4be;
background: #432b1e;
border-left: 7px solid var(--cinnabar);
font-size: 16px;
}
.chapter-number .number {
font-family: Georgia, serif;
font-size: 32px;
font-weight: 800;
line-height: 1.1;
}
.chapter-card-copy {
display: flex;
min-width: 0;
flex-direction: column;
}
.year {
color: #9a332b;
font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
font-size: 17px;
font-weight: 700;
}
.chapter-name {
display: -webkit-box;
margin-top: 4px;
overflow: hidden;
font-size: 22px;
font-weight: 800;
line-height: 1.35;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.chapter-badges {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 8px;
margin-top: 8px;
font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
font-size: 15px;
}
.chapter-badge {
padding: 5px 9px;
border-radius: 999px;
}
.done-badge {
color: #eff7ef;
background: #37624f;
}
.current-badge {
color: #fff1cf;
background: #943128;
}
.read-badge {
color: #725c42;
background: #e5d3a9;
}
.chapter-progress {
color: #6e5942;
font-size: 15px;
font-weight: 700;
}
.open-arrow {
color: #8e392f;
font-size: 44px;
}
.scroll-ending {
display: block;
padding: 4px 0 18px;
color: #d9c69e;
font-size: 17px;
text-align: center;
}
.font-xlarge .catalog-title {
font-size: 28px;
}
.font-xlarge .catalog-heading-copy .eyebrow {
font-size: 18px;
}
.font-xlarge .chapter-card {
min-height: 126px;
}
.font-xlarge .chapter-number {
height: 100px;
font-size: 18px;
}
.font-xlarge .chapter-number .number {
font-size: 36px;
}
.font-xlarge .year {
font-size: 19px;
}
.font-xlarge .chapter-name {
font-size: 25px;
}
.font-xlarge .chapter-badges,
.font-xlarge .chapter-progress {
font-size: 17px;
}
.font-xlarge .scroll-ending {
font-size: 19px;
}
.font-xlarge .list-scroll-guide {
font-size: 19px;
}
@media (max-width: 730px), (max-height: 400px) {
.catalog-shell {
gap: 8px;
}
.catalog-head {
min-height: 58px;
grid-template-columns: 96px minmax(0, 1fr) 116px;
gap: 9px;
padding: 6px 108px 6px 8px;
}
.catalog-title {
font-size: 21px;
}
.catalog-heading-copy .eyebrow {
display: none;
}
.catalog-title-full {
display: none;
}
.catalog-title-short {
display: block;
}
.chapter-grid {
gap: 9px;
padding-bottom: 16px;
}
.chapter-card {
min-height: 102px;
grid-template-columns: 58px minmax(0, 1fr) 20px;
gap: 10px;
padding: 9px 10px 9px 8px;
}
.chapter-number {
height: 80px;
font-size: 14px;
}
.chapter-number .number {
font-size: 27px;
}
.year {
font-size: 15px;
}
.chapter-name {
font-size: 19px;
}
.chapter-badges,
.chapter-progress {
font-size: 13px;
}
.open-arrow {
font-size: 36px;
}
.list-scroll-guide {
min-height: 36px;
font-size: 16px;
}
.scroll-guide-mark {
font-size: 21px;
}
.font-xlarge .catalog-title {
font-size: 24px;
}
.font-xlarge .chapter-card {
min-height: 116px;
}
.font-xlarge .chapter-number {
height: 94px;
font-size: 16px;
}
.font-xlarge .chapter-number .number {
font-size: 31px;
}
.font-xlarge .year {
font-size: 17px;
}
.font-xlarge .chapter-name {
font-size: 22px;
}
.font-xlarge .chapter-badges,
.font-xlarge .chapter-progress {
font-size: 15px;
}
}