打开/关闭菜单
46
56
27
964
武外梗百科
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

MediaWiki:Common.css:修订间差异

MediaWiki界面页面
无编辑摘要
无编辑摘要
第19行: 第19行:
}
}


/* 首页顶部横幅加固版 */
/* 现代渐变横幅样式 */
.hp-banner {
.hp-banner {
     display: flex !important;
     display: flex !important;
     justify-content: space-between;
     justify-content: space-between;
     align-items: center;
     align-items: center;
     background: #f8f9fa; /* 维基灰色背景 */
     /* 渐变背景:使用深蓝色调,呼应学术感 */
     border: 1px solid #a2a9b1; /* 维基标准边框色 */
     background: linear-gradient(135deg, #1a3a6c 0%, #2a5298 100%) !important;
     padding: 25px 35px !important;
    color: white !important; /* 强制文字白色 */
     margin: 10px 0 25px 0 !important;
     padding: 35px 45px !important;
     border-radius: 2px;
     margin: 10px 0 30px 0 !important;
     box-shadow: 0 1px 4px rgba(0,0,0,0.05);
     border-radius: 12px !important; /* 更圆润的角 */
    border: none !important;
     box-shadow: 0 8px 20px rgba(26, 58, 108, 0.2) !important;
    position: relative;
    overflow: hidden;
}
 
/* 装饰性光晕效果 */
.hp-banner::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}
}


.hp-banner-info {
.hp-banner-info {
     flex: 2;
     flex: 2;
    z-index: 1; /* 确保文字在光晕上方 */
}
}


.hp-banner-title {
.hp-banner-title {
     font-size: 2.2em !important;
     font-size: 2.5em !important;
     font-family: "Linux Libertine", "Georgia", "Times", serif;
     font-family: "Linux Libertine", "Georgia", "Times", serif;
     font-weight: normal;
     font-weight: bold !important;
     color: #000;
     color: #ffffff !important;
     margin: 0 0 8px 0 !important;
     margin: 0 0 10px 0 !important;
     border: none !important; /* 移除可能的默认标题下划线 */
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
     border: none !important;
}
}


.hp-banner-subtitle {
.hp-banner-subtitle {
     font-size: 1.1em;
     font-size: 1.2em !important;
     color: #54595d;
     color: rgba(255, 255, 255, 0.9) !important;
     margin-bottom: 8px;
     margin-bottom: 12px !important;
    font-weight: 300;
}
}


.hp-banner-stats {
.hp-banner-stats {
     font-size: 0.9em;
     font-size: 0.95em !important;
     color: #72777d;
    background: rgba(0, 0, 0, 0.2);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
     color: rgba(255, 255, 255, 0.8) !important;
}
}


第59行: 第83行:
     flex: 1;
     flex: 1;
     text-align: right;
     text-align: right;
     border-left: 1px solid #c8ccd1;
     border-left: 1px solid rgba(255, 255, 255, 0.2) !important;
     padding-left: 25px;
     padding-left: 30px;
     line-height: 1.8;
     line-height: 2;
    z-index: 1;
}
 
/* 调整 Banner 内部链接颜色 */
.hp-banner-nav a {
    color: #ffd700 !important; /* 金黄色链接,突出重点 */
    font-weight: bold;
    text-decoration: none !important;
}
 
.hp-banner-nav a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}
}


/* 手机端横幅适配 */
/* 手机端适配 */
@media (max-width: 850px) {
@media (max-width: 850px) {
     .hp-banner {
     .hp-banner {
        padding: 30px 20px !important;
         flex-direction: column;
         flex-direction: column;
         text-align: center;
         text-align: center;
        padding: 20px !important;
     }
     }
     .hp-banner-nav {
     .hp-banner-nav {
         border-left: none;
         border-left: none !important;
         border-top: 1px solid #c8ccd1;
         border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
         margin-top: 15px;
         margin-top: 20px;
         padding: 15px 0 0 0;
         padding: 20px 0 0 0 !important;
         text-align: center;
         text-align: center;
         width: 100%;
         width: 100%;
     }
     }
}
}

2025年12月21日 (日) 19:05的版本

.homepage-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr; /* 强制平分两列 */
    column-gap: 30px;
    row-gap: 10px;
    width: 100%;
    margin: 20px 0;
}

.homepage-left, .homepage-right {
    min-width: 0; /* 防止内容撑破网格 */
}

/* 移动端自动转为单栏 */
@media (max-width: 768px) {
    .homepage-container {
        grid-template-columns: 1fr;
    }
}

/* 现代渐变横幅样式 */
.hp-banner {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    /* 渐变背景:使用深蓝色调,呼应学术感 */
    background: linear-gradient(135deg, #1a3a6c 0%, #2a5298 100%) !important;
    color: white !important; /* 强制文字白色 */
    padding: 35px 45px !important;
    margin: 10px 0 30px 0 !important;
    border-radius: 12px !important; /* 更圆润的角 */
    border: none !important;
    box-shadow: 0 8px 20px rgba(26, 58, 108, 0.2) !important;
    position: relative;
    overflow: hidden;
}

/* 装饰性光晕效果 */
.hp-banner::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.hp-banner-info {
    flex: 2;
    z-index: 1; /* 确保文字在光晕上方 */
}

.hp-banner-title {
    font-size: 2.5em !important;
    font-family: "Linux Libertine", "Georgia", "Times", serif;
    font-weight: bold !important;
    color: #ffffff !important;
    margin: 0 0 10px 0 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border: none !important;
}

.hp-banner-subtitle {
    font-size: 1.2em !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 12px !important;
    font-weight: 300;
}

.hp-banner-stats {
    font-size: 0.95em !important;
    background: rgba(0, 0, 0, 0.2);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.8) !important;
}

.hp-banner-nav {
    flex: 1;
    text-align: right;
    border-left: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding-left: 30px;
    line-height: 2;
    z-index: 1;
}

/* 调整 Banner 内部链接颜色 */
.hp-banner-nav a {
    color: #ffd700 !important; /* 金黄色链接,突出重点 */
    font-weight: bold;
    text-decoration: none !important;
}

.hp-banner-nav a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

/* 手机端适配 */
@media (max-width: 850px) {
    .hp-banner {
        padding: 30px 20px !important;
        flex-direction: column;
        text-align: center;
    }
    .hp-banner-nav {
        border-left: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
        margin-top: 20px;
        padding: 20px 0 0 0 !important;
        text-align: center;
        width: 100%;
    }
}