Files
web_huangguo2_h5/app/static/css/rank.css
T
谢宇宁andClaude Opus 5.5 0fbdba5ccf Initial commit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 11:47:47 +07:00

351 lines
5.8 KiB
CSS

/* 排行榜页 */
body.page-rank .site-header {
background: var(--bg);
border-bottom-color: var(--line-soft);
}
.rank-tabs {
display: inline-flex;
align-items: flex-end;
gap: 28px;
}
.rank-tabs__item {
display: inline-flex;
flex-direction: column;
align-items: center;
gap: 10px;
color: var(--text-muted);
font-size: 16px;
font-weight: 600;
line-height: 22px;
text-decoration: none;
}
.rank-tabs__item::after {
content: "";
width: 24px;
height: 2px;
border-radius: 1px;
background: linear-gradient(90deg, #ff4a7b 0%, #ec237f 52%, #93226f 100%);
opacity: 0;
}
.rank-tabs__item.is-active {
color: var(--text);
}
.rank-tabs__item.is-active::after {
opacity: 1;
}
.page-rank .list-body--rank {
padding-top: 20px;
padding-bottom: 24px;
gap: 28px;
}
.grid--rank-list {
display: flex;
flex-wrap: wrap;
align-content: flex-start;
align-items: flex-start;
gap: 24px;
align-self: stretch;
}
.rank-card {
display: flex;
justify-content: flex-start;
align-items: flex-start;
width: 220px;
color: inherit;
}
.rank-card__cover {
position: relative;
display: block;
align-self: stretch;
width: 144px;
height: 192px;
overflow: hidden;
border-radius: 12px;
border: 1px solid var(--line-soft);
text-decoration: none;
background:
linear-gradient(180deg, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, 0.7) 100%),
var(--cover) center / cover no-repeat,
#1a1a1f;
}
.rank-card__rank {
display: inline-flex;
flex-direction: column;
justify-content: flex-end;
align-items: flex-start;
align-self: stretch;
width: 76px;
padding-bottom: 52px;
box-sizing: border-box;
}
.rank-card__no {
color: #7c7c86;
font-family: Inter, var(--font);
font-size: 56px;
font-weight: 700;
line-height: 56px;
}
.rank-card__no.is-top {
background: linear-gradient(180deg, #ff4a7b 0%, #ec237f 52%, #93226f 100%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
color: transparent;
}
.rank-card__body {
display: inline-flex;
flex-direction: column;
justify-content: flex-start;
align-items: flex-start;
gap: 10px;
width: 144px;
min-width: 0;
}
.rank-card__cover .card__ep {
left: 10px;
bottom: 10px;
top: auto;
right: auto;
color: #f2f2f4;
font-size: 12px;
font-weight: 500;
line-height: 16px;
}
.rank-card__info {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 10px;
align-self: stretch;
min-width: 0;
}
.rank-card__title {
margin: 0;
align-self: stretch;
color: #f2f2f4;
font-size: 16px;
font-weight: 600;
line-height: 22px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.rank-card__title a {
color: inherit;
text-decoration: none;
}
.rank-card__meta {
margin: 0;
align-self: stretch;
color: #a1a1aa;
font-size: 13px;
font-weight: 400;
line-height: 20px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.rank-card__meta a {
color: inherit;
text-decoration: none;
}
.rank-card__meta a:hover {
color: var(--text);
}
.rank-card__heat,
.rank-card__play {
display: none;
}
@media (max-width: 768px) {
body.page-rank .site-header {
display: none !important;
}
.page-rank .list-hero {
padding: 16px var(--h5-gutter) 8px;
gap: 12px;
}
.page-rank .list-hero__intro {
gap: 8px;
}
.page-rank .list-hero__title {
font-size: 22px;
font-weight: 600;
line-height: 30px;
}
.page-rank .list-hero__desc {
color: #a1a1aa;
font-size: 13px;
font-weight: 400;
line-height: 20px;
}
.rank-tabs {
gap: 20px;
width: 100%;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
}
.rank-tabs::-webkit-scrollbar {
display: none;
}
.rank-tabs__item {
flex-shrink: 0;
gap: 8px;
font-size: 15px;
font-weight: 600;
line-height: 21px;
}
.rank-tabs__item::after {
width: 24px;
}
.page-rank .list-body--rank {
padding: 14px var(--h5-gutter) 20px;
gap: 14px;
}
.grid--rank-list {
display: flex;
flex-direction: column;
flex-wrap: nowrap;
gap: 0;
width: 100%;
}
.rank-card {
display: flex;
align-items: center;
gap: 12px;
width: 100%;
padding: 10px 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.rank-card__rank {
flex-shrink: 0;
width: 34px;
padding: 0;
align-self: center;
}
.rank-card__no {
font-size: 24px;
font-weight: 600;
line-height: 30px;
}
.rank-card__body {
display: flex;
flex-direction: row;
align-items: center;
gap: 12px;
flex: 1 1 0;
width: auto;
min-width: 0;
}
.rank-card__cover {
flex-shrink: 0;
width: 54px;
height: 72px;
border-radius: 6px;
border: 0;
align-self: center;
}
.rank-card__cover .card__ep {
display: none;
}
.rank-card__info {
flex: 1 1 0;
width: auto;
min-width: 0;
gap: 4px;
}
.rank-card__title {
font-size: 15px;
font-weight: 600;
line-height: 21px;
}
.rank-card__meta {
color: #7c7c86;
font-size: 12px;
font-weight: 400;
line-height: 18px;
}
.rank-card__heat {
display: inline-flex;
align-items: center;
gap: 3px;
margin: 0;
color: #ff4a7b;
font-size: 11px;
font-weight: 400;
line-height: 16px;
}
.rank-card__heat .icon {
width: 11px;
height: 11px;
}
.rank-card__play {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
flex-shrink: 0;
height: 32px;
padding: 0 12px;
border-radius: 999px;
outline: 1px solid rgba(255, 255, 255, 0.24);
outline-offset: -1px;
border: 0;
color: #f2f2f4;
font-size: 14px;
font-weight: 500;
line-height: 20px;
text-decoration: none;
}
.rank-card__play .icon {
width: 16px;
height: 16px;
}
}