MediaWiki:Common.css:修订间差异
删除的内容 添加的内容
ds3 标签:已被回退 |
ds5 标签:已被回退 |
||
第11行:
line-height: 1.6;
color: #333;
margin: 0;
padding: 0;
}
第38行 ⟶ 第40行:
/* ===========================
基础内容块样式 - 简约版
=========================== */
.content-box {
第61行 ⟶ 第63行:
color: #555;
font-size: 0.95rem;
margin: 0 0 12px 0;
}
第70行 ⟶ 第72行:
/* ===========================
新增布局样式
=========================== */
/* 主要内容区域 */
.content-section {
margin: 20px 0;
}
/* 宽版内容块 */
.wide-box {
width: 100%;
box-sizing: border-box;
}
/* 双栏布局 */
.two-column-section {
display: grid;
grid-template-columns:
gap: 20px;
margin:
}
/* 特色高亮区块 */
.highlight-box {
background: #f8f9fa;
border-left: 4px solid #2ecc71;
}
.
border-bottom-color: #d5f4e6;
}
/* 导航列布局 */
.nav-container {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
margin-top: 15px;
}
.nav-column {
background: rgba(0,0,0,0.02);
border: 1px solid #f1f2f6;
}
.nav-column strong {
display: block;
font-size: 0.95rem;
}
/* 三栏内容 */
.three-column-content {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 20px;
text-align: center;
}
.three-column-content > div {
padding: 15px;
background: white;
border-radius: 6px;
border: 1px solid #e1e5e9;
transition: all 0.2s ease;
}
.three-column-content > div:hover {
border-color: #3498db;
}
.three-column-content strong {
color: #2c3e50;
display: block;
margin-bottom: 8px;
}
/*
.two-column-content {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
margin-top: 15px;
}
.two-column-content > div {
padding: 15px;
background: rgba(0,0,0,0.02);
border-radius: 6px;
border: 1px solid #f1f2f6;
}
.two-column-content strong {
color: #2c3e50;
display: block;
margin-bottom: 8px;
}
/*
.
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 15px;
margin-top: 15px;
text-align: center;
}
.site-links > div {
padding: 12px;
background: white;
border: 1px solid #e1e5e9;
border-radius: 6px;
transition: all 0.2s ease;
}
.site-links > div:hover {
border-color: #3498db;
}
.site-links strong {
color: #2c3e50;
display: block;
margin-bottom: 6px;
font-size: 0.9rem;
}
/* ===========================
特殊区域样式 - 简约版
=========================== */
/* 知识掌握模型区域 */
.content-section.main-focus .content-box {
border-left: 4px solid #3498db;
background: #f8fbfd;
}
/* 思想与人文区域 */
.two-column-section .content-box:nth-child(1) {
border-left: 4px solid #9b59b6;
}
/* 技术与工程区域 */
.two-column-section .content-box:nth-child(2) {
border-left: 4px solid #e67e22;
}
/* 学习与成长区域 */
.two-column-section:nth-of-type(2) .content-box:nth-child(1) {
border-left: 4px solid #f39c12;
}
/* 竞赛与
.two-column-section:nth-of-type(2) .content-box:nth-child(2) {
border-left: 4px solid #c0392b;
}
/*
.content-box:nth-last-child(3) {
border-left: 4px solid #34495e;
}
/* 最近更新区域 */
.content-box:nth-last-child(2) {
border-left: 4px solid #e74c3c;
}
/* 站点信息区域 */
.content-box:last-of-type {
border-left: 4px solid #7f8c8d;
}
第184行 ⟶ 第250行:
导航框样式 - 简约版
=========================== */
.navbox {
background: #f8f9fa;
border-radius: 6px;
第192行 ⟶ 第258行:
}
.
color: #2980b9;
text-decoration: none;
第198行 ⟶ 第264行:
}
.
color: #1a5276;
text-decoration: underline;
第204行 ⟶ 第270行:
/* ===========================
=========================== */
.content-box a {
color: #2980b9;
text-decoration: none;
transition: color 0.2s ease;
}
.content-box a:hover {
color: #1a5276;
text-decoration: underline;
}
.mw-redirect {
color: #27ae60;
font-weight: 500;
}
/* ===========================
工具类
=========================== */
.text-center {
text-align: center;
}
.text-muted {
color: #6c757d;
}
.mb-0 {
margin-bottom: 0;
}
.mt-15 {
margin-top: 15px;
}
第216行 ⟶ 第313行:
/* 平板设备 */
@media screen and (max-width: 1024px) {
.two-column-section {
grid-template-columns: 1fr;
}
.nav-container,
.two-column-content {
grid-template-columns: 1fr;
}
.three-column-content,
.site-links {
grid-template-columns: 1fr 1fr;
}
}
第233行 ⟶ 第330行:
/* 手机设备 */
@media screen and (max-width: 768px) {
.flex-container {
grid-template-columns: 1fr;
gap: 16px;
}
.content-box {
padding: 16px;
第259行 ⟶ 第351行:
.banner .english-text {
font-size: 14px;
}
.three-column-content,
.site-links {
grid-template-columns: 1fr;
}
.three-column-content > div,
.site-links > div {
margin-bottom: 10px;
}
.nav-column {
padding: 12px;
}
}
第276行 ⟶ 第382行:
}
.nav-container,
.two-column-content,
.three-column-content,
.site-links {
grid-template-columns: 1fr;
gap: 12px;
}
.nav-column,
.two-column-content > div,
.three-column-content > div,
.site-links > div {
padding: 12px;
}
}
/* ===========================
打印样式
=========================== */
@media print {
.banner {
background: #fff !important;
color: #000 !important;
border: 1px solid #000;
}
.content-box {
border: 1px solid #000;
box-shadow: none !important;
}
.nav-column,
.two-column-content > div,
.three-column-content > div,
.site-links > div {
background: #fff !important;
border: 1px solid #ddd;
}
}
| |||