MediaWiki:Common.css:修订间差异
删除的内容 添加的内容
ds 标签:已被回退 |
ds2 标签:已被回退 |
||
第1行:
/* ===========================
全局字体设置 - 简约版
=========================== */
body {
第8行:
"Microsoft YaHei", "WenQuanYi Micro Hei", "SimSun", "SimHei",
"Songti SC", "KaiTi", "MingLiU", "PMingLiU", "Microsoft JhengHei", "Malgun Gothic";
background-color:
color: #333;
}
/* ===========================
横幅标语样式 - 简约版
=========================== */
.banner {
color: white;
text-align: center;
margin: 20px 0;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.banner .chinese-text {
font-size:
font-weight:
margin-bottom: 8px;
}
.banner .english-text {
font-size:
}
/* ===========================
内容块样式 -
=========================== */
.content-box {
margin:
padding:
border-radius:
border: 1px solid #e1e5e9;
transition: all 0.2s ease;
}
.content-box h2 {
color: #2c3e50;
border-bottom: 2px solid #ecf0f1;
}
.content-box p {
font-size: 0.95rem;
}
.content-box:hover {
border-color: #bdc3c7;
box-shadow: 0
}
/* ===========================
网格布局 -
=========================== */
.flex-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(
gap:
margin:
}
.homepage-section {
margin:
}
/* ===========================
特殊
=========================== */
/* 知识掌握模型区域 */
.content-box:first-of-type {
background:
border-left: 4px solid #3498db;
}
/* 最近更改区域 */
.content-box:nth-of-type(2) {
border-left:
}
/* 哲学与思想
.homepage-section:nth-child(1) .content-box:nth-child(1) {
border-left:
}
/* 文学与艺术
.homepage-section:nth-child(1) .content-box:nth-child(2) {
border-left:
}
/* 技术与数据
.homepage-section:nth-child(1) .content-box:nth-child(3) {
border-left:
}
/* 工程与实践
.homepage-section:nth-child(2) .content-box:nth-child(1) {
border-left:
}
/* 数据与智能
.homepage-section:nth-child(2) .content-box:nth-child(2) {
border-left:
}
/* 软件与系统
.homepage-section:nth-child(2) .content-box:nth-child(3) {
border-left:
}
/* 学习与成长
.homepage-section:nth-child(3) .content-box:nth-child(1) {
border-left:
}
/* 管理与人文
.homepage-section:nth-child(3) .content-box:nth-child(2) {
border-left:
}
/* 竞赛与创造
.homepage-section:nth-child(3) .content-box:nth-child(3) {
border-left:
}
/* 站点与结构
.content-box:last-of-type {
border-left:
}
/* ===========================
导航框样式 - 简约版
=========================== */
.navbox {
background:
border-radius:
margin: 12px 0;
border: 1px solid #e9ecef;
}
.navbox a {
color:
text-decoration: none;
transition: color 0.2s ease;
}
.navbox a:hover {
color: #1a5276;
text-decoration: underline;
}
第262行 ⟶ 第173行:
=========================== */
.mw-redirect {
color: #
}
/* ===========================
响应式设计 -
=========================== */
/* 平板设备 */
@media screen and (max-width: 1024px
.flex-container {
grid-template-columns: repeat(2, 1fr);
第296行 ⟶ 第191行:
.flex-container {
grid-template-columns: 1fr;
gap:
}
.content-box {
}
.banner {
padding:
margin:
}
.banner .chinese-text {
font-size: 20px;
}
.banner .english-text {
}
}
第317行 ⟶ 第215行:
/* 小屏手机设备 */
@media screen and (max-width: 480px) {
.content-box {
padding:
}
.content-box h2 {
font-size: 1.
}
.banner .chinese-text {
font-size: 18px;
}
}
| |||