模板:MUCWikiHome/styles.css:修订间差异
来自MUC Wiki
更多操作
style: compact Citizen homepage status block |
style: align homepage resource cards naturally |
||
| (未显示同一用户的6个中间版本) | |||
| 第78行: | 第78行: | ||
border: 1px solid #e4dfd6; | border: 1px solid #e4dfd6; | ||
border-radius: 8px; | border-radius: 8px; | ||
background: # | background: #fff; | ||
} | } | ||
.mucwiki-home-media | .mucwiki-home-media figure, | ||
.mucwiki-home-resource-media | .mucwiki-home-resource-media figure { | ||
float: none; | float: none; | ||
clear: none; | clear: none; | ||
width: | display: block; | ||
width: 100%; | |||
max-width: 100%; | max-width: 100%; | ||
margin: 0; | margin: 0; | ||
padding: 0; | |||
border: 0; | |||
background: transparent; | |||
} | } | ||
.mucwiki-home-media . | .mucwiki-home-media a.mw-file-description, | ||
.mucwiki-home-resource-media . | .mucwiki-home-resource-media a.mw-file-description { | ||
width: | display: block; | ||
width: 100%; | |||
max-width: 100%; | max-width: 100%; | ||
overflow: hidden; | |||
} | } | ||
.mucwiki-home | .mucwiki-home-media img { | ||
display: block; | display: block; | ||
width: 100%; | width: 100%; | ||
max-width: | max-width: none; | ||
height: auto; | height: auto; | ||
} | } | ||
.mucwiki-home-media | .mucwiki-home-media figcaption { | ||
display: block; | |||
padding: . | margin: 0; | ||
color: # | padding: .48rem .62rem .56rem; | ||
border-top: 1px solid #e4dfd6; | |||
background: #fffdfa; | |||
color: #59636e; | |||
font-size: .86rem; | font-size: .86rem; | ||
line-height: 1.42; | line-height: 1.42; | ||
| 第229行: | 第233行: | ||
.mucwiki-home-resources-grid { | .mucwiki-home-resources-grid { | ||
display: grid; | display: grid; | ||
grid-template-columns: minmax(0, | 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; | ||
| 第244行: | 第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; | |||
} | } | ||
| 第254行: | 第267行: | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(3, minmax(0, 1fr)); | grid-template-columns: repeat(3, minmax(0, 1fr)); | ||
gap: . | gap: .68rem; | ||
align-items: start; | |||
min-width: 0; | min-width: 0; | ||
} | } | ||
.mucwiki-home-resource-media | .mucwiki-home-resource-media figure { | ||
display: block; | |||
overflow: hidden; | overflow: hidden; | ||
border: 1px solid #e4dfd6; | border: 1px solid #e4dfd6; | ||
border-radius: 8px; | border-radius: 8px; | ||
background: # | background: #fff; | ||
} | |||
.mucwiki-home-resource-media a.mw-file-description { | |||
display: block; | |||
padding: .62rem; | |||
background: #fffdfa; | |||
} | |||
.mucwiki-home-resource-media img { | |||
display: block; | |||
width: 100%; | |||
max-width: 100%; | |||
height: auto; | |||
border-radius: 4px; | |||
} | |||
.mucwiki-home-resource-media figcaption { | |||
display: block; | |||
margin: 0; | |||
padding: .44rem .58rem .5rem; | |||
border-top: 1px solid #e8e3dc; | |||
color: #59636e; | |||
font-size: .84rem; | |||
line-height: 1.36; | |||
} | |||
.mucwiki-home-resource-media figcaption:empty { | |||
display: none; | |||
} | } | ||
| 第281行: | 第324行: | ||
.mucwiki-home-resource-media { | .mucwiki-home-resource-media { | ||
grid-template-columns: minmax(0, 1fr); | grid-template-columns: repeat(2, minmax(0, 1fr)); | ||
} | } | ||
} | } | ||
| 第287行: | 第330行: | ||
@media screen and (max-width: 560px) { | @media screen and (max-width: 560px) { | ||
.mucwiki-home { | .mucwiki-home { | ||
gap: . | gap: .68rem; | ||
} | } | ||
| 第294行: | 第337行: | ||
.mucwiki-home-panel, | .mucwiki-home-panel, | ||
.mucwiki-home-resource-links { | .mucwiki-home-resource-links { | ||
padding: . | padding: .68rem .76rem; | ||
} | } | ||
.mucwiki-home-title { | .mucwiki-home-title { | ||
font-size: 1. | font-size: 1.28rem; | ||
} | |||
.mucwiki-home-intro { | |||
gap: .44rem; | |||
line-height: 1.48; | |||
} | |||
.mucwiki-home-lede { | |||
font-size: 1rem; | |||
} | |||
.mucwiki-home-status { | |||
gap: .22rem; | |||
line-height: 1.45; | |||
} | } | ||
| 第308行: | 第365行: | ||
width: 100%; | width: 100%; | ||
border-radius: 8px; | border-radius: 8px; | ||
} | |||
.mucwiki-home-resource-links { | |||
display: grid; | |||
gap: .38rem; | |||
} | |||
.mucwiki-home-resource-links p { | |||
width: 100%; | |||
border-radius: 8px; | |||
} | |||
.mucwiki-home-resource-media { | |||
grid-template-columns: minmax(0, 1fr); | |||
} | |||
.mucwiki-home-resource-media a.mw-file-description { | |||
padding: .55rem; | |||
} | } | ||
} | } | ||