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, |
||
| 第8行: | 第10行: | ||
} |
} |
||
/* =========================== |
|||
横幅标语样式 |
|||
=========================== */ |
|||
.banner { |
.banner { |
||
height: auto; |
height: auto; |
||
| 第14行: | 第18行: | ||
flex-direction: column; |
flex-direction: column; |
||
justify-content: center; |
justify-content: center; |
||
align-items: center; |
align-items: center; |
||
background: linear-gradient(to right, #a50000, #e64545); |
background: linear-gradient(to right, #a50000, #e64545); |
||
box-shadow: 0 4px 12px rgba(0,0,0,0. |
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); |
||
color: white; |
color: white; |
||
font-weight: bold; |
font-weight: bold; |
||
border-radius: 12px; |
border-radius: 12px; |
||
padding: 12px 24px; |
padding: 12px 24px; |
||
| ⚫ | |||
text-align: center; |
text-align: center; |
||
} |
} |
||
| 第27行: | 第30行: | ||
.banner-text { |
.banner-text { |
||
margin: 0; |
margin: 0; |
||
line-height: 1.4; |
line-height: 1.4; |
||
} |
} |
||
.banner .chinese-text { |
.banner .chinese-text { |
||
font-size: 24px; |
font-size: 24px; |
||
font-weight: 700; |
font-weight: 700; |
||
} |
} |
||
.banner .english-text { |
.banner .english-text { |
||
font-size: 16px; |
font-size: 16px; |
||
font-weight: 500; |
font-weight: 500; |
||
opacity: 0.9; |
opacity: 0.9; |
||
} |
} |
||
/* =========================== |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
=========================== */ |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
/* 当屏幕宽度小于 480px(如手机设备) */ |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
.banner .english-text { |
|||
| ⚫ | |||
} |
|||
| ⚫ | |||
| ⚫ | |||
.content-box { |
.content-box { |
||
margin: 10px; |
margin: 10px; |
||
| 第70行: | 第53行: | ||
border: 1px solid #e0e0e0; |
border: 1px solid #e0e0e0; |
||
transition: transform 0.3s ease, box-shadow 0.3s ease; |
transition: transform 0.3s ease, box-shadow 0.3s ease; |
||
| ⚫ | |||
/* 改善阅读体验 */ |
|||
.content-box h2 { font-size: 1.25rem; } |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); |
|||
} |
} |
||
| 第86行: | 第60行: | ||
margin-bottom: 10px; |
margin-bottom: 10px; |
||
border-bottom: 2px solid #b30000; |
border-bottom: 2px solid #b30000; |
||
| ⚫ | |||
} |
} |
||
.content-box p { |
.content-box p { |
||
line-height: 1.6; |
line-height: 1.6; |
||
| ⚫ | |||
| ⚫ | |||
} |
} |
||
| ⚫ | |||
/* Flex 容器 */ |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
/* =========================== |
|||
Flex 布局 |
|||
=========================== */ |
|||
.flex-container { |
.flex-container { |
||
display: flex; |
display: flex; |
||
| 第106行: | 第89行: | ||
} |
} |
||
/* =========================== |
|||
/* 移动端优化 */ |
|||
特殊样式 |
|||
| ⚫ | |||
=========================== */ |
|||
| ⚫ | |||
| ⚫ | |||
color: #009944; |
|||
| ⚫ | |||
/* =========================== |
|||
响应式设计 |
|||
=========================== */ |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
/* 手机设备 */ |
|||
| ⚫ | |||
.flex-container { |
.flex-container { |
||
flex-direction: column; |
flex-direction: column; |
||
| 第120行: | 第126行: | ||
.banner .english-text { |
.banner .english-text { |
||
text-align: center; |
text-align: center; |
||
| ⚫ | |||
font-size: 18px; |
|||
| ⚫ | |||
/* 小屏手机设备 */ |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
} |
} |
||
| 第126行: | 第138行: | ||
font-size: 14px; |
font-size: 14px; |
||
} |
} |
||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
} |
} |
||