MediaWiki:Common.css:修订间差异
无编辑摘要 |
无编辑摘要 |
||
| 第276行: | 第276行: | ||
.nc-portfolio-grid { | .nc-portfolio-grid { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(auto-fill, minmax( | grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); | ||
gap: 18px; | gap: 18px; | ||
margin: 14px 0 28px; | margin: 14px 0 28px; | ||
| 第289行: | 第289行: | ||
.nc-art-image { | .nc-art-image { | ||
aspect-ratio: | aspect-ratio: 4 / 3; | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
padding: 14px; | |||
background: rgba(255,255,255,.45); | background: rgba(255,255,255,.45); | ||
} | } | ||
| 第298行: | 第299行: | ||
.nc-art-image img, | .nc-art-image img, | ||
.nc-art-image .mw-file-element { | .nc-art-image .mw-file-element { | ||
width: auto !important; | |||
height: auto !important; | |||
max-width: 100% !important; | max-width: 100% !important; | ||
max-height: 100% !important; | max-height: 100% !important; | ||
object-fit: contain; | object-fit: contain; | ||
} | } | ||
.nc-art-caption { | .nc-art-caption { | ||
padding: | padding: 11px 12px 13px; | ||
text-align: center; | text-align: center; | ||
background: rgba(246,248,251,.72); | |||
color: #263039; | color: #263039; | ||
font-weight: | font-weight: 800; | ||
line-height: 1.45; | |||
} | } | ||
.nc-art-caption span { | .nc-art-caption span { | ||
display: inline-block; | |||
margin-top: 3px; | |||
color: #7a828d; | color: #7a828d; | ||
font-size: .88em; | font-size: .88em; | ||
font-weight: 600; | font-weight: 600; | ||
} | } | ||