MediaWiki:Common.css:修订间差异
MediaWiki界面页面
更多操作
无编辑摘要 标签:已被回退 |
小无编辑摘要 标签:已被回退 |
||
| 第88行: | 第88行: | ||
} | } | ||
} | } | ||
/* | /* 电脑端背景容器 */ | ||
.zhajiao-wiki-notice { | .zhajiao-wiki-notice { | ||
background-image: url(" | background-image: url("https://new.pvzhe.wiki/images/石牌.png"); | ||
background-size: cover; | background-size: cover; | ||
background-position: center; | background-position: center; | ||
| 第96行: | 第96行: | ||
text-align: center; | text-align: center; | ||
border-radius: 8px; | border-radius: 8px; | ||
background-color: #f5f5f5; /* 后备底色,图片加载失败时显示灰色而不是黑色 */ | |||
} | } | ||
/* | /* 内层遮罩 */ | ||
.zhajiao-wiki-notice .inner { | .zhajiao-wiki-notice .inner { | ||
background-color: rgba(0, 0, 0, 0.5); | background-color: rgba(0, 0, 0, 0.5); | ||
padding: 5px; | padding: 5px; | ||
border-radius: 8px; | border-radius: 8px; | ||
color: white; /* 文字设白色,在深色遮罩上更清晰 */ | |||
} | } | ||
/* | /* 手机端切换短图 */ | ||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
.zhajiao-wiki-notice { | .zhajiao-wiki-notice { | ||
background-image: url(" | background-image: url("https://new.pvzhe.wiki/images/石牌-短.png"); | ||
} | } | ||
} | } | ||
2026年4月25日 (六) 09:23的版本
/* 电脑端样式 */
.responsive-two-columns .left-col {
width: 320px;
vertical-align: top;
}
.responsive-two-columns .right-col {
vertical-align: top;
padding-left: 20px;
}
/* 新增:响应式图片卡片样式 */
.gallery-card {
position: relative;
width: calc(50% - 5px); /* 一行两个,减去gap的一半 */
max-width: 500px;
text-align: center;
}
.gallery-card-small {
position: relative;
width: calc(50% - 5px);
max-width: 150px;
text-align: center;
}
.gallery-card img,
.gallery-card-small img {
width: 100%;
height: auto;
}
.image-overlay {
position: absolute;
bottom: 30px;
left: 10px;
text-align: left;
background: rgba(0,0,0,0.5);
color: white;
padding: 5px;
border-radius: 4px;
}
.flex-gallery {
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
gap: 10px;
align-items: flex-start;
}
/* 手机端样式 */
@media screen and (max-width: 768px) {
.responsive-two-columns,
.responsive-two-columns tbody,
.responsive-two-columns tr,
.responsive-two-columns td {
display: block;
width: 100%;
}
.responsive-two-columns .right-col {
padding-left: 0;
margin-top: 20px;
}
.responsive-two-columns img {
max-width: 100%;
height: auto;
}
/* 手机端保持一行两个 */
.gallery-card,
.gallery-card-small {
width: calc(50% - 5px);
max-width: none;
}
.flex-gallery {
gap: 10px;
}
}
/* 超小屏幕(宽度小于480px)时改为一行一个 */
@media screen and (max-width: 480px) {
.gallery-card,
.gallery-card-small {
width: 100%;
}
}
/* 电脑端背景容器 */
.zhajiao-wiki-notice {
background-image: url("https://new.pvzhe.wiki/images/石牌.png");
background-size: cover;
background-position: center;
padding: 10px;
text-align: center;
border-radius: 8px;
background-color: #f5f5f5; /* 后备底色,图片加载失败时显示灰色而不是黑色 */
}
/* 内层遮罩 */
.zhajiao-wiki-notice .inner {
background-color: rgba(0, 0, 0, 0.5);
padding: 5px;
border-radius: 8px;
color: white; /* 文字设白色,在深色遮罩上更清晰 */
}
/* 手机端切换短图 */
@media (max-width: 768px) {
.zhajiao-wiki-notice {
background-image: url("https://new.pvzhe.wiki/images/石牌-短.png");
}
}