MediaWiki:Common.css:修订间差异
MediaWiki界面页面
更多操作
删除的内容 添加的内容
测试布局 |
继续测试移动端 |
||
| 第99行: | 第99行: | ||
.software-info { |
.software-info { |
||
display: flex; |
display: flex; |
||
flex-direction: column; /* 默认 |
flex-direction: column; /* 默认移动端纵向排列 */ |
||
flex-wrap: wrap; |
|||
width: 100%; /* 让表格撑满整个页面宽度 */ |
|||
align-items: stretch; |
|||
gap: 10px; /* |
gap: 10px; /* 分组之间的间距 */ |
||
width: 100%; |
|||
} |
} |
||
/* 适配桌面端 |
/* 适配桌面端,2x2 格式排列 */ |
||
@media (min-width: 768px) { |
@media (min-width: 768px) { |
||
.software-info { |
.software-info { |
||
flex-direction: row; |
flex-direction: row; |
||
flex-wrap: wrap; |
flex-wrap: wrap; |
||
justify-content: space-between; /* 平均分布 */ |
|||
} |
} |
||
.software-info-section { |
.software-info-section { |
||
width: |
width: calc(50% - 5px); /* 每行 2 组,去掉间距 */ |
||
} |
} |
||
} |
} |
||
/* |
/* 让表格填充整个分组 */ |
||
| ⚫ | |||
@media (max-width: 767px) { |
|||
width: 100%; |
|||
.software-info-section { |
|||
| ⚫ | |||
width: 100%; /* 每个分类单独一行,占满整个宽度 */ |
|||
} |
|||
} |
} |
||
/* 分类标题 |
/* 统一分类标题 */ |
||
.software-info-section caption { |
.software-info-section table caption { |
||
font-weight: bold; |
font-weight: bold; |
||
text-align: center; |
text-align: center; |
||
padding: 8px; |
padding: 8px; |
||
} |
|||
/* 统一表格样式 */ |
|||
| ⚫ | |||
width: 100%; /* 让表格填充父容器 */ |
|||
| ⚫ | |||
} |
} |
||
| 第139行: | 第135行: | ||
.software-info-section th, |
.software-info-section th, |
||
.software-info-section td { |
.software-info-section td { |
||
| ⚫ | |||
/* 使用具体颜色值,确保兼容性 */ |
|||
| ⚫ | |||
padding: 8px; |
padding: 8px; |
||
text-align: left; |
text-align: left; |
||