MediaWiki:Common.css:修订间差异
无编辑摘要 |
无编辑摘要 |
||
| 第271行: | 第271行: | ||
object-fit: cover; | object-fit: cover; | ||
display: block; | display: block; | ||
} | |||
/* 图片集 */ | |||
.nc-portfolio-grid { | |||
display: grid; | |||
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); | |||
gap: 18px; | |||
margin: 14px 0 28px; | |||
} | |||
.nc-art-card { | |||
background: rgba(255,255,255,.62); | |||
border: 1px solid rgba(210,216,222,.9); | |||
box-shadow: 0 14px 32px -26px rgba(45,52,68,.55); | |||
overflow: hidden; | |||
} | |||
.nc-art-image { | |||
aspect-ratio: 1 / 1; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
background: rgba(255,255,255,.45); | |||
} | |||
.nc-art-image img, | |||
.nc-art-image .mw-file-element { | |||
max-width: 100% !important; | |||
max-height: 100% !important; | |||
width: 100% !important; | |||
height: 100% !important; | |||
object-fit: contain; | |||
} | |||
.nc-art-caption { | |||
padding: 10px 12px 12px; | |||
text-align: center; | |||
color: #263039; | |||
font-weight: 700; | |||
} | |||
.nc-art-caption span { | |||
color: #7a828d; | |||
font-size: .88em; | |||
font-weight: 600; | |||
} | } | ||