User:弃权者/Template:少女前线信息/styles.css:修订间差异
来自OGAS数据中枢
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
/* ===================================================== | /* ============================================================= | ||
少女前线信息框 — | 少女前线信息框 — 左立绘(Widget)+ 右信息 双栏布局 | ||
============================================================= */ | |||
/* ── | /* ── 外层容器:不浮动,块级展示 ── */ | ||
.gf-infobox-wrap { | .gf-infobox-wrap { | ||
display: flex; | display: flex; | ||
flex-direction: row; | flex-direction: row; | ||
align-items: stretch; | align-items: stretch; | ||
width: 580px; | |||
width: | max-width: 100%; | ||
border: 1px solid var(--border-color-subtle, #c8ccd1); | border: 1px solid var(--border-color-subtle, #c8ccd1); | ||
border-radius: 4px; | |||
overflow: hidden; | |||
font-size: 0.875em; | font-size: 0.875em; | ||
color: var(--color-base, #202122); | color: var(--color-base, #202122); | ||
background: var(--background-color-base, #fff); | |||
box-sizing: border-box; | box-sizing: border-box; | ||
margin: 0 0 1em 0; | |||
} | } | ||
/* ── 左侧立绘区 ── */ | /* ── 左侧立绘区 ── */ | ||
.gf-infobox-left { | .gf-infobox-left { | ||
flex: 0 0 | flex: 0 0 260px; | ||
width: | width: 260px; | ||
border-right: 1px solid var(--border-color-subtle, #c8ccd1); | border-right: 1px solid var(--border-color-subtle, #c8ccd1); | ||
background: var(--background-color-base, #fff); | |||
background: var(--background-color- | |||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
} | } | ||
| 第167行: | 第36行: | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
} | } | ||
| 第183行: | 第42行: | ||
width: 100%; | width: 100%; | ||
border-collapse: collapse; | border-collapse: collapse; | ||
margin: 0; | margin: 0; | ||
table-layout: auto; | table-layout: auto; | ||
| 第196行: | 第54行: | ||
border-bottom: 1px solid var(--border-color-subtle, #eaecf0); | border-bottom: 1px solid var(--border-color-subtle, #eaecf0); | ||
font-weight: bold; | font-weight: bold; | ||
font-size: 0. | font-size: 0.88em; | ||
width: 1px; | width: 1px; | ||
vertical-align: top; | vertical-align: top; | ||
| 第204行: | 第62行: | ||
padding: 5px 8px; | padding: 5px 8px; | ||
border-bottom: 1px solid var(--border-color-subtle, #eaecf0); | border-bottom: 1px solid var(--border-color-subtle, #eaecf0); | ||
font-size: 0.88em; | |||
word-break: break-all; | |||
vertical-align: middle; | vertical-align: middle; | ||
} | } | ||
| 第224行: | 第81行: | ||
} | } | ||
/* 亲属/相关人分节标题 */ | |||
.gf-section-header { | .gf-section-header { | ||
text-align: center !important; | text-align: center !important; | ||
| 第230行: | 第88行: | ||
white-space: normal !important; | white-space: normal !important; | ||
border-top: 1px solid var(--border-color-subtle, #c8ccd1); | border-top: 1px solid var(--border-color-subtle, #c8ccd1); | ||
font-size: 0.88em; | |||
} | } | ||
| 第237行: | 第96行: | ||
} | } | ||
/* ── | /* ── 响应式 ── */ | ||
@media screen and (max-width: | @media screen and (max-width: 600px) { | ||
.gf-infobox-wrap { | .gf-infobox-wrap { | ||
flex-direction: column; | |||
width: 100%; | width: 100%; | ||
} | } | ||
| 第251行: | 第108行: | ||
border-right: none; | border-right: none; | ||
border-bottom: 1px solid var(--border-color-subtle, #c8ccd1); | border-bottom: 1px solid var(--border-color-subtle, #c8ccd1); | ||
} | } | ||
.gf-info-table th, | .gf-info-table th, | ||
.gf-info-table td { | .gf-info-table td { | ||
padding: | padding: 7px 10px; | ||
font-size: | font-size: 0.95em; | ||
} | } | ||
} | } | ||
2026年5月15日 (五) 06:14的版本
/* =============================================================
少女前线信息框 — 左立绘(Widget)+ 右信息 双栏布局
============================================================= */
/* ── 外层容器:不浮动,块级展示 ── */
.gf-infobox-wrap {
display: flex;
flex-direction: row;
align-items: stretch;
width: 580px;
max-width: 100%;
border: 1px solid var(--border-color-subtle, #c8ccd1);
border-radius: 4px;
overflow: hidden;
font-size: 0.875em;
color: var(--color-base, #202122);
background: var(--background-color-base, #fff);
box-sizing: border-box;
margin: 0 0 1em 0;
}
/* ── 左侧立绘区 ── */
.gf-infobox-left {
flex: 0 0 260px;
width: 260px;
border-right: 1px solid var(--border-color-subtle, #c8ccd1);
background: var(--background-color-base, #fff);
display: flex;
flex-direction: column;
}
/* ── 右侧信息区 ── */
.gf-infobox-right {
flex: 1 1 0;
min-width: 0;
display: flex;
flex-direction: column;
}
/* ── 信息表格 ── */
.gf-info-table {
width: 100%;
border-collapse: collapse;
margin: 0;
table-layout: auto;
}
.gf-info-table th {
background: var(--background-color-neutral-subtle, #f8f9fa);
color: var(--color-base, #202122);
text-align: left;
padding: 5px 8px;
white-space: nowrap;
border-bottom: 1px solid var(--border-color-subtle, #eaecf0);
font-weight: bold;
font-size: 0.88em;
width: 1px;
vertical-align: top;
}
.gf-info-table td {
padding: 5px 8px;
border-bottom: 1px solid var(--border-color-subtle, #eaecf0);
font-size: 0.88em;
word-break: break-all;
vertical-align: middle;
}
.gf-info-table tr:last-child th,
.gf-info-table tr:last-child td {
border-bottom: none;
}
.gf-info-table a {
color: var(--color-link, #3366cc);
text-decoration: none;
}
.gf-info-table a:hover {
text-decoration: underline;
}
/* 亲属/相关人分节标题 */
.gf-section-header {
text-align: center !important;
background: var(--background-color-neutral-subtle, #f8f9fa) !important;
width: auto !important;
white-space: normal !important;
border-top: 1px solid var(--border-color-subtle, #c8ccd1);
font-size: 0.88em;
}
.gf-related {
vertical-align: top !important;
word-break: break-word !important;
}
/* ── 响应式 ── */
@media screen and (max-width: 600px) {
.gf-infobox-wrap {
flex-direction: column;
width: 100%;
}
.gf-infobox-left {
flex: none;
width: 100%;
border-right: none;
border-bottom: 1px solid var(--border-color-subtle, #c8ccd1);
}
.gf-info-table th,
.gf-info-table td {
padding: 7px 10px;
font-size: 0.95em;
}
}