模板:ScheduleHeader/style.css:修订间差异
来自星露谷物语扩展百科
更多操作
删除的内容 添加的内容
无编辑摘要 |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
/* 确保表格是标准的 wiki 样式,不产生溢出 */ |
|||
| ⚫ | |||
| ⚫ | |||
width: 100%; |
|||
border: 1px solid #a2a9b1 !important; /* Wiki 标准边框色 */ |
|||
box-sizing: border-box; |
|||
border-collapse: |
border-collapse: collapse !important; |
||
display: table !important; /* 强制回归表格布局 */ |
|||
border-spacing: 0; |
|||
margin-top: 15px; |
|||
border-radius: 11px; |
|||
overflow: hidden; |
|||
display: table; |
|||
| ⚫ | |||
| ⚫ | |||
} |
} |
||
/* 核心修复:移除所有“渲染后的”装饰感 */ |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
background-image: none !important; /* 移除 Wiki 默认渐变 */ |
|||
border: 1px solid #a2a9b1 !important; /* 强制使用标准边框线 */ |
|||
border-radius: 0 !important; /* 移除圆角,恢复直角 */ |
|||
padding: 5px 10px !important; /* 恢复标准间距 */ |
|||
height: auto !important; |
|||
color: #000 !important; |
|||
text-align: center; |
text-align: center; |
||
border-radius: 6px 6px 0 0; |
|||
| ⚫ | |||
padding: 10px; |
|||
position: relative; |
|||
} |
} |
||
/* 单元格修复 */ |
|||
| ⚫ | |||
| ⚫ | |||
width: 100%; |
|||
| ⚫ | |||
max-width: 100%; |
|||
| ⚫ | |||
table-layout: auto; |
|||
| ⚫ | |||
border-collapse: separate; |
|||
word-break: break-word; /* 适配移动端窄屏 */ |
|||
border-spacing: 0; |
|||
border: 1px solid #c9c9c9; |
|||
border-radius: 8px; |
|||
margin-top: 10px; |
|||
} |
} |
||
/* 季节颜色变量(保持不变) */ |
|||
.schedule-header .schedule-table th { |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
border-bottom: 1px solid #c9c9c9; |
|||
.header-fall { --c-bg: #f0ad4e; } |
|||
| ⚫ | |||
text-align: center; |
|||
| ⚫ | |||
padding: 8px 5px; |
|||
| ⚫ | |||
} |
|||
.schedule-header .schedule-table td { |
|||
border-bottom: 1px solid #c9c9c9; |
|||
padding: 8px 10px; |
|||
} |
|||
.schedule-header .schedule-table td:first-child { |
|||
width: 25%; |
|||
min-width: 70px; |
|||
text-align: center; |
|||
} |
|||
.schedule-header .schedule-table td:last-child { |
|||
width: 75%; |
|||
} |
|||
.schedule-header .schedule-table tr:nth-child(even) td { |
|||
background-color: #ffffff; |
|||
} |
|||
.schedule-header .schedule-table tr:nth-child(odd) td { |
|||
background-color: #fcfcfc; |
|||
} |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
.header-fall { --c-bg: #e68a00; --c-border: #e68a00; } |
|||
| ⚫ | |||
| ⚫ | |||
2026年4月20日 (一) 23:05的版本
/* 确保表格是标准的 wiki 样式,不产生溢出 */
.wikitable.daily-schedule-table {
border: 1px solid #a2a9b1 !important; /* Wiki 标准边框色 */
border-collapse: collapse !important;
display: table !important; /* 强制回归表格布局 */
}
/* 核心修复:移除所有“渲染后的”装饰感 */
.schedule-header .wikitable th {
background-color: var(--c-bg) !important; /* 仅保留季节背景色 */
background-image: none !important; /* 移除 Wiki 默认渐变 */
border: 1px solid #a2a9b1 !important; /* 强制使用标准边框线 */
border-radius: 0 !important; /* 移除圆角,恢复直角 */
padding: 5px 10px !important; /* 恢复标准间距 */
height: auto !important;
color: #000 !important;
text-align: center;
}
/* 单元格修复 */
.schedule-header .wikitable td {
border: 1px solid #a2a9b1 !important;
padding: 8px 10px !important;
background-color: #fff !important;
word-break: break-word; /* 适配移动端窄屏 */
}
/* 季节颜色变量(保持不变) */
.header-spring { --c-bg: #92e092; }
.header-summer { --c-bg: #ffe680; }
.header-fall { --c-bg: #f0ad4e; }
.header-winter { --c-bg: #add8e6; }
.header-marriage { --c-bg: #f092f0; }
.header-deviations { --c-bg: #ff7d7d; }