模板:MUCWikiHome/styles.css:修订间差异
来自MUC Wiki
更多操作
style: fix homepage image presentation |
style: align homepage resource cards naturally |
||
| (未显示同一用户的3个中间版本) | |||
| 第78行: | 第78行: | ||
border: 1px solid #e4dfd6; | border: 1px solid #e4dfd6; | ||
border-radius: 8px; | border-radius: 8px; | ||
background: # | background: #fff; | ||
} | } | ||
| 第111行: | 第111行: | ||
.mucwiki-home-media figcaption { | .mucwiki-home-media figcaption { | ||
display: block; | display: block; | ||
margin: 0; | |||
padding: .48rem .62rem .56rem; | padding: .48rem .62rem .56rem; | ||
border-top: 1px solid #e4dfd6; | border-top: 1px solid #e4dfd6; | ||
| 第232行: | 第233行: | ||
.mucwiki-home-resources-grid { | .mucwiki-home-resources-grid { | ||
display: grid; | display: grid; | ||
grid-template-columns: | grid-template-columns: minmax(0, 1fr); | ||
gap: . | gap: .72rem; | ||
align-items: start; | align-items: start; | ||
} | } | ||
.mucwiki-home-resource-links { | .mucwiki-home-resource-links { | ||
display: | display: flex; | ||
gap: . | flex-wrap: wrap; | ||
padding: . | gap: .46rem; | ||
padding: .72rem .78rem; | |||
border: 1px solid #e1e5e0; | border: 1px solid #e1e5e0; | ||
border-radius: 8px; | border-radius: 8px; | ||
| 第247行: | 第249行: | ||
.mucwiki-home-resource-links p { | .mucwiki-home-resource-links p { | ||
display: inline-flex; | |||
min-height: 2rem; | |||
align-items: center; | |||
margin: 0; | margin: 0; | ||
padding: .28rem .58rem; | |||
border: 1px solid #eaded7; | |||
border-radius: 999px; | |||
background: #fff; | |||
line-height: 1.25; | |||
} | } | ||
| 第256行: | 第266行: | ||
.mucwiki-home-resource-media { | .mucwiki-home-resource-media { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat( | grid-template-columns: repeat(3, minmax(0, 1fr)); | ||
gap: . | gap: .68rem; | ||
align-items: start; | |||
min-width: 0; | min-width: 0; | ||
} | } | ||
.mucwiki-home-resource-media figure { | .mucwiki-home-resource-media figure { | ||
display: | display: block; | ||
overflow: hidden; | overflow: hidden; | ||
border: 1px solid #e4dfd6; | border: 1px solid #e4dfd6; | ||
| 第271行: | 第281行: | ||
.mucwiki-home-resource-media a.mw-file-description { | .mucwiki-home-resource-media a.mw-file-description { | ||
display: | display: block; | ||
padding: .62rem; | |||
background: #fffdfa; | |||
padding: . | |||
background: # | |||
} | } | ||
| 第283行: | 第290行: | ||
width: 100%; | width: 100%; | ||
max-width: 100%; | max-width: 100%; | ||
height: | height: auto; | ||
border-radius: 4px; | border-radius: 4px; | ||
} | } | ||
.mucwiki-home-resource-media figcaption { | .mucwiki-home-resource-media figcaption { | ||
display: block; | display: block; | ||
margin: 0; | |||
padding: .44rem .58rem .5rem; | padding: .44rem .58rem .5rem; | ||
border-top: 1px solid #e8e3dc; | border-top: 1px solid #e8e3dc; | ||
| 第314行: | 第321行: | ||
.mucwiki-home-resources-grid { | .mucwiki-home-resources-grid { | ||
grid-template-columns: minmax(0, 1fr); | grid-template-columns: minmax(0, 1fr); | ||
} | |||
.mucwiki-home-resource-media { | |||
grid-template-columns: repeat(2, minmax(0, 1fr)); | |||
} | } | ||
} | } | ||
| 第352行: | 第363行: | ||
.mucwiki-home-link-grid li { | .mucwiki-home-link-grid li { | ||
width: 100%; | |||
border-radius: 8px; | |||
} | |||
.mucwiki-home-resource-links { | |||
display: grid; | |||
gap: .38rem; | |||
} | |||
.mucwiki-home-resource-links p { | |||
width: 100%; | width: 100%; | ||
border-radius: 8px; | border-radius: 8px; | ||
| 第361行: | 第382行: | ||
.mucwiki-home-resource-media a.mw-file-description { | .mucwiki-home-resource-media a.mw-file-description { | ||
padding: .55rem; | |||
} | } | ||
} | } | ||