模板:ScheduleHeader/style.css:修订间差异
来自星露谷物语扩展百科
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
.schedule-header { | .schedule-header { | ||
width: 100%; | width: 100%; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
border-collapse: separate; | border-collapse: separate; | ||
border-spacing: 0; | border-spacing: 0; | ||
margin | margin: 15px 0; /* 左右边距设为0,确保对齐边框 */ | ||
border-radius: 11px; | border-radius: 11px; | ||
border: 1px solid var(--c-border); | border: 1px solid var(--c-border); | ||
padding: 5px; | padding: 5px; | ||
display: table; | display: table; | ||
table-layout: fixed | table-layout: fixed; | ||
} | } | ||
@media screen and (min-width: 720px) { | @media screen and (min-width: 720px) { | ||
.schedule-header { | .schedule-header { | ||
width: auto; | width: auto; | ||
min-width: 500px; | min-width: 500px; | ||
max-width: max-content; | max-width: max-content; | ||
margin: 15px auto; /* 电脑端居中显示 */ | |||
table-layout: auto; | table-layout: auto; | ||
} | } | ||
| 第28行: | 第28行: | ||
padding: 8px 10px; | padding: 8px 10px; | ||
position: relative; | position: relative; | ||
} | } | ||
.schedule-header | /* 强制内部所有嵌套表格占满 100% 宽度,实现视觉对齐 */ | ||
.schedule-header .wikitable, | |||
.schedule-header table { | |||
width: 100% !important; | |||
margin-left: 0 !important; | |||
margin-right: 0 !important; | |||
box-sizing: border-box; | |||
} | } | ||
.header-default { --c-bg: #e0e0e0; --c-border: #000000; } | .header-default { --c-bg: #e0e0e0; --c-border: #000000; } | ||
.header-spring { --c-bg: #5cd65c; --c-border: #26a026; } | .header-spring { --c-bg: #5cd65c; --c-border: #26a026; } | ||
| 第46行: | 第49行: | ||
@media screen and (max-width: 480px) { | @media screen and (max-width: 480px) { | ||
.schedule-header { | .schedule-header { | ||
margin-top: 10px; | |||
margin-bottom: 10px; | |||
padding: 3px; | padding: 3px; | ||
border-radius: 8px; | border-radius: 8px; | ||
| 第52行: | 第57行: | ||
padding: 10px 5px; | padding: 10px 5px; | ||
font-size: 1em; | font-size: 1em; | ||
} | |||
/* 解决移动端内容文字过长溢出的问题 */ | |||
.schedule-header td { | |||
word-break: break-word; | |||
} | } | ||
} | } | ||
2026年4月20日 (一) 00:32的版本
.schedule-header {
width: 100%;
box-sizing: border-box;
border-collapse: separate;
border-spacing: 0;
margin: 15px 0; /* 左右边距设为0,确保对齐边框 */
border-radius: 11px;
border: 1px solid var(--c-border);
padding: 5px;
display: table;
table-layout: fixed;
}
@media screen and (min-width: 720px) {
.schedule-header {
width: auto;
min-width: 500px;
max-width: max-content;
margin: 15px auto; /* 电脑端居中显示 */
table-layout: auto;
}
}
.schedule-header th {
text-align: center;
border-radius: 6px 6px 0 0;
background-color: var(--c-bg);
padding: 8px 10px;
position: relative;
}
/* 强制内部所有嵌套表格占满 100% 宽度,实现视觉对齐 */
.schedule-header .wikitable,
.schedule-header table {
width: 100% !important;
margin-left: 0 !important;
margin-right: 0 !important;
box-sizing: border-box;
}
.header-default { --c-bg: #e0e0e0; --c-border: #000000; }
.header-spring { --c-bg: #5cd65c; --c-border: #26a026; }
.header-summer { --c-bg: #ffdb4d; --c-border: #ffdb4d; }
.header-fall { --c-bg: #e68a00; --c-border: #e68a00; }
.header-winter { --c-bg: #66ccff; --c-border: #449bed; }
.header-marriage { --c-bg: #ff3dff; --c-border: #e913f0; }
.header-deviations { --c-bg: #ff5a5a; --c-border: #ff0000; }
@media screen and (max-width: 480px) {
.schedule-header {
margin-top: 10px;
margin-bottom: 10px;
padding: 3px;
border-radius: 8px;
}
.schedule-header th {
padding: 10px 5px;
font-size: 1em;
}
/* 解决移动端内容文字过长溢出的问题 */
.schedule-header td {
word-break: break-word;
}
}