MediaWiki:Common.css:修订间差异
MediaWiki界面页面
更多操作
删除的内容 添加的内容
标签:撤销 |
小 测试 |
||
| 第1行: | 第1行: | ||
/* 全局字体设置,覆盖 |
/* 全局字体设置,覆盖东亚语言 */ |
||
body { |
body { |
||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, |
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 { |
.banner { |
||
height: 100px; |
height: 100px; |
||
display: flex; |
display: flex; |
||
flex-direction: column; |
flex-direction: column; |
||
justify-content: center; |
justify-content: center; |
||
color: red; |
|||
color: #ff0000; /* 文字颜色设置为红色 */ |
|||
font-weight: bold; |
font-weight: bold; |
||
border-radius: 10px; |
border-radius: 10px; |
||
padding: 0 20px; |
padding: 0 20px; |
||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); |
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); |
||
} |
} |
||
.banner-text { |
.banner-text { |
||
margin: 0; |
margin: 0; |
||
line-height: 1.2; |
line-height: 1.2; |
||
} |
} |
||
.banner .chinese-text { |
.banner .chinese-text { |
||
text-align: left; |
text-align: left; |
||
font-size: 24px; |
font-size: 24px; |
||
} |
} |
||
.banner .english-text { |
.banner .english-text { |
||
text-align: right; |
text-align: right; |
||
font-size: 16px; |
font-size: 16px; |
||
} |
} |
||
/* 内容块样式 */ |
/* 内容块样式 */ |
||
.content-box { |
.content-box { |
||
margin: 10px; |
margin: 10px; |
||
padding: 20px; |
padding: 20px; |
||
border-radius: 10px; |
border-radius: 10px; |
||
| ⚫ | |||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 阴影效果 */ |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
} |
} |
||
.content-box:hover { |
.content-box:hover { |
||
transform: translateY(-5px); |
transform: translateY(-5px); |
||
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); |
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); |
||
} |
} |
||
.content-box h2 { |
.content-box h2 { |
||
position: relative; |
position: relative; |
||
padding-bottom: 10px; |
padding-bottom: 10px; |
||
margin-bottom: 10px; |
margin-bottom: 10px; |
||
border-bottom: 2px solid |
border-bottom: 2px solid red; |
||
/*color: #333; /* 字体颜色 */ |
|||
} |
} |
||
.content-box p { |
.content-box p { |
||
line-height: 1.6; |
line-height: 1.6; |
||
/*color: #666; /* 字体颜色 */ |
|||
} |
} |
||
/* Flex容器 |
/* Flex 容器 */ |
||
.flex-container { |
.flex-container { |
||
display: flex; |
display: flex; |
||
justify-content: space-between; |
justify-content: space-between; |
||
gap: 20px; |
gap: 20px; |
||
} |
} |
||
.flex-container .content-box { |
.flex-container .content-box { |
||
flex: 1; |
flex: 1; |
||
max-width: 33.33%; |
max-width: 33.33%; |
||
box-sizing: border-box; |
box-sizing: border-box; |
||
} |
} |
||
/* 移动 |
/* 移动端优化 */ |
||
@media (max-width: 768px) { |
@media (max-width: 768px) { |
||
.flex-container { |
.flex-container { |
||
flex-direction: column; |
flex-direction: column; |
||
} |
} |
||
.flex-container .content-box { |
.flex-container .content-box { |
||
max-width: 100%; |
max-width: 100%; |
||
margin-bottom: 20px; |
margin-bottom: 20px; |
||
} |
} |
||
.banner .chinese-text, |
.banner .chinese-text, |
||
.banner .english-text { |
|||
text-align: center; |
text-align: center; |
||
font-size: 18px; |
font-size: 18px; |
||
} |
} |
||
.banner .english-text { |
.banner .english-text { |
||
font-size: 14px; |
font-size: 14px; |
||
} |
} |
||
} |
} |
||
/* 首页样式 */ |
|||
2025年2月17日 (一) 20:17的版本
/* 全局字体设置,覆盖东亚语言 */
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 red;
}
.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;
}
}