Template:虚拟歌手外语排行榜/bricks/style.css
模板页面
更多操作
/* [[Category:在模板命名空间下的CSS页面]] */
/* 卡片主体 */
.vrb-card {
box-sizing: border-box;
margin: 0 0 0.875rem 0;
display: grid;
grid-template-columns: 8.75rem minmax(0, 1fr);
grid-template-areas:
"rank cover"
"info info"
"stats stats";
align-items: center;
gap: 0.375rem 0.5rem;
padding: 0.625rem;
border: var(--border-width-base, 1px) solid var(--border-color-base, #a2a9b1);
border-radius: var(--border-radius-large, 2px);
background: var(--background-color-base, #fff);
color: var(--color-base, #202122);
box-shadow: 0 1px 2px var(--box-shadow-color-base);
}
/* 排名区 */
.vrb-rank {
grid-area: rank;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 0.25rem;
min-width: 0;
}
.vrb-rank-value {
font-size: 1.75rem;
font-weight: 700;
line-height: 1.1;
letter-spacing: -0.01em;
font-variant-numeric: tabular-nums;
}
.vrb-rank-trend {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 0.25rem;
font-size: var(--text-xs, 0.75rem);
color: var(--color-subtle, #54595d);
line-height: 1.3;
}
.vrb-rank-note {
font-weight: 600;
line-height: 1.4;
}
.vrb-badge {
display: inline-flex;
align-items: center;
padding: 0.125rem 0.5rem;
border-radius: var(--border-radius-pill, 9999px);
font-weight: 600;
line-height: 1.4;
white-space: nowrap;
}
.vrb-badge-new {
background: var(--color-warning, #ca982e);
color: var(--color-inverted, #fff);
font-weight: 700;
letter-spacing: 0.04em;
}
.vrb-badge-prev {
background: var(--background-color-interactive-subtle, #f8f9fa);
color: var(--color-subtle, #54595d);
font-weight: 400;
}
.vrb-trend {
font-weight: 700;
line-height: 1;
}
.vrb-trend-up {
color: var(--color-destructive, #d33);
}
.vrb-trend-same {
color: var(--color-subtle, #54595d);
}
.vrb-trend-down {
color: var(--color-progressive, #36c);
}
/* 封面图 */
.vrb-cover {
grid-area: cover;
display: flex;
align-items: center;
justify-content: center;
min-width: 0;
}
.vrb-cover-img {
display: block;
width: 100%;
height: auto;
aspect-ratio: 16 / 9;
object-fit: cover;
border: var(--border-width-base, 1px) solid var(--border-color-subtle, #c8ccd1);
border-radius: var(--border-radius-base, 2px);
background: var(--background-color-neutral-subtle, #f8f9fa);
}
/* 信息区 */
.vrb-info {
grid-area: info;
display: flex;
flex-direction: column;
gap: 0.5rem;
min-width: 0;
}
/* 标题行 */
.vrb-title-row {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 0.25rem 0.5rem;
min-width: 0;
}
.vrb-title {
font-size: var(--text-base, 1rem);
font-weight: 600;
line-height: 1.4;
overflow-wrap: anywhere;
min-width: 0;
}
.vrb-star {
margin-left: 0.15em;
font-weight: 700;
}
.vrb-ext {
display: inline-flex;
align-items: center;
justify-content: center;
flex: none;
width: 1.5rem;
height: 1.5rem;
border-radius: var(--border-radius-base, 2px);
transition: background 120ms ease;
}
.vrb-ext:hover {
background: var(--background-color-interactive, #eaecf0);
}
.vrb-ext a {
display: inline-flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
}
.vrb-ext img {
width: 14px;
height: 14px;
border: 0;
opacity: 0.75;
transition: opacity 120ms ease;
}
.vrb-ext:hover img {
opacity: 1;
}
/* 深色模式图标反色 */
html.skin-theme-clientpref-night .vrb-ext img {
filter: invert(1);
}
@media (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .vrb-ext img {
filter: invert(1);
}
}
/* 元信息 */
.vrb-meta {
display: flex;
flex-wrap: wrap;
gap: 0.25rem 1rem;
font-size: var(--text-sm, 0.875rem);
color: var(--color-subtle, #54595d);
line-height: 1.5;
}
.vrb-meta-item {
display: flex;
align-items: baseline;
gap: 0.375rem;
min-width: 0;
}
.vrb-meta-value {
min-width: 0;
overflow-wrap: anywhere;
}
.vrb-meta-value a {
text-decoration: none;
}
.vrb-meta-value a:hover {
text-decoration: underline;
}
.vrb-meta-vocalist .vrb-meta-value {
color: var(--color-base, #202122);
}
/* 主要数据 */
.vrb-hero {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 0.25rem 0.5rem;
}
/* 次要数据 */
.vrb-stats {
grid-area: stats;
min-width: 0;
}
.vrb-stat-grid {
display: flex;
flex-wrap: wrap;
gap: 0.25rem;
}
.vrb-stat-grid .vrb-stat {
flex: 1 1 calc(25% - 0.25rem);
}
/* 数据单元格 */
.vrb-stat {
box-sizing: border-box;
display: flex;
flex-direction: column;
gap: 0.125rem;
min-width: 0;
padding: 0.25rem 0.375rem;
background: var(--background-color-interactive-subtle, #f8f9fa);
border-radius: var(--border-radius-base, 2px);
}
.vrb-stat-label {
font-size: var(--text-xs, 0.75rem);
color: var(--color-subtle, #54595d);
white-space: nowrap;
}
.vrb-stat-main {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 0;
min-width: 0;
}
.vrb-stat-value {
font-size: var(--text-xs, 0.75rem);
font-weight: 600;
color: var(--color-emphasized, #101418);
font-variant-numeric: tabular-nums;
line-height: 1.3;
word-break: break-all;
}
.vrb-stat-note {
font-size: var(--text-xs, 0.75rem);
font-weight: 400;
color: var(--color-subtle, #54595d);
line-height: 1.3;
}
.vrb-hero .vrb-stat {
flex-direction: row;
align-items: baseline;
gap: 0;
padding: 0;
background: none;
}
.vrb-points .vrb-stat-main {
flex-direction: row;
align-items: baseline;
gap: 0.25rem;
}
.vrb-hero .vrb-points .vrb-stat-value {
font-size: var(--text-base, 1rem);
font-weight: 700;
}
.vrb-pill {
display: inline-flex;
align-items: center;
gap: 0.375rem;
padding: 0.125rem 0.625rem;
border-radius: var(--border-radius-pill, 9999px);
background: var(--background-color-interactive-subtle, #f8f9fa);
color: var(--color-subtle, #54595d);
font-size: var(--text-xs, 0.75rem);
font-weight: 600;
line-height: 1.5;
white-space: nowrap;
}
/* 响应式 */
body.main-md .vrb-card {
grid-template-columns: 6.6rem 11rem 1fr;
grid-template-areas:
"rank cover info"
"stats stats stats";
gap: 0.375rem 0.75rem;
padding: 0.75rem;
}
body.main-md .vrb-rank-trend {
max-width: 6rem;
}
body.main-md .vrb-stat-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
gap: 0.375rem;
}