MediaWiki:Common.css:修订间差异
MediaWiki界面页面
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第90行: | 第90行: | ||
} | } | ||
/* Featured Article 卡片样式 */ | |||
.fa-box { | .fa-box { | ||
background: #ffffff; | background: #ffffff; | ||
padding: | padding: 26px; | ||
border-radius: | border-radius: 16px; | ||
box-shadow: 0 | box-shadow: 0 6px 18px rgba(0,0,0,0.06); | ||
margin-bottom: | margin-bottom: 24px; | ||
} | } | ||
.fa-title { | .fa-title { | ||
font-size: | font-size: 14px; | ||
color: #6b6b72; | |||
font-weight: 700; | font-weight: 700; | ||
margin-bottom: 8px; | |||
margin-bottom: | |||
} | } | ||
.fa-article-title { | .fa-article-title { | ||
font-size: | font-size: 22px; | ||
font-weight: 700; | font-weight: 700; | ||
margin-bottom: | margin-bottom: 10px; | ||
color: #1d1d1f; | |||
} | } | ||
.fa-extract { | .fa-extract { | ||
font-size: 15px; | |||
color: #444; | |||
line-height: 1.6; | line-height: 1.6; | ||
margin-bottom: | margin-bottom: 14px; | ||
} | } | ||
.fa-link a { | .fa-link a { | ||
display: inline-block; | |||
text-decoration: none; | text-decoration: none; | ||
padding: 8px | padding: 8px 12px; | ||
border-radius: 10px; | border-radius: 10px; | ||
background: #f3f4fb; | |||
color: # | color: #1d1d1f; | ||
transition: background .18s; | |||
} | } | ||
.fa-link a:hover { | .fa-link a:hover { background: #e9e9f7; } | ||
background: # | |||
@media (prefers-color-scheme: dark) { | |||
.fa-box { background: rgba(24,24,27,0.6); box-shadow: 0 6px 18px rgba(0,0,0,0.28); color: #eaeaea; } | |||
.fa-extract { color: #dcdcdc; } | |||
.fa-link a { background: rgba(255,255,255,0.06); color: #eaeaea; } | |||
.fa-link a:hover { background: rgba(255,255,255,0.09); } | |||
} | } | ||
2025年11月30日 (日) 11:17的版本
.mw-hero {
text-align: center;
padding: 80px 20px 60px;
background: linear-gradient(135deg, #e6ecff, #ffffff 40%);
border-radius: 20px;
margin-bottom: 40px;
}
.mw-hero-title {
font-size: 3rem;
font-weight: 700;
margin-bottom: 10px;
}
.mw-hero-sub {
font-size: 1.3rem;
color: #555;
}
.mw-home-container {
display: flex;
gap: 30px;
align-items: flex-start;
margin-top: 20px;
}
.mw-left {
flex: 2;
}
.mw-right {
flex: 1;
}
/*****************************
* Info Panel(右侧栏)Wikipedia 风
*****************************/
.mw-panel {
background: #fff;
padding: 20px;
border-radius: 14px;
box-shadow: 0 2px 6px rgba(0,0,0,0.06);
margin-bottom: 20px;
}
.mw-panel h2 {
margin-top: 0;
border-bottom: 1px solid #eee;
padding-bottom: 8px;
margin-bottom: 12px;
}
.mw-panel-content {
font-size: 0.95rem;
line-height: 1.4;
}
.mw-panel-content ul {
margin: 0;
padding-left: 18px;
}
.mw-card {
padding: 18px;
border-radius: 16px;
background: white;
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
margin-bottom: 18px;
cursor: pointer;
transition: 0.2s;
}
.mw-card:hover {
box-shadow: 0 4px 14px rgba(0,0,0,0.15);
transform: translateY(-2px);
}
.mw-card-title {
font-size: 1.3em;
font-weight: bold;
margin-bottom: 6px;
}
.mw-card-desc {
font-size: 0.9em;
color: #555;
}
/* Featured Article 卡片样式 */
.fa-box {
background: #ffffff;
padding: 26px;
border-radius: 16px;
box-shadow: 0 6px 18px rgba(0,0,0,0.06);
margin-bottom: 24px;
}
.fa-title {
font-size: 14px;
color: #6b6b72;
font-weight: 700;
margin-bottom: 8px;
}
.fa-article-title {
font-size: 22px;
font-weight: 700;
margin-bottom: 10px;
color: #1d1d1f;
}
.fa-extract {
font-size: 15px;
color: #444;
line-height: 1.6;
margin-bottom: 14px;
}
.fa-link a {
display: inline-block;
text-decoration: none;
padding: 8px 12px;
border-radius: 10px;
background: #f3f4fb;
color: #1d1d1f;
transition: background .18s;
}
.fa-link a:hover { background: #e9e9f7; }
@media (prefers-color-scheme: dark) {
.fa-box { background: rgba(24,24,27,0.6); box-shadow: 0 6px 18px rgba(0,0,0,0.28); color: #eaeaea; }
.fa-extract { color: #dcdcdc; }
.fa-link a { background: rgba(255,255,255,0.06); color: #eaeaea; }
.fa-link a:hover { background: rgba(255,255,255,0.09); }
}
@media (max-width: 900px) {
.mw-home-container {
flex-direction: column;
}
}