MediaWiki:Common.css:修订间差异
MediaWiki界面页面
更多操作
删除的内容 添加的内容
测试移动端 |
测试移动端 |
||
| 第100行: | 第100行: | ||
display: flex; |
display: flex; |
||
flex-direction: column; /* 默认移动端纵向 */ |
flex-direction: column; /* 默认移动端纵向 */ |
||
align-items: |
align-items: stretch; |
||
gap: 10px; /* 每个分类 |
gap: 10px; /* 每个分类之间的间距 */ |
||
width: 100%; /* 宽度撑满 */ |
|||
} |
} |
||
/* |
/* 适配桌面端,横向排列 */ |
||
@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: |
justify-content: space-between; /* 均匀分布 */ |
||
align-items: stretch; /* 让所有分类高度对齐 */ |
|||
} |
} |
||
.software-info-section { |
.software-info-section { |
||
flex: 1; /* |
flex: 1; /* 所有分类宽度相同 */ |
||
min-width: |
min-width: 250px; /* 避免内容过窄 */ |
||
display: flex; |
|||
flex-direction: column; /* 让表格填充整个区域 */ |
|||
} |
} |
||
} |
} |
||
/* 表格 |
/* 让表格占满分类容器 */ |
||
.software-info-section table { |
.software-info-section table { |
||
width: 100%; |
width: 100%; |
||
border-collapse: collapse; |
border-collapse: collapse; |
||
flex-grow: 1; /* 让表格填满父容器 */ |
|||
} |
} |
||
/* |
/* 统一标题格式 */ |
||
.software-info-section table caption { |
.software-info-section table caption { |
||
font-weight: bold; |
font-weight: bold; |
||
| 第136行: | 第141行: | ||
border: 1px solid var(--mw-border-color); |
border: 1px solid var(--mw-border-color); |
||
padding: 8px; |
padding: 8px; |
||
text-align: left; |
|||
} |
} |
||