MediaWiki:Common.css:修订间差异
删除的内容 添加的内容
标签:撤销 |
小 测试 |
||
第1行:
/* 全局字体设置,覆盖
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
"Noto Sans", "Noto Sans CJK SC", "Noto Sans CJK TC", "Noto Sans JP",
"Noto Sans KR", sans-serif, "PingFang SC", "Hiragino Sans GB",
"Microsoft YaHei", "WenQuanYi Micro Hei", "SimSun", "SimHei",
"Songti SC", "KaiTi", "MingLiU", "PMingLiU", "Microsoft JhengHei", "Malgun Gothic";
}
/* 横幅标语样式 */
.banner {
height: 100px;
display: flex;
flex-direction: column;
justify-content: center;
color: red;
font-weight: bold;
border-radius: 10px;
padding: 0 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.banner-text {
margin: 0;
line-height: 1.2;
}
.banner .chinese-text {
text-align: left;
font-size: 24px;
}
.banner .english-text {
text-align: right;
font-size: 16px;
}
/* 内容块样式 */
.content-box {
margin: 10px;
padding: 20px;
border-radius: 10px;
▲ border: 1px solid #e0e0e0; /* 边框 */
▲ transition: transform 0.3s ease, box-shadow 0.3s ease; /* 过渡效果 */
}
.content-box:hover {
transform: translateY(-5px);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.content-box h2 {
position: relative;
padding-bottom: 10px;
margin-bottom: 10px;
border-bottom: 2px solid
}
.content-box p {
line-height: 1.6;
}
/* Flex 容器
.flex-container {
display: flex;
justify-content: space-between;
gap: 20px;
}
.flex-container .content-box {
flex: 1;
max-width: 33.33%;
box-sizing: border-box;
}
/* 移动
@media (max-width: 768px) {
.flex-container {
flex-direction: column;
}
.flex-container .content-box {
max-width: 100%;
margin-bottom: 20px;
}
.banner .chinese-text,
.banner .english-text {
text-align: center;
font-size: 18px;
}
.banner .english-text {
font-size: 14px;
}
}
| |||