MediaWiki:Common.css:修订间差异
MediaWiki界面页面
更多操作
删除的内容 添加的内容
ds2 标签:已被回退 |
ds3 标签:已被回退 |
||
| 第70行: | 第70行: | ||
/* =========================== |
/* =========================== |
||
新布局样式 |
|||
=========================== */ |
=========================== */ |
||
.section-group { |
|||
.flex-container { |
|||
display: grid; |
display: grid; |
||
grid-template-columns: |
grid-template-columns: 2fr 1fr; |
||
gap: 20px; |
gap: 20px; |
||
margin: |
margin: 30px 0; |
||
align-items: start; |
|||
} |
} |
||
. |
.section-group.reverse { |
||
grid-template-columns: 1fr 2fr; |
|||
margin: 30px 0; |
|||
} |
|||
.featured-card { |
|||
grid-row: span 2; |
|||
} |
|||
.card-group { |
|||
display: flex; |
|||
flex-direction: column; |
|||
gap: 20px; |
|||
} |
|||
.featured-card .content-box { |
|||
height: auto; |
|||
min-height: 300px; |
|||
display: flex; |
|||
flex-direction: column; |
|||
justify-content: center; |
|||
} |
|||
.card-group .content-box { |
|||
flex: 1; |
|||
min-height: 140px; |
|||
} |
} |
||
| 第87行: | 第111行: | ||
=========================== */ |
=========================== */ |
||
/* 知识掌握模型区域 */ |
/* 知识掌握模型区域 */ |
||
.knowledge-model { |
|||
.content-box:first-of-type { |
|||
background: #fff; |
|||
border-left: 4px solid #3498db; |
border-left: 4px solid #3498db; |
||
background: #f8fbfd; |
|||
} |
} |
||
/* 最近更改区域 */ |
/* 最近更改区域 */ |
||
.recent-changes { |
|||
.content-box:nth-of-type(2) { |
|||
border-left: 4px solid #e74c3c; |
border-left: 4px solid #e74c3c; |
||
} |
} |
||
/* 哲学与思想 */ |
/* 哲学与思想 */ |
||
.philosophy { |
|||
.homepage-section:nth-child(1) .content-box:nth-child(1) { |
|||
border-left: 4px solid #3498db; |
border-left: 4px solid #3498db; |
||
background: #f0f8ff; |
|||
} |
} |
||
/* 文学与艺术 */ |
/* 文学与艺术 */ |
||
.literature { |
|||
.homepage-section:nth-child(1) .content-box:nth-child(2) { |
|||
border-left: 4px solid #9b59b6; |
border-left: 4px solid #9b59b6; |
||
background: #faf8ff; |
|||
} |
|||
/* 管理与人文 */ |
|||
.management { |
|||
border-left: 4px solid #d35400; |
|||
background: #fff8f0; |
|||
} |
} |
||
/* 技术与数据 */ |
/* 技术与数据 */ |
||
.technology { |
|||
.homepage-section:nth-child(1) .content-box:nth-child(3) { |
|||
border-left: 4px solid #2ecc71; |
border-left: 4px solid #2ecc71; |
||
background: #f0fff8; |
|||
} |
} |
||
/* 工程与实践 */ |
/* 工程与实践 */ |
||
.engineering { |
|||
.homepage-section:nth-child(2) .content-box:nth-child(1) { |
|||
border-left: 4px solid #e67e22; |
border-left: 4px solid #e67e22; |
||
background: #fffaf0; |
|||
} |
|||
/* 软件与系统 */ |
|||
.software { |
|||
border-left: 4px solid #34495e; |
|||
background: #f8f9fa; |
|||
} |
} |
||
/* 数据与智能 */ |
/* 数据与智能 */ |
||
.data-intelligence { |
|||
.homepage-section:nth-child(2) .content-box:nth-child(2) { |
|||
border-left: 4px solid #1abc9c; |
border-left: 4px solid #1abc9c; |
||
background: #f0fffc; |
|||
} |
|||
/* 软件与系统 */ |
|||
.homepage-section:nth-child(2) .content-box:nth-child(3) { |
|||
border-left: 4px solid #34495e; |
|||
} |
} |
||
/* 学习与成长 */ |
/* 学习与成长 */ |
||
.learning { |
|||
.homepage-section:nth-child(3) .content-box:nth-child(1) { |
|||
border-left: 4px solid #f39c12; |
border-left: 4px solid #f39c12; |
||
background: #fffcf0; |
|||
} |
|||
/* 管理与人文 */ |
|||
.homepage-section:nth-child(3) .content-box:nth-child(2) { |
|||
border-left: 4px solid #d35400; |
|||
} |
} |
||
/* 竞赛与创造 */ |
/* 竞赛与创造 */ |
||
.competition { |
|||
.homepage-section:nth-child(3) .content-box:nth-child(3) { |
|||
border-left: 4px solid #c0392b; |
border-left: 4px solid #c0392b; |
||
background: #fff0f0; |
|||
} |
} |
||
/* 站点与结构 */ |
/* 站点与结构 */ |
||
.site-structure { |
|||
.content-box:last-of-type { |
|||
border-left: 4px solid #7f8c8d; |
border-left: 4px solid #7f8c8d; |
||
background: #f5f5f5; |
|||
} |
} |
||
| 第150行: | 第184行: | ||
导航框样式 - 简约版 |
导航框样式 - 简约版 |
||
=========================== */ |
=========================== */ |
||
.nav-container { |
|||
.navbox { |
|||
background: #f8f9fa; |
background: #f8f9fa; |
||
border-radius: 6px; |
border-radius: 6px; |
||
| 第158行: | 第192行: | ||
} |
} |
||
. |
.nav-container a { |
||
color: #2980b9; |
color: #2980b9; |
||
text-decoration: none; |
text-decoration: none; |
||
| 第164行: | 第198行: | ||
} |
} |
||
. |
.nav-container a:hover { |
||
color: #1a5276; |
color: #1a5276; |
||
text-decoration: underline; |
text-decoration: underline; |
||
| 第182行: | 第216行: | ||
/* 平板设备 */ |
/* 平板设备 */ |
||
@media screen and (max-width: 1024px) { |
@media screen and (max-width: 1024px) { |
||
.section-group, |
|||
.flex-container { |
|||
.section-group.reverse { |
|||
grid-template-columns: repeat(2, 1fr); |
|||
grid-template-columns: 1fr; |
|||
gap: 16px; |
|||
} |
|||
.featured-card { |
|||
grid-row: auto; |
|||
} |
|||
.card-group { |
|||
flex-direction: row; |
|||
} |
} |
||
} |
} |
||
| 第189行: | 第233行: | ||
/* 手机设备 */ |
/* 手机设备 */ |
||
@media screen and (max-width: 768px) { |
@media screen and (max-width: 768px) { |
||
.section-group, |
|||
.flex-container { |
|||
.section-group.reverse { |
|||
grid-template-columns: 1fr; |
grid-template-columns: 1fr; |
||
gap: 16px; |
gap: 16px; |
||
} |
} |
||
.card-group { |
|||
flex-direction: column; |
|||
} |
|||
.content-box { |
.content-box { |
||
padding: 16px; |
padding: 16px; |
||
| 第225行: | 第274行: | ||
.banner .chinese-text { |
.banner .chinese-text { |
||
font-size: 18px; |
font-size: 18px; |
||
} |
|||
.featured-card .content-box { |
|||
min-height: 250px; |
|||
} |
} |
||
} |
} |
||
2025年10月10日 (五) 08:41的版本
/* ===========================
全局字体设置 - 简约版
=========================== */
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";
background-color: #f8f9fa;
line-height: 1.6;
color: #333;
}
/* ===========================
横幅标语样式 - 简约版
=========================== */
.banner {
background: #2c3e50;
color: white;
border-radius: 8px;
padding: 20px;
text-align: center;
margin: 20px 0;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.banner .chinese-text {
font-size: 24px;
font-weight: 600;
margin-bottom: 8px;
}
.banner .english-text {
font-size: 16px;
opacity: 0.9;
}
/* ===========================
内容块样式 - 简约版
=========================== */
.content-box {
margin: 12px 0;
padding: 20px;
border-radius: 8px;
background: white;
border: 1px solid #e1e5e9;
transition: all 0.2s ease;
}
.content-box h2 {
font-size: 1.25rem;
font-weight: 600;
color: #2c3e50;
margin-bottom: 12px;
padding-bottom: 8px;
border-bottom: 2px solid #ecf0f1;
}
.content-box p {
color: #555;
font-size: 0.95rem;
margin: 0;
}
.content-box:hover {
border-color: #bdc3c7;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
/* ===========================
新布局样式
=========================== */
.section-group {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 20px;
margin: 30px 0;
align-items: start;
}
.section-group.reverse {
grid-template-columns: 1fr 2fr;
}
.featured-card {
grid-row: span 2;
}
.card-group {
display: flex;
flex-direction: column;
gap: 20px;
}
.featured-card .content-box {
height: auto;
min-height: 300px;
display: flex;
flex-direction: column;
justify-content: center;
}
.card-group .content-box {
flex: 1;
min-height: 140px;
}
/* ===========================
特殊区域样式 - 简约版
=========================== */
/* 知识掌握模型区域 */
.knowledge-model {
border-left: 4px solid #3498db;
background: #f8fbfd;
}
/* 最近更改区域 */
.recent-changes {
border-left: 4px solid #e74c3c;
}
/* 哲学与思想 */
.philosophy {
border-left: 4px solid #3498db;
background: #f0f8ff;
}
/* 文学与艺术 */
.literature {
border-left: 4px solid #9b59b6;
background: #faf8ff;
}
/* 管理与人文 */
.management {
border-left: 4px solid #d35400;
background: #fff8f0;
}
/* 技术与数据 */
.technology {
border-left: 4px solid #2ecc71;
background: #f0fff8;
}
/* 工程与实践 */
.engineering {
border-left: 4px solid #e67e22;
background: #fffaf0;
}
/* 软件与系统 */
.software {
border-left: 4px solid #34495e;
background: #f8f9fa;
}
/* 数据与智能 */
.data-intelligence {
border-left: 4px solid #1abc9c;
background: #f0fffc;
}
/* 学习与成长 */
.learning {
border-left: 4px solid #f39c12;
background: #fffcf0;
}
/* 竞赛与创造 */
.competition {
border-left: 4px solid #c0392b;
background: #fff0f0;
}
/* 站点与结构 */
.site-structure {
border-left: 4px solid #7f8c8d;
background: #f5f5f5;
}
/* ===========================
导航框样式 - 简约版
=========================== */
.nav-container {
background: #f8f9fa;
border-radius: 6px;
padding: 12px;
margin: 12px 0;
border: 1px solid #e9ecef;
}
.nav-container a {
color: #2980b9;
text-decoration: none;
transition: color 0.2s ease;
}
.nav-container a:hover {
color: #1a5276;
text-decoration: underline;
}
/* ===========================
特殊样式
=========================== */
.mw-redirect {
color: #27ae60;
}
/* ===========================
响应式设计 - 简约版
=========================== */
/* 平板设备 */
@media screen and (max-width: 1024px) {
.section-group,
.section-group.reverse {
grid-template-columns: 1fr;
gap: 16px;
}
.featured-card {
grid-row: auto;
}
.card-group {
flex-direction: row;
}
}
/* 手机设备 */
@media screen and (max-width: 768px) {
.section-group,
.section-group.reverse {
grid-template-columns: 1fr;
gap: 16px;
}
.card-group {
flex-direction: column;
}
.content-box {
padding: 16px;
margin: 8px 0;
}
.banner {
padding: 16px;
margin: 16px 0;
}
.banner .chinese-text {
font-size: 20px;
}
.banner .english-text {
font-size: 14px;
}
}
/* 小屏手机设备 */
@media screen and (max-width: 480px) {
.content-box {
padding: 14px;
}
.content-box h2 {
font-size: 1.1rem;
}
.banner .chinese-text {
font-size: 18px;
}
.featured-card .content-box {
min-height: 250px;
}
}