User:弃权者/Template:少女前线信息/styles.css
来自OGAS数据中枢
更多操作
/* =============================================================
少女前线信息框 — 左立绘(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;
}
}