MediaWiki:Common.css:修订间差异
MediaWiki界面页面
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
/* | /* ===== Hero (Apple-style) ===== */ | ||
.mw- | .mw-hero { | ||
width: 100%; | |||
padding: 80px 20px; | |||
text-align: center; | |||
background: #f5f5f7; | |||
border-radius: 24px; | |||
margin-bottom: 40px; | |||
} | |||
.mw-hero-title { | |||
font-size: 48px; | |||
font-weight: 700; | |||
color: #1d1d1f; | |||
} | |||
.mw-hero-sub { | |||
margin-top: 10px; | |||
font-size: 20px; | |||
color: #6e6e73; | |||
} | |||
/* ===== Grid Layout (Like Wikipedia, but cleaner) ===== */ | |||
.mw-main-grid { | |||
display: grid; | display: grid; | ||
grid-template-columns: | grid-template-columns: 1fr 350px; | ||
gap: | gap: 40px; | ||
margin: | margin-bottom: 40px; | ||
} | } | ||
/* | /* ===== Left Column Cards ===== */ | ||
.mw- | .mw-card { | ||
margin-bottom: 24px; | |||
} | |||
.mw-card a { | |||
display: block; | display: block; | ||
background: | background: white; | ||
padding: | padding: 26px; | ||
border-radius: | border-radius: 22px; | ||
box-shadow: 0 | border: 1px solid #e5e5e5; | ||
box-shadow: 0 6px 16px rgba(0,0,0,0.06); | |||
text-decoration: none; | text-decoration: none; | ||
color: # | color: #000; | ||
transition: all 0.2s ease; | |||
transition: all 0. | |||
} | } | ||
.mw-card a:hover { | |||
transform: translateY(-4px); | |||
.mw | box-shadow: 0 12px 28px rgba(0,0,0,0.1); | ||
transform: translateY(- | border-color: #d0d0d5; | ||
box-shadow: 0 | |||
border-color: # | |||
} | } | ||
.mw-card h2 { | |||
.mw | |||
margin: 0 0 10px 0; | margin: 0 0 10px 0; | ||
font-size: | font-size: 24px; | ||
font-weight: 600; | |||
} | } | ||
.mw-card p { | |||
margin: 0; | |||
.mw | font-size: 16px; | ||
margin: 0 | |||
color: #555; | color: #555; | ||
} | } | ||
/* | /* ===== Right Column Sections ===== */ | ||
.mw- | .mw-section h2 { | ||
margin-bottom: 10px; | |||
font-size: 22px; | |||
border-bottom: 2px solid #eaeaea; | |||
padding-bottom: 4px; | |||
} | } | ||
.mw- | |||
/* ===== Mobile Adaptation ===== */ | |||
@media (max-width: 900px) { | |||
.mw-main-grid { | |||
grid-template-columns: 1fr; | |||
} | |||
.mw-right { | |||
margin-top: 20px; | |||
} | |||
} | } | ||
2025年11月23日 (日) 23:08的版本
/* ===== Hero (Apple-style) ===== */
.mw-hero {
width: 100%;
padding: 80px 20px;
text-align: center;
background: #f5f5f7;
border-radius: 24px;
margin-bottom: 40px;
}
.mw-hero-title {
font-size: 48px;
font-weight: 700;
color: #1d1d1f;
}
.mw-hero-sub {
margin-top: 10px;
font-size: 20px;
color: #6e6e73;
}
/* ===== Grid Layout (Like Wikipedia, but cleaner) ===== */
.mw-main-grid {
display: grid;
grid-template-columns: 1fr 350px;
gap: 40px;
margin-bottom: 40px;
}
/* ===== Left Column Cards ===== */
.mw-card {
margin-bottom: 24px;
}
.mw-card a {
display: block;
background: white;
padding: 26px;
border-radius: 22px;
border: 1px solid #e5e5e5;
box-shadow: 0 6px 16px rgba(0,0,0,0.06);
text-decoration: none;
color: #000;
transition: all 0.2s ease;
}
.mw-card a:hover {
transform: translateY(-4px);
box-shadow: 0 12px 28px rgba(0,0,0,0.1);
border-color: #d0d0d5;
}
.mw-card h2 {
margin: 0 0 10px 0;
font-size: 24px;
font-weight: 600;
}
.mw-card p {
margin: 0;
font-size: 16px;
color: #555;
}
/* ===== Right Column Sections ===== */
.mw-section h2 {
margin-bottom: 10px;
font-size: 22px;
border-bottom: 2px solid #eaeaea;
padding-bottom: 4px;
}
/* ===== Mobile Adaptation ===== */
@media (max-width: 900px) {
.mw-main-grid {
grid-template-columns: 1fr;
}
.mw-right {
margin-top: 20px;
}
}