MediaWiki:Common.css
From UKTAPS.CO.UK Wiki
Note: After saving, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/* ==========================================================================
1. 首页卡片与横幅现代布局 (Main Page Layout)
========================================================================== */
.mainpage-card {
background: #fff;
border: 1px solid #ddd;
border-radius: 8px;
padding: 15px;
margin: 10px 0;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
transition: box-shadow 0.3s;
}
.mainpage-card:hover {
box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.mainpage-card h3 {
margin-top: 0;
color: #0645ad;
border-bottom: 1px solid #eee;
padding-bottom: 8px;
}
.mainpage-card p {
margin: 8px 0;
color: #333;
}
.mainpage-card a {
color: #3366bb;
text-decoration: none;
}
.mainpage-card a:hover {
text-decoration: underline;
}
.card-grid {
display: flex;
flex-wrap: wrap;
gap: 15px;
margin: 10px 0;
}
.card-grid .mainpage-card {
flex: 1 1 300px;
max-width: 100%;
}
.wiki-welcome-banner {
text-align: center !important;
padding: 30px 20px !important;
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
border-radius: 12px !important;
margin-bottom: 25px !important;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.wiki-welcome-banner h1.welcome-title {
color: #e94560 !important;
font-size: 2.6em !important;
margin: 0 0 10px 0 !important;
padding: 0 !important;
border-bottom: none !important;
text-shadow: 2px 2px 4px rgba(0,0,0,0.5) !important;
font-weight: 700 !important;
}
.wiki-welcome-banner p.welcome-subtitle {
color: #dddddd !important;
font-size: 1.2em !important;
margin: 0 !important;
padding: 0 !important;
}
/* ==========================================================================
2. UKTaps Wiki 全局蓝色调视觉系统覆盖(匹配主站商城)
========================================================================== */
:root {
--uktaps-blue: #0A3663; /* 主视觉:深邃皇家卫浴蓝 */
--uktaps-light-blue: #F0F4F8; /* 辅助色:极浅蓝底色 */
--uktaps-cyan: #0076A8; /* 互动色:链接与高亮蓝 */
}
a, .mw-body a.external, .mw-body a.extiw {
color: var(--uktaps-cyan) !important;
}
a:hover {
color: var(--uktaps-blue) !important;
text-decoration: underline !important;
}
#mw-head, #mw-panel .portal h3 {
border-bottom-color: var(--uktaps-blue) !important;
color: var(--uktaps-blue) !important;
}
.firstHeading {
border-bottom: 3px solid var(--uktaps-blue) !important;
color: var(--uktaps-blue) !important;
padding-bottom: 8px !important;
}
.section-header {
background: linear-gradient(135deg, var(--uktaps-blue) 0%, #164E87 100%);
padding: 16px 20px;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(10, 54, 99, 0.1);
margin: