MediaWiki:Common.css:修订间差异

来自勿忘草与永远的少女
跳到导航跳到搜索
Admin留言 | 贡献
无编辑摘要
Admin留言 | 贡献
无编辑摘要
第1行: 第1行:
.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.1);
    z-index: 1000;
    padding: 10px 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;
}
.fixed-top-nav .nav-logo:hover {
    transform: scale(1.05);
}
.fixed-top-nav .nav-logo img {
    max-height: 50px;
    width: auto;
    margin-right: 10px;
}
.fixed-top-nav .nav-logo span {
    color: white;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
}
/* 导航卡片容器(横向) */
.fixed-top-nav .nav-cards {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}
/* 导航卡片样式 */
.fixed-top-nav .nav-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.2);
}
.fixed-top-nav .nav-card:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.fixed-top-nav .nav-card .card-icon {
    font-size: 18px;
}
/* 调整主内容区域,避免被固定导航栏遮挡 */
body {
    padding-top: 70px;
}
/* 移动端适配 */
@media (max-width: 768px) {
    .fixed-top-nav {
        flex-direction: column;
        padding: 10px;
    }
   
    .fixed-top-nav .nav-logo {
        margin-bottom: 10px;
    }
   
    .fixed-top-nav .nav-cards {
        justify-content: center;
        gap: 10px;
    }
   
    .fixed-top-nav .nav-card {
        padding: 6px 12px;
        font-size: 12px;
    }
   
    .fixed-top-nav .nav-card .card-icon {
        font-size: 14px;
    }
   
    body {
        padding-top: 100px;
    }
}
/* 强制隐藏 Vector 皮肤的 Logo */
/* 强制隐藏 Vector 皮肤的 Logo */
.mw-logo,
.mw-logo,

2026年3月27日 (五) 23:21的版本

.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.1);
    z-index: 1000;
    padding: 10px 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;
}

.fixed-top-nav .nav-logo:hover {
    transform: scale(1.05);
}

.fixed-top-nav .nav-logo img {
    max-height: 50px;
    width: auto;
    margin-right: 10px;
}

.fixed-top-nav .nav-logo span {
    color: white;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* 导航卡片容器(横向) */
.fixed-top-nav .nav-cards {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

/* 导航卡片样式 */
.fixed-top-nav .nav-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.2);
}

.fixed-top-nav .nav-card:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.fixed-top-nav .nav-card .card-icon {
    font-size: 18px;
}

/* 调整主内容区域,避免被固定导航栏遮挡 */
body {
    padding-top: 70px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .fixed-top-nav {
        flex-direction: column;
        padding: 10px;
    }
    
    .fixed-top-nav .nav-logo {
        margin-bottom: 10px;
    }
    
    .fixed-top-nav .nav-cards {
        justify-content: center;
        gap: 10px;
    }
    
    .fixed-top-nav .nav-card {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .fixed-top-nav .nav-card .card-icon {
        font-size: 14px;
    }
    
    body {
        padding-top: 100px;
    }
}



/* 强制隐藏 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;
} */