模板:ScheduleHeader/style.css:修订间差异
来自星露谷物语扩展百科
更多操作
删除的内容 添加的内容
无编辑摘要 |
标签:撤销 |
||
| (未显示同一用户的10个中间版本) | |||
| 第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; |
||
| 第13行: | 第12行: | ||
} |
} |
||
/* 标题单元格通用样式 */ |
|||
.schedule-header th { |
.schedule-header th { |
||
text-align: center; |
text-align: center; |
||
| ⚫ | |||
/* 【修改】外层圆角为11px,减去padding的5px,这里设为6px视觉上更加同心协调 */ |
|||
| ⚫ | |||
background-color: var(--c-bg); |
background-color: var(--c-bg); |
||
padding: 10px; |
|||
padding: 8px 10px; /* 【新增】增加内边距,使颜色块更饱满,并防止文字与折叠按钮重叠 */ |
|||
position: relative; |
position: relative; |
||
} |
} |
||
.schedule-header .schedule-table { |
|||
/* --- 下方的颜色主题保持不变 --- */ |
|||
width: 100%; |
|||
max-width: 100%; |
|||
/* 默认主题(黑色边框、浅灰背景) */ |
|||
table-layout: auto; |
|||
.header-default { |
|||
- |
border-collapse: separate; |
||
- |
border-spacing: 0; |
||
| ⚫ | |||
border-radius: 8px; |
|||
margin-top: 10px; |
|||
} |
} |
||
.schedule-header .schedule-table th { |
|||
/* 春季 */ |
|||
background-color: #f7f7f7; |
|||
.header-spring { |
|||
- |
border-bottom: 1px solid #c9c9c9; |
||
- |
font-weight: bold; |
||
text-align: center; |
|||
padding: 8px 5px; |
|||
} |
} |
||
.schedule-header .schedule-table td { |
|||
/* 夏季 */ |
|||
border-bottom: 1px solid #c9c9c9; |
|||
.header-summer { |
|||
padding: 8px 10px; |
|||
| ⚫ | |||
} |
} |
||
.schedule-header .schedule-table td:first-child { |
|||
/* 秋季 */ |
|||
width: 25%; |
|||
.header-fall { |
|||
- |
min-width: 70px; |
||
- |
text-align: center; |
||
} |
} |
||
.schedule-header .schedule-table td:last-child { |
|||
/* 冬季 */ |
|||
width: 75%; |
|||
.header-winter { |
|||
--c-bg: #66ccff; |
|||
| ⚫ | |||
} |
} |
||
.schedule-header .schedule-table tr:nth-child(even) td { |
|||
/* 婚后 */ |
|||
background-color: #ffffff; |
|||
.header-marriage { |
|||
--c-bg: #ff3dff; |
|||
| ⚫ | |||
} |
} |
||
.schedule-header .schedule-table tr:nth-child(odd) td { |
|||
background-color: #fcfcfc; |
|||
/* 例外 */ |
|||
.header-deviations { |
|||
--c-bg: #ff5a5a; |
|||
--c-border: #ff0000; |
|||
} |
} |
||
.header-deviations { --c-bg: #ff5a5a; --c-border: #ff0000; } |
|||
.header-spring { --c-bg: #5cd65c; --c-border: #26a026; } |
|||
.header-summer { --c-bg: #ffdb4d; --c-border: #ffdb4d; } |
|||
.header-fall { --c-bg: #e68a00; --c-border: #e68a00; } |
|||
| ⚫ | |||
| ⚫ | |||
2026年4月20日 (一) 23:39的最新版本
.schedule-header {
width: 100%;
box-sizing: border-box;
border-collapse: separate;
border-spacing: 0;
margin-top: 15px;
border-radius: 11px;
overflow: hidden;
display: table;
border: 1px solid var(--c-border);
padding: 5px;
}
.schedule-header th {
text-align: center;
border-radius: 6px 6px 0 0;
background-color: var(--c-bg);
padding: 10px;
position: relative;
}
.schedule-header .schedule-table {
width: 100%;
max-width: 100%;
table-layout: auto;
border-collapse: separate;
border-spacing: 0;
border: 1px solid #c9c9c9;
border-radius: 8px;
margin-top: 10px;
}
.schedule-header .schedule-table th {
background-color: #f7f7f7;
border-bottom: 1px solid #c9c9c9;
font-weight: bold;
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-deviations { --c-bg: #ff5a5a; --c-border: #ff0000; }
.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; }