MediaWiki:Common.css:修订间差异
来自勿忘草与永远的少女
跳到导航跳到搜索
无编辑摘要 |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
/* ========== 固定顶部导航栏 ========== */ | |||
.fixed-top-nav { | .fixed-top-nav { | ||
position: fixed; | position: fixed; | ||
| 第5行: | 第6行: | ||
right: 0; | right: 0; | ||
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); | background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); | ||
box-shadow: 0 2px 10px rgba(0,0,0,0. | box-shadow: 0 2px 10px rgba(0,0,0,0.3); | ||
z-index: 1000; | z-index: 1000; | ||
padding: | padding: 8px 20px; | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
| 第21行: | 第22行: | ||
align-items: center; | align-items: center; | ||
text-decoration: none; | text-decoration: none; | ||
transition: transform 0.2s; | transition: transform 0.2s ease; | ||
} | } | ||
.fixed-top-nav .nav-logo:hover { | .fixed-top-nav .nav-logo:hover { | ||
transform: scale(1. | transform: scale(1.03); | ||
} | } | ||
.fixed-top-nav .nav-logo img { | .fixed-top-nav .nav-logo img { | ||
max-height: | max-height: 45px; | ||
width: auto; | width: auto; | ||
margin-right: | margin-right: 12px; | ||
} | } | ||
| 第39行: | 第40行: | ||
font-weight: bold; | font-weight: bold; | ||
letter-spacing: 1px; | letter-spacing: 1px; | ||
background: linear-gradient(135deg, #fff, #a0a0ff); | |||
-webkit-background-clip: text; | |||
background-clip: text; | |||
color: transparent; | |||
} | } | ||
/* | /* 导航链接容器 */ | ||
.fixed-top-nav .nav- | .fixed-top-nav .nav-links { | ||
display: flex; | display: flex; | ||
gap: | gap: 12px; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
align-items: center; | align-items: center; | ||
} | } | ||
/* | /* 导航链接样式(卡片风格) */ | ||
.fixed-top-nav .nav- | .fixed-top-nav .nav-link { | ||
background: rgba(255,255,255,0. | background: rgba(255,255,255,0.12); | ||
backdrop-filter: blur(5px); | backdrop-filter: blur(5px); | ||
padding: 8px | padding: 8px 18px; | ||
border-radius: | border-radius: 30px; | ||
text-decoration: none; | text-decoration: none; | ||
color: white; | color: white; | ||
font-weight: 500; | font-weight: 500; | ||
transition: all 0. | font-size: 14px; | ||
display: flex; | transition: all 0.25s ease; | ||
display: inline-flex; | |||
align-items: center; | align-items: center; | ||
gap: | gap: 6px; | ||
border: 1px solid rgba(255,255,255,0.2); | border: 1px solid rgba(255,255,255,0.2); | ||
} | } | ||
.fixed-top-nav .nav- | .fixed-top-nav .nav-link:hover { | ||
background: rgba(255,255,255,0. | background: rgba(255,255,255,0.25); | ||
transform: translateY(-2px); | transform: translateY(-2px); | ||
box-shadow: 0 4px 12px rgba(0,0,0,0.2); | box-shadow: 0 4px 12px rgba(0,0,0,0.2); | ||
color: white; | |||
text-decoration: none; | |||
} | } | ||
/* 调整页面主体,避免被导航栏遮挡 */ | |||
/* | |||
body { | body { | ||
padding-top: | padding-top: 65px !important; | ||
} | } | ||
| 第84行: | 第88行: | ||
.fixed-top-nav { | .fixed-top-nav { | ||
flex-direction: column; | flex-direction: column; | ||
padding: | padding: 8px 15px; | ||
} | } | ||
.fixed-top-nav .nav-logo { | .fixed-top-nav .nav-logo { | ||
margin-bottom: | margin-bottom: 8px; | ||
} | } | ||
.fixed-top-nav .nav- | .fixed-top-nav .nav-logo img { | ||
max-height: 35px; | |||
} | |||
.fixed-top-nav .nav-logo span { | |||
font-size: 16px; | |||
} | |||
.fixed-top-nav .nav-links { | |||
justify-content: center; | justify-content: center; | ||
gap: | gap: 8px; | ||
} | } | ||
.fixed-top-nav .nav- | .fixed-top-nav .nav-link { | ||
padding: | padding: 5px 12px; | ||
font-size: 12px; | font-size: 12px; | ||
} | } | ||
body { | body { | ||
padding-top: | padding-top: 85px !important; | ||
} | } | ||
} | |||
/* 可选:滚动时增强效果 */ | |||
.fixed-top-nav.scrolled { | |||
background: rgba(26, 26, 46, 0.98); | |||
padding: 5px 20px; | |||
transition: all 0.3s ease; | |||
} | } | ||
2026年3月27日 (五) 23:29的版本
/* ========== 固定顶部导航栏 ========== */
.fixed-top-nav {
position: fixed;
top: 0;
left: 0;
right: 0;
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
box-shadow: 0 2px 10px rgba(0,0,0,0.3);
z-index: 1000;
padding: 8px 20px;
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
backdrop-filter: blur(10px);
background-color: rgba(26, 26, 46, 0.95);
}
/* Logo 区域 */
.fixed-top-nav .nav-logo {
display: flex;
align-items: center;
text-decoration: none;
transition: transform 0.2s ease;
}
.fixed-top-nav .nav-logo:hover {
transform: scale(1.03);
}
.fixed-top-nav .nav-logo img {
max-height: 45px;
width: auto;
margin-right: 12px;
}
.fixed-top-nav .nav-logo span {
color: white;
font-size: 20px;
font-weight: bold;
letter-spacing: 1px;
background: linear-gradient(135deg, #fff, #a0a0ff);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
/* 导航链接容器 */
.fixed-top-nav .nav-links {
display: flex;
gap: 12px;
flex-wrap: wrap;
align-items: center;
}
/* 导航链接样式(卡片风格) */
.fixed-top-nav .nav-link {
background: rgba(255,255,255,0.12);
backdrop-filter: blur(5px);
padding: 8px 18px;
border-radius: 30px;
text-decoration: none;
color: white;
font-weight: 500;
font-size: 14px;
transition: all 0.25s ease;
display: inline-flex;
align-items: center;
gap: 6px;
border: 1px solid rgba(255,255,255,0.2);
}
.fixed-top-nav .nav-link:hover {
background: rgba(255,255,255,0.25);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0,0,0,0.2);
color: white;
text-decoration: none;
}
/* 调整页面主体,避免被导航栏遮挡 */
body {
padding-top: 65px !important;
}
/* 移动端适配 */
@media (max-width: 768px) {
.fixed-top-nav {
flex-direction: column;
padding: 8px 15px;
}
.fixed-top-nav .nav-logo {
margin-bottom: 8px;
}
.fixed-top-nav .nav-logo img {
max-height: 35px;
}
.fixed-top-nav .nav-logo span {
font-size: 16px;
}
.fixed-top-nav .nav-links {
justify-content: center;
gap: 8px;
}
.fixed-top-nav .nav-link {
padding: 5px 12px;
font-size: 12px;
}
body {
padding-top: 85px !important;
}
}
/* 可选:滚动时增强效果 */
.fixed-top-nav.scrolled {
background: rgba(26, 26, 46, 0.98);
padding: 5px 20px;
transition: all 0.3s ease;
}
/* 强制隐藏 Vector 皮肤的 Logo */
.mw-logo,
#p-logo,
#p-logo a,
.mw-logo-container,
.mw-logo-wordmark {
display: none !important;
visibility: hidden !important;
width: 0 !important;
height: 0 !important;
overflow: hidden !important;
position: absolute !important;
top: -9999px !important;
left: -9999px !important;
}
/* 如果使用 Vector 2022 皮肤 */
.vector-logo-container,
.vector-logo-wordmark {
display: none !important;
}
.wiki-main {
max-width: 1200px;
margin: 0 auto;
}
.notice {
background: #eef2f8;
}
.left-column table {
border-collapse: collapse;
}
.left-column th, .left-column td {
padding: 8px 12px;
border: 1px solid #ddd;
}
/* 隐藏左侧导航栏中的默认 Logo */
#p-logo {
display: none !important;
}
/* 同时隐藏左侧导航栏(如果需要完全移除侧边栏) */
/* #mw-panel {
display: none !important;
} */
/* 调整主内容区域宽度,补偿隐藏侧边栏后的空间 */
/* .mw-body {
margin-left: 0 !important;
} */