MediaWiki:Common.css:修订间差异
MediaWiki界面页面
更多操作
删除的内容 添加的内容
继续测试移动端 |
测试 |
||
| 第96行: | 第96行: | ||
} |
} |
||
/* 软件信息 |
/* 让软件信息表格填满整个页面 */ |
||
.software-info { |
.software-info { |
||
display: flex; |
display: flex; |
||
flex-direction: column; /* 默认移动端纵向排列 */ |
flex-direction: column; /* 默认移动端纵向排列 */ |
||
| ⚫ | |||
align-items: stretch; |
|||
| ⚫ | |||
width: 100%; |
width: 100%; |
||
| ⚫ | |||
} |
} |
||
/* 每一组的默认样式(移动端:占满整行) */ |
|||
| ⚫ | |||
.software-info-section { |
|||
width: 100%; /* 在移动端时,占满整行 */ |
|||
display: flex; |
|||
flex-direction: column; /* 让表格填充整个区域 */ |
|||
| ⚫ | |||
} |
|||
| ⚫ | |||
@media (min-width: 768px) { |
@media (min-width: 768px) { |
||
.software-info { |
.software-info { |
||
flex-direction: row; |
flex-direction: row; /* 横向排列 */ |
||
flex-wrap: |
flex-wrap: nowrap; /* 强制一行显示四组 */ |
||
justify-content: space-between; /* |
justify-content: space-between; /* 让四组均分空间 */ |
||
} |
} |
||
.software-info-section { |
.software-info-section { |
||
width: |
width: 25%; /* 每组宽度占总宽度的 1/4 */ |
||
} |
} |
||
} |
} |
||
/* 让表格填充整个分 |
/* 让表格填充整个分类块 */ |
||
.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; |
||
text-align: center; |
text-align: center; |
||
padding: |
padding: 5px; |
||
} |
} |
||
/* 单元格样式 */ |
/* 表格单元格样式 */ |
||
.software-info-section th, |
.software-info-section th, |
||
.software-info-section td { |
.software-info-section td { |
||