MediaWiki:Common.css:修订间差异
MediaWiki界面页面
更多操作
删除的内容 添加的内容
ds 标签:已被回退 |
ds2 标签:已被回退 |
||
| 第1行: | 第1行: | ||
/* =========================== |
/* =========================== |
||
全局字体设置 |
全局字体设置 - 简约版 |
||
=========================== */ |
=========================== */ |
||
body { |
body { |
||
| 第8行: | 第8行: | ||
"Microsoft YaHei", "WenQuanYi Micro Hei", "SimSun", "SimHei", |
"Microsoft YaHei", "WenQuanYi Micro Hei", "SimSun", "SimHei", |
||
"Songti SC", "KaiTi", "MingLiU", "PMingLiU", "Microsoft JhengHei", "Malgun Gothic"; |
"Songti SC", "KaiTi", "MingLiU", "PMingLiU", "Microsoft JhengHei", "Malgun Gothic"; |
||
background: |
background-color: #f8f9fa; |
||
line-height: 1.6; |
|||
color: #333; |
|||
} |
} |
||
/* =========================== |
/* =========================== |
||
横幅标语样式 |
横幅标语样式 - 简约版 |
||
=========================== */ |
=========================== */ |
||
.banner { |
.banner { |
||
background: #2c3e50; |
|||
display: flex; |
|||
flex-direction: column; |
|||
justify-content: center; |
|||
align-items: center; |
|||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); |
|||
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); |
|||
color: white; |
color: white; |
||
border-radius: 8px; |
|||
padding: 20px; |
|||
padding: 24px 32px; |
|||
text-align: center; |
text-align: center; |
||
margin: 20px 0; |
margin: 20px 0; |
||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); |
|||
position: relative; |
|||
overflow: hidden; |
|||
} |
|||
.banner::before { |
|||
content: ''; |
|||
position: absolute; |
|||
top: -50%; |
|||
left: -50%; |
|||
width: 200%; |
|||
height: 200%; |
|||
background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px); |
|||
background-size: 20px 20px; |
|||
animation: float 20s linear infinite; |
|||
} |
|||
@keyframes float { |
|||
0% { transform: translate(0, 0) rotate(0deg); } |
|||
100% { transform: translate(-20px, -20px) rotate(360deg); } |
|||
} |
|||
.banner-text { |
|||
margin: 0; |
|||
line-height: 1.4; |
|||
position: relative; |
|||
z-index: 2; |
|||
} |
} |
||
.banner .chinese-text { |
.banner .chinese-text { |
||
font-size: |
font-size: 24px; |
||
font-weight: |
font-weight: 600; |
||
margin-bottom: 8px; |
|||
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); |
|||
} |
} |
||
.banner .english-text { |
.banner .english-text { |
||
font-size: |
font-size: 16px; |
||
opacity: 0.9; |
|||
opacity: 0.95; |
|||
margin-top: 8px; |
|||
} |
} |
||
/* =========================== |
/* =========================== |
||
内容块样式 - |
内容块样式 - 简约版 |
||
=========================== */ |
=========================== */ |
||
.content-box { |
.content-box { |
||
margin: |
margin: 12px 0; |
||
padding: |
padding: 20px; |
||
border-radius: |
border-radius: 8px; |
||
background: white; |
|||
border: 1px solid #e1e5e9; |
|||
background: rgba(255, 255, 255, 0.9); |
|||
transition: all 0.2s ease; |
|||
backdrop-filter: blur(10px); |
|||
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); |
|||
position: relative; |
|||
overflow: hidden; |
|||
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); |
|||
} |
|||
.content-box::before { |
|||
content: ''; |
|||
position: absolute; |
|||
top: 0; |
|||
left: 0; |
|||
right: 0; |
|||
height: 4px; |
|||
background: linear-gradient(90deg, #667eea, #764ba2); |
|||
transform: scaleX(0); |
|||
transition: transform 0.3s ease; |
|||
} |
|||
.content-box:hover::before { |
|||
transform: scaleX(1); |
|||
} |
} |
||
.content-box h2 { |
.content-box h2 { |
||
font-size: 1.25rem; |
|||
font-weight: 600; |
|||
margin-bottom: 16px; |
|||
border-bottom: 2px solid #e0e0e0; |
|||
font-size: 1.3rem; |
|||
color: #2c3e50; |
color: #2c3e50; |
||
margin-bottom: 12px; |
|||
padding-bottom: 8px; |
|||
border-bottom: 2px solid #ecf0f1; |
|||
gap: 10px; |
|||
} |
|||
.content-box h2::before { |
|||
font-size: 1.5em; |
|||
} |
} |
||
.content-box p { |
.content-box p { |
||
color: #555; |
|||
font-size: 0.95rem; |
font-size: 0.95rem; |
||
margin: 0; |
|||
margin-bottom: 0; |
|||
} |
} |
||
.content-box:hover { |
.content-box:hover { |
||
border-color: #bdc3c7; |
|||
transform: translateY(-8px) scale(1.02); |
|||
box-shadow: 0 |
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); |
||
background: rgba(255, 255, 255, 0.95); |
|||
} |
} |
||
/* =========================== |
/* =========================== |
||
网格布局 - |
网格布局 - 简约版 |
||
=========================== */ |
=========================== */ |
||
.flex-container { |
.flex-container { |
||
display: grid; |
display: grid; |
||
grid-template-columns: repeat(auto-fit, minmax( |
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); |
||
gap: |
gap: 20px; |
||
margin: |
margin: 20px 0; |
||
} |
} |
||
.homepage-section { |
.homepage-section { |
||
margin: |
margin: 30px 0; |
||
} |
} |
||
/* =========================== |
/* =========================== |
||
特殊 |
特殊区域样式 - 简约版 |
||
=========================== */ |
=========================== */ |
||
/* 知识掌握模型区域 */ |
/* 知识掌握模型区域 */ |
||
.content-box:first-of-type { |
.content-box:first-of-type { |
||
background: |
background: #fff; |
||
border-left: 4px solid #3498db; |
|||
color: white; |
|||
} |
|||
.content-box:first-of-type h2 { |
|||
color: white; |
|||
border-bottom-color: rgba(255,255,255,0.3); |
|||
} |
|||
.content-box:first-of-type p { |
|||
color: rgba(255,255,255,0.9); |
|||
} |
|||
.content-box:first-of-type .navbox { |
|||
background: rgba(255,255,255,0.1); |
|||
border-radius: 10px; |
|||
padding: 15px; |
|||
} |
} |
||
/* 最近更改区域 */ |
/* 最近更改区域 */ |
||
.content-box:nth-of-type(2) { |
.content-box:nth-of-type(2) { |
||
border-left: |
border-left: 4px solid #e74c3c; |
||
} |
} |
||
/* 哲学与思想 |
/* 哲学与思想 */ |
||
.homepage-section:nth-child(1) .content-box:nth-child(1) { |
.homepage-section:nth-child(1) .content-box:nth-child(1) { |
||
border-left: |
border-left: 4px solid #3498db; |
||
} |
} |
||
/* 文学与艺术 |
/* 文学与艺术 */ |
||
.homepage-section:nth-child(1) .content-box:nth-child(2) { |
.homepage-section:nth-child(1) .content-box:nth-child(2) { |
||
border-left: |
border-left: 4px solid #9b59b6; |
||
} |
} |
||
/* 技术与数据 |
/* 技术与数据 */ |
||
.homepage-section:nth-child(1) .content-box:nth-child(3) { |
.homepage-section:nth-child(1) .content-box:nth-child(3) { |
||
border-left: |
border-left: 4px solid #2ecc71; |
||
} |
} |
||
/* 工程与实践 |
/* 工程与实践 */ |
||
.homepage-section:nth-child(2) .content-box:nth-child(1) { |
.homepage-section:nth-child(2) .content-box:nth-child(1) { |
||
border-left: |
border-left: 4px solid #e67e22; |
||
} |
} |
||
/* 数据与智能 |
/* 数据与智能 */ |
||
.homepage-section:nth-child(2) .content-box:nth-child(2) { |
.homepage-section:nth-child(2) .content-box:nth-child(2) { |
||
border-left: |
border-left: 4px solid #1abc9c; |
||
} |
} |
||
/* 软件与系统 |
/* 软件与系统 */ |
||
.homepage-section:nth-child(2) .content-box:nth-child(3) { |
.homepage-section:nth-child(2) .content-box:nth-child(3) { |
||
border-left: |
border-left: 4px solid #34495e; |
||
} |
} |
||
/* 学习与成长 |
/* 学习与成长 */ |
||
.homepage-section:nth-child(3) .content-box:nth-child(1) { |
.homepage-section:nth-child(3) .content-box:nth-child(1) { |
||
border-left: |
border-left: 4px solid #f39c12; |
||
} |
} |
||
/* 管理与人文 |
/* 管理与人文 */ |
||
.homepage-section:nth-child(3) .content-box:nth-child(2) { |
.homepage-section:nth-child(3) .content-box:nth-child(2) { |
||
border-left: |
border-left: 4px solid #d35400; |
||
} |
} |
||
/* 竞赛与创造 |
/* 竞赛与创造 */ |
||
.homepage-section:nth-child(3) .content-box:nth-child(3) { |
.homepage-section:nth-child(3) .content-box:nth-child(3) { |
||
border-left: |
border-left: 4px solid #c0392b; |
||
} |
} |
||
/* 站点与结构 |
/* 站点与结构 */ |
||
.content-box:last-of-type { |
.content-box:last-of-type { |
||
border-left: |
border-left: 4px solid #7f8c8d; |
||
background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); |
|||
color: white; |
|||
} |
|||
.content-box:last-of-type h2 { |
|||
color: white; |
|||
border-bottom-color: rgba(255,255,255,0.3); |
|||
} |
|||
.content-box:last-of-type p { |
|||
color: rgba(255,255,255,0.9); |
|||
} |
} |
||
/* =========================== |
/* =========================== |
||
导航框样式 |
导航框样式 - 简约版 |
||
=========================== */ |
=========================== */ |
||
.navbox { |
.navbox { |
||
background: |
background: #f8f9fa; |
||
border: |
border-radius: 6px; |
||
padding: 12px; |
|||
margin: 12px 0; |
|||
border: 1px solid #e9ecef; |
|||
} |
} |
||
.navbox a { |
.navbox a { |
||
color: |
color: #2980b9; |
||
text-decoration: none; |
text-decoration: none; |
||
transition: color 0.2s ease; |
|||
padding: 4px 8px; |
|||
border-radius: 6px; |
|||
transition: all 0.3s ease; |
|||
display: inline-block; |
|||
} |
} |
||
.navbox a:hover { |
.navbox a:hover { |
||
color: #1a5276; |
|||
background: rgba(255,255,255,0.2); |
|||
text-decoration: underline; |
|||
transform: translateY(-2px); |
|||
} |
} |
||
| 第262行: | 第173行: | ||
=========================== */ |
=========================== */ |
||
.mw-redirect { |
.mw-redirect { |
||
color: # |
color: #27ae60; |
||
font-weight: 500; |
|||
} |
} |
||
/* =========================== |
/* =========================== |
||
响应式设计 - |
响应式设计 - 简约版 |
||
=========================== */ |
=========================== */ |
||
/* 平板和大屏幕设备 */ |
|||
@media screen and (min-width: 1024px) { |
|||
.flex-container { |
|||
grid-template-columns: repeat(3, 1fr); |
|||
} |
|||
.banner .chinese-text { |
|||
font-size: 32px; |
|||
} |
|||
.banner .english-text { |
|||
font-size: 20px; |
|||
} |
|||
} |
|||
/* 平板设备 */ |
/* 平板设备 */ |
||
@media screen and (max-width: 1024px |
@media screen and (max-width: 1024px) { |
||
.flex-container { |
.flex-container { |
||
grid-template-columns: repeat(2, 1fr); |
grid-template-columns: repeat(2, 1fr); |
||
| 第296行: | 第191行: | ||
.flex-container { |
.flex-container { |
||
grid-template-columns: 1fr; |
grid-template-columns: 1fr; |
||
gap: |
gap: 16px; |
||
} |
} |
||
.content-box { |
.content-box { |
||
padding: 16px; |
|||
margin: 8px 0; |
|||
} |
} |
||
.banner { |
.banner { |
||
padding: |
padding: 16px; |
||
margin: |
margin: 16px 0; |
||
} |
|||
.banner .chinese-text { |
|||
font-size: 20px; |
|||
} |
} |
||
.banner .chinese-text, |
|||
.banner .english-text { |
.banner .english-text { |
||
font-size: 14px; |
|||
} |
} |
||
} |
} |
||
| 第317行: | 第215行: | ||
/* 小屏手机设备 */ |
/* 小屏手机设备 */ |
||
@media screen and (max-width: 480px) { |
@media screen and (max-width: 480px) { |
||
.banner .chinese-text { |
|||
font-size: 22px; |
|||
} |
|||
.banner .english-text { |
|||
font-size: 16px; |
|||
} |
|||
.content-box { |
.content-box { |
||
padding: |
padding: 14px; |
||
margin: 8px 0; |
|||
} |
} |
||
.content-box h2 { |
.content-box h2 { |
||
font-size: 1. |
font-size: 1.1rem; |
||
} |
} |
||
} |
|||
.banner .chinese-text { |
|||
/* 动画增强 */ |
|||
font-size: 18px; |
|||
@keyframes fadeInUp { |
|||
from { |
|||
opacity: 0; |
|||
transform: translateY(30px); |
|||
} |
|||
to { |
|||
opacity: 1; |
|||
transform: translateY(0); |
|||
} |
} |
||
} |
} |
||
.content-box { |
|||
animation: fadeInUp 0.6s ease-out; |
|||
} |
|||
/* 为不同区块设置延迟动画 */ |
|||
.homepage-section:nth-child(1) .content-box:nth-child(1) { animation-delay: 0.1s; } |
|||
.homepage-section:nth-child(1) .content-box:nth-child(2) { animation-delay: 0.2s; } |
|||
.homepage-section:nth-child(1) .content-box:nth-child(3) { animation-delay: 0.3s; } |
|||
.homepage-section:nth-child(2) .content-box { animation-delay: 0.4s; } |
|||
.homepage-section:nth-child(3) .content-box { animation-delay: 0.5s; } |
|||