MediaWiki:Common.css:修订间差异
MediaWiki界面页面
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
/* | /* 替换原来的.flex-gallery */ | ||
. | |||
.flex-gallery { | .flex-gallery { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(2, 1fr); /* | grid-template-columns: repeat(2, 1fr); /* 固定一行两个 */ | ||
gap: 10px; | gap: 10px; | ||
align-items: start; | align-items: start; | ||
} | } | ||
.gallery-card, | .gallery-card, | ||
.gallery-card-small { | .gallery-card-small { | ||
position: relative; | position: relative; | ||
width: 100%; | width: 100%; | ||
max-width: 500px; | |||
text-align: center; | text-align: center; | ||
} | } | ||
/* | /* 小屏幕时保持一行两个 */ | ||
@media screen and (max-width: 480px) { | |||
@media screen and (max-width: | |||
.flex-gallery { | .flex-gallery { | ||
grid-template-columns: 1fr; | grid-template-columns: 1fr; /* 超小时改为一列 */ | ||
} | } | ||
} | } | ||
2026年4月25日 (六) 01:50的版本
/* 替换原来的.flex-gallery */
.flex-gallery {
display: grid;
grid-template-columns: repeat(2, 1fr); /* 固定一行两个 */
gap: 10px;
align-items: start;
}
.gallery-card,
.gallery-card-small {
position: relative;
width: 100%;
max-width: 500px;
text-align: center;
}
/* 小屏幕时保持一行两个 */
@media screen and (max-width: 480px) {
.flex-gallery {
grid-template-columns: 1fr; /* 超小时改为一列 */
}
}