跳转到内容

MediaWiki:Common.css:修订间差异

来自流放之路2Wiki
Admin留言 | 贡献
无编辑摘要
Admin留言 | 贡献
无编辑摘要
标签手工回退
 
(未显示同一用户的18个中间版本)
第18行: 第18行:


/* 赛季首页专用样式 v2.0 (2025-04-13) */
/* 赛季首页专用样式 v2.0 (2025-04-13) */
 
/* == 基础样式模块 == */
:root {
    --system-orange: #E67E22;
    --system-blue: #3498DB;  /* 补全#前缀和6位色值 */
    --system-green: #2ECC71;
    --system-purple: #9B59B6;
}
 
.season-homepage {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #2c3e50;
}
 
/* 修正后的导航栏样式 */
.season-nav {
    font-size: 0.9em;        /* 添加分号分隔 */
    margin-bottom: 2em;      /* 独立声明属性 */
    color: #7f8c8d;
    border-bottom: 1px solid #eee;
    padding-bottom: 1em;
}
 
.season-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}
 
.season-column {
    flex: 1;
    min-width: 300px;
}
 
.season-block {
.season-block {
     position: relative;
     position: relative;
    margin-bottom: 2em;
     padding: 15px 20px 15px 35px;
     padding: 20px 25px;
     margin-bottom: 25px;
     background: rgba(255,255,255,0);
     border-radius: 4px;
     border-radius: 4px;
     box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    background: rgba(255,255,255,0.95);
     box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}
}


.season-block::before {
.decorative-line {
    content: "";
     position: absolute;
     position: absolute;
     left: 0;
     left: 0;
第71行: 第37行:
     height: 90%;
     height: 90%;
     border-radius: 2px;
     border-radius: 2px;
    background: #E67E22;
}
}


.color-system-1::before { background: var(--system-orange); }
.color-system-1 .decorative-line { background: #E67E22; } /* 物品系统橙色 */
.color-system-2::before { background: var(--system-blue); }
.color-system-2 .decorative-line { background: #3498DB; } /* 游戏机制蓝色 */
.color-system-3::before { background: var(--system-green); }
.color-system-3 .decorative-line { background: #2ECC71; } /* 职业体系绿色 */
.color-system-4::before { background: var(--system-purple); }
.color-system-4 .decorative-line { background: #9B59B6; } /* 终局内容紫色 */
 
.season-block:hover {
    transform: translateX(5px);
}


.season-block h3 {
.season-block h3 {
     margin-top: 0;
     margin: 0 0 12px 0;
     padding-bottom: 10px;
     padding-bottom: 8px;
     border-bottom: 1px solid rgba(0,0,0,0.1);
     border-bottom: 1px solid rgba(0,0,0,0.1);
}
}
 
/* 链接动态下划线 */
@media (max-width: 768px) {
    .season-container {
        flex-direction: column;
    }
    .season-block::before {
        width: 3px;
        height: 95%;
    }
}
/* 导航链接悬停效果 */
.season-nav a {
.season-nav a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
     position: relative;
     position: relative;
     color: #7f8c8d;
     padding-bottom: 2px;
}
 
.season-nav a:hover {
    color: var(--system-orange);
    transform: translateY(-2px);
}
}


.season-nav a::after {
.season-nav a::after {
     content: '';
     content: "";
     position: absolute;
     position: absolute;
     bottom: -3px;
     bottom: 0;
     left: 0;
     left: 50%;
     width: 0;
     width: 0;
     height: 2px;
     height: 1px;
     background: var(--system-orange);
     background: currentColor;
     transition: width 0.3s ease;
     transition: all 0.3s;
}
}


.season-nav a:hover::after {
.season-nav a:hover::after {
    left: 0;
     width: 100%;
     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 {
.season-block:hover h3 {
     transition:  
     transform: scale(1.05);
        transform 0.25s ease,
    text-shadow: 0 2px 8px rgba(52,152,219,0.2);
        box-shadow 0.3s ease,
        border-color 0.2s ease;
    border: 1px solid rgba(0,0,0,0.05);
}
}


.season-block:hover {
 
     transform: translateY(-4px);
/* 悬停时线条生长动画 */
     box-shadow: 0 8px 24px rgba(0,0,0,0.12);
.season-block:hover .decorative-line {
     border-color: rgba(0,0,0,0.15);
     height: 100%;
     opacity: 0.8;
     background-size: 100% 200%;
    animation: lineFlow 1.2s infinite linear;
}
}


/* 颜色系统动态增强 */
@keyframes lineFlow {
.color-system-1:hover::before {
    0% { background-position: 0 0; }
     filter: brightness(1.2);
     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; }


.color-system-2:hover::before {
/* 列表项悬停效果 */
     filter: saturate(1.5);
.season-block li {
    position: relative;
    padding-left: 12px;
     transition: transform 0.2s;
}
}


/* 列表项微交互 */
.season-block li::before {
.season-block li {
     content: "▶";
     transition: transform 0.2s ease;
    position: absolute;
     transform-origin: left;
    left: -15px;
    color: currentColor;
    opacity: 0;
     transition: all 0.3s;
}
}


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

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;
}