跳转到内容

MediaWiki:Common.css:修订间差异

来自流放之路2Wiki
Admin留言 | 贡献
无编辑摘要
标签已被回退
Admin留言 | 贡献
无编辑摘要
标签手工回退
 
(未显示同一用户的10个中间版本)
第19行: 第19行:
/* 赛季首页专用样式 v2.0 (2025-04-13) */
/* 赛季首页专用样式 v2.0 (2025-04-13) */
/* == 基础样式模块 == */
/* == 基础样式模块 == */
/* 锚点位置修正(网页1) */
.season-block {
html {
    position: relative;
     scroll-padding-top: 100px;
    padding: 15px 20px 15px 35px;
    margin-bottom: 25px;
     border-radius: 4px;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}
}


/* 页面内容边距优化 */
.decorative-line {
.client-js #mw-content-text {
    position: absolute;
     margin-top: 0 !important;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 90%;
    border-radius: 2px;
    background: #E67E22;
}
 
.color-system-1 .decorative-line { background: #E67E22; } /* 物品系统橙色 */
.color-system-2 .decorative-line { background: #3498DB; } /* 游戏机制蓝色 */
.color-system-3 .decorative-line { background: #2ECC71; } /* 职业体系绿色 */
.color-system-4 .decorative-line { background: #9B59B6; } /* 终局内容紫色 */
 
.season-block:hover {
    transform: translateX(5px);
}
 
.season-block h3 {
     margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
/* 链接动态下划线 */
.season-nav a {
    position: relative;
    padding-bottom: 2px;
}
}


/* 章节编辑按钮悬停效果(网页1) */
.season-nav a::after {
h2 .mw-editsection,
    content: "";
h3 .mw-editsection,
    position: absolute;
h4 .mw-editsection,
    bottom: 0;
h5 .mw-editsection {
    left: 50%;
     opacity: 0;
     width: 0;
     transition: opacity 0.5s;
    height: 1px;
    background: currentColor;
     transition: all 0.3s;
}
}


h2:hover .mw-editsection,
.season-nav a:hover::after {
h3:hover .mw-editsection,
    left: 0;
h4:hover .mw-editsection,
    width: 100%;
h5:hover .mw-editsection {
}
     opacity: 1;
/* 添加文字渐变色与悬停放大 */
.season-block h3 {
    background: linear-gradient(120deg, #2c3e50 30%, #3498db 70%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    display: inline-block;
     transform-origin: left center;
}
}


/* == 界面元素控制模块 == */
/* 悬停文字放大+投影 */
/* 隐藏非必要元素(网页2/3) */
.season-block:hover h3 {
#ca-talk,
    transform: scale(1.05);
#ca-viewsource,
    text-shadow: 0 2px 8px rgba(52,152,219,0.2);
#ca-history,
#p-tb,
#footer-info-lastmod {
    display: none !important;
}
}


/* 侧边栏定位优化 */
 
.bui-sns-info {
/* 悬停时线条生长动画 */
     right: 5px !important;
.season-block:hover .decorative-line {
     top: max(50px, calc((100vh - 380px) / 2)) !important;
     height: 100%;
     opacity: 0.8;
    background-size: 100% 200%;
    animation: lineFlow 1.2s infinite linear;
}
}


/* == 动态效果模块 == */
@keyframes lineFlow {
/* 装饰线动画(结合网页5响应式方案) */
     0% { background-position: 0 0; }
.decorative-line {
     100% { background-position: 0 200%; }
     transition: height 0.4s ease-out, opacity 0.2s linear !important;
     background: linear-gradient(180deg,
        transparent 0%,
        currentColor 30%,
        currentColor 70%,
        transparent 100%
    );
}
}
/* 列表 */
.season-block li { list-style: none; }
.season-block li::before { content: "▸"; margin-right: 0.5em; }
.season-block li li::before { content: "|"; color: #666; }


/* 悬浮光影效果(GPU加速优化) */
/* 列表项悬停效果 */
.season-block::after {
.season-block li {
     transform: translate(var(--mouse-x), var(--mouse-y)) translateZ(0);
    position: relative;
    padding-left: 12px;
     transition: transform 0.2s;
}
}


/* == 响应式适配模块(网页5/6) == */
.season-block li::before {
@media (max-width: 768px) {
    content: "▶";
    .season-block {
    position: absolute;
        padding: 12px 15px;
     left: -15px;
        margin-bottom: 20px;
     color: currentColor;
     }
     opacity: 0;
      
     transition: all 0.3s;
     .season-block h3 {
        font-size: 1.2em;
     }
   
    /* 移动端隐藏侧边栏 */
    .bui-sns-info {
        display: none !important;
    }
}
}


/* == 浏览器兼容处理 == */
/* 悬停时项目符号显现与位移 */
@media (prefers-reduced-motion: reduce) {
.season-block li:hover {
     * {
     transform: translateX(8px);
        transition: none !important;
        animation: none !important;
    }
}
}


/* == 全局变量定义 == */
.season-block li:hover::before {
:root {
     opacity: 0.6;
     --primary-color: #2c3e50;
     left: -12px;
     --secondary-color: #3498db;
    --hover-translate: 5px;
}
}

2025年4月13日 (日) 10:29的最新版本

/* 全站CSS,对所有用户加载。*/

/* 参考bwiki

/* 调整鼠标样式 */
html, body{
    cursor: url("https://patchwiki.biligame.com/images/wukong/b/bb/sb51zsgl3cjtl7eapbp6f8q651rtyn0.png"),auto;
}
/* ==[[模板:黑幕]]== */
.heimu,.heimu a:link,.heimu a:visited,.heimu a.external:visited,.heimu rt{background-color:#000;color:#000}
.heimu:hover,.heimu:hover rt{-webkit-animation:heimugc 0.5s forwards;animation:heimugc 0.5s forwards;}
.heimu:hover a:link,.heimu:hover a:visited{-webkit-animation:heimulinkgc 0.5s forwards;animation:heimulinkgc 0.5s forwards;}
@-webkit-keyframes heimugc{to{color:#FFF}}
@keyframes heimugc{to{color:#FFF}}
@-webkit-keyframes heimulinkgc{to{color:#3B8BFF}}
@keyframes heimulinkgc{to{color:#3B8BFF}}
/* --[[模板:黑幕]]-- */

/* 赛季首页专用样式 v2.0 (2025-04-13) */
/* == 基础样式模块 == */
.season-block {
    position: relative;
    padding: 15px 20px 15px 35px;
    margin-bottom: 25px;
    border-radius: 4px;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

.decorative-line {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 90%;
    border-radius: 2px;
    background: #E67E22;
}

.color-system-1 .decorative-line { background: #E67E22; } /* 物品系统橙色 */
.color-system-2 .decorative-line { background: #3498DB; } /* 游戏机制蓝色 */
.color-system-3 .decorative-line { background: #2ECC71; } /* 职业体系绿色 */
.color-system-4 .decorative-line { background: #9B59B6; } /* 终局内容紫色 */

.season-block:hover {
    transform: translateX(5px);
}

.season-block h3 {
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
/* 链接动态下划线 */
.season-nav a {
    position: relative;
    padding-bottom: 2px;
}

.season-nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: all 0.3s;
}

.season-nav a:hover::after {
    left: 0;
    width: 100%;
}
/* 添加文字渐变色与悬停放大 */
.season-block h3 {
    background: linear-gradient(120deg, #2c3e50 30%, #3498db 70%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    display: inline-block;
    transform-origin: left center;
}

/* 悬停文字放大+投影 */
.season-block:hover h3 {
    transform: scale(1.05);
    text-shadow: 0 2px 8px rgba(52,152,219,0.2);
}


/* 悬停时线条生长动画 */
.season-block:hover .decorative-line {
    height: 100%;
    opacity: 0.8;
    background-size: 100% 200%;
    animation: lineFlow 1.2s infinite linear;
}

@keyframes lineFlow {
    0% { background-position: 0 0; }
    100% { background-position: 0 200%; }
}
/* 列表 */
.season-block li { list-style: none; }
.season-block li::before { content: "▸"; margin-right: 0.5em; }
.season-block li li::before { content: "|"; color: #666; }

/* 列表项悬停效果 */
.season-block li {
    position: relative;
    padding-left: 12px;
    transition: transform 0.2s;
}

.season-block li::before {
    content: "▶";
    position: absolute;
    left: -15px;
    color: currentColor;
    opacity: 0;
    transition: all 0.3s;
}

/* 悬停时项目符号显现与位移 */
.season-block li:hover {
    transform: translateX(8px);
}

.season-block li:hover::before {
    opacity: 0.6;
    left: -12px;
}