模板:信息框/styles.css:修订间差异
来自Ac-Wiki
更多操作
< 模板:信息框
小无编辑摘要 |
小无编辑摘要 |
||
| 第66行: | 第66行: | ||
.acw-infobox-row { | .acw-infobox-row { | ||
display: grid; | display: grid; | ||
grid-template-columns: | align-items: center; | ||
gap: 0. | grid-template-columns: 4.25rem minmax(0, 1fr); | ||
gap: 0.42rem; | |||
border-top: 1px solid var(--border-color-subtle, #eaecf0); | border-top: 1px solid var(--border-color-subtle, #eaecf0); | ||
padding: 0. | padding: 0.54rem 0.78rem; | ||
} | } | ||
.acw-infobox-section + .acw-infobox-row { border-top: 0; } | .acw-infobox-section + .acw-infobox-row { border-top: 0; } | ||
.acw-infobox-label { color: var(--color-subtle, #54595d); font-size: var(--font-size-small, 0.875rem); } | .acw-infobox-label { color: var(--color-subtle, #54595d); font-size: var(--font-size-small, 0.875rem); font-weight: 700; line-height: 1.45; } | ||
.acw-infobox-value { | .acw-infobox-value { | ||
min-width: 0; | min-width: 0; | ||
color: var(--color- | color: var(--color-emphasized, #101418); | ||
font-weight: 500; | |||
line-height: 1.45; | |||
overflow-wrap: anywhere; | overflow-wrap: anywhere; | ||
word-break: break-word; | word-break: break-word; | ||
| 第85行: | 第88行: | ||
@media screen and (max-width: 720px) { | @media screen and (max-width: 720px) { | ||
.acw-infobox { float: none; max-width: none; margin: 0 0 1rem; } | .acw-infobox { float: none; max-width: none; margin: 0 0 1rem; } | ||
.acw-infobox-row { grid-template-columns: 1fr; gap: 0. | .acw-infobox-row { grid-template-columns: 4.25rem minmax(0, 1fr); gap: 0.42rem; } | ||
} | } | ||
2026年6月18日 (四) 23:31的版本
.acw-infobox {
overflow: hidden;
width: 100%;
max-width: 22rem;
margin: 0 0 1rem 1rem;
float: right;
clear: right;
border: 1px solid var(--border-color-base, #a2a9b1);
border-radius: 8px;
background: var(--background-color-base, #fff);
color: var(--color-base, #202122);
box-shadow: 0 1px 4px var(--box-shadow-color-base, rgba(0,0,0,0.04));
}
.acw-infobox-head {
padding: 0.95rem 1rem 0.9rem;
text-align: left;
background: var(--background-color-base, #fff);
border-bottom: 1px solid var(--border-color-base, #a2a9b1);
}
.acw-infobox-mark {
display: inline-flex;
align-items: center;
justify-content: center;
width: 3.5rem;
height: 3.5rem;
margin-bottom: 0.7rem;
border: 1px solid var(--border-color-base, #a2a9b1);
border-radius: 8px;
background: var(--background-color-neutral-subtle, #f8f9fa);
color: var(--color-progressive, #36c);
font-size: var(--font-size-x-large, 1.25rem);
font-weight: 800;
}
.acw-infobox-image { margin-bottom: 0.7rem; }
.acw-infobox-image img { max-width: 100%; height: auto; border-radius: 6px; }
.acw-infobox-title {
margin: 0;
color: var(--color-emphasized, #101418);
font-size: var(--font-size-x-large, 1.25rem);
line-height: 1.25;
font-weight: 800;
}
.acw-infobox-title:after {
display: block;
width: 2rem;
height: 1px;
margin-top: 0.55rem;
background: var(--border-color-progressive, #36c);
content: "";
}
.acw-infobox-native,
.acw-infobox-caption,
.acw-infobox-desc {
margin-top: 0.3rem;
color: var(--color-subtle, #54595d);
font-size: var(--font-size-small, 0.875rem);
}
.acw-infobox-section {
border-bottom: 1px solid var(--border-color-subtle, #eaecf0);
background: var(--background-color-neutral-subtle, #f8f9fa);
color: var(--color-emphasized, #101418);
padding: 0.5rem 0.85rem;
font-size: var(--font-size-small, 0.875rem);
font-weight: 700;
}
.acw-infobox-row {
display: grid;
align-items: center;
grid-template-columns: 4.25rem minmax(0, 1fr);
gap: 0.42rem;
border-top: 1px solid var(--border-color-subtle, #eaecf0);
padding: 0.54rem 0.78rem;
}
.acw-infobox-section + .acw-infobox-row { border-top: 0; }
.acw-infobox-label { color: var(--color-subtle, #54595d); font-size: var(--font-size-small, 0.875rem); font-weight: 700; line-height: 1.45; }
.acw-infobox-value {
min-width: 0;
color: var(--color-emphasized, #101418);
font-weight: 500;
line-height: 1.45;
overflow-wrap: anywhere;
word-break: break-word;
}
.acw-infobox-value a {
overflow-wrap: anywhere;
word-break: break-word;
}
@media screen and (max-width: 720px) {
.acw-infobox { float: none; max-width: none; margin: 0 0 1rem; }
.acw-infobox-row { grid-template-columns: 4.25rem minmax(0, 1fr); gap: 0.42rem; }
}