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

MediaWiki:Common.css:修订间差异

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


/* ========================================
/* ---------- 字数大显示区 ---------- */
  字数统计大板块 */
#wiki-wordcount {
#wiki-wordcount.stat-block {
     width: 100%;
     width: 100%;
     display: flex;
     display: flex;
    justify-content: center;
    align-items: center;
     flex-direction: column;
     flex-direction: column;
    align-items: center;
    justify-content: center;
     margin: 40px 0;
     margin: 40px 0;
     text-align: center;
     text-align: center;
     font-family: 'Segoe UI', sans-serif;
     font-family: 'Segoe UI', 'Arial', sans-serif;
}
}


/* “标签/描述”字体小一点但清晰 */
/* “标签/描述”更小 */
#wiki-wordcount.stat-block .stat-label {
#wiki-wordcount .stat-label {
     font-size: 1.4em;
     font-size: 1.2rem;
     font-weight: 500;
     font-weight: 500;
     color: #444;
     color: #555;
     margin-bottom: 6px;
     margin-bottom: 4px;
}
}


/* 数字主体更大、更霸气 */
/* 数字主体更霸气 */
#wiki-wordcount-number.stat-number {
#wiki-wordcount-number {
     font-size: 5.6em; /* 主体数字更大 */
     font-size: 6.2rem;           /* 更大更显眼 */
     font-weight: 900;
     font-weight: 900;
     width: 100%;         /* 横向撑满 */
      
     min-width: 14ch;     /* 固定最小宽度基于数字字符宽度 */
    /* 强制等宽数字(需要字体支持) */
     letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums; /* 让数字等宽 */ [oai_citation:2‡MDN 網頁文件](https://developer.mozilla.org/zh-CN/docs/Web/CSS/font-variant-numeric?utm_source=chatgpt.com)
   
    /* 定义最小宽度,保证位置横向占得足够 */
     min-width: 18ch;           /* 18 个数字宽度 */
     letter-spacing: 0.1em;       /* 适当字间距,撑开空间 */
   
     background: linear-gradient(90deg, #00CCFF, #FF69B4);
     background: linear-gradient(90deg, #00CCFF, #FF69B4);
     -webkit-background-clip: text;
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     -webkit-text-fill-color: transparent;
     text-shadow:
     text-shadow:
         0 0 8px rgba(0, 204, 255, 0.6),
         0 0 10px rgba(0, 204, 255, 0.6),
         0 0 20px rgba(255, 105, 180, 0.4);
         0 0 24px rgba(255, 105, 180, 0.4);
   
    white-space: nowrap; /* 不换行 */
}
}


/* 大屏的时候更显眼 */
/* 更大屏幕下的微调 */
@media screen and (min-width: 1200px) {
@media screen and (min-width: 1200px) {
     #wiki-wordcount-number.stat-number {
     #wiki-wordcount-number {
         font-size: 6.8em;
         font-size: 7.6rem;
         letter-spacing: 0.12em;
         letter-spacing: 0.12em;
        min-width: 20ch;
     }
     }
}
}

2026年1月17日 (六) 16:34的版本

.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: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-left: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding-left: 30px !important;
    margin-left: 20px !important;
    text-align: right !important;
}

.hp-banner-nav a {
    font-weight: bold;
    text-decoration: none !important;
}

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

.hp-nav-box {
    background: rgba(255, 255, 255, 0.85) !important;
    padding: 15px 20px !important;
    border-radius: 12px !important;
    display: inline-block !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    text-align: center !important;
}

.hp-nav-box {
    background: rgba(255, 255, 255, 0.85) !important;
    padding: 15px 20px !important;
    border-radius: 12px !important;
    display: inline-block !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    text-align: center !important;
    /* 核心修正:设置容器内普通文字颜色 */
    color: #1a3a6c !important; 
}

.hp-nav-box a {
    color: #1a3a6c !important;
    font-weight: bold !important;
    text-decoration: none !important;
    padding: 2px 5px;
}

.hp-nav-box a:hover {
    color: #2a5298 !important;
    text-decoration: underline !important;
    background: rgba(26, 58, 108, 0.05) !important;
    border-radius: 4px;
}

.hp-nav-box span.sep {
    color: #1a3a6c !important;
    margin: 0 4px;
}

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

.homepage-container .floatright {
    margin: 0 0 10px 15px !important;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.hp-news-bar {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #1a3a6c;
    padding: 10px 20px;
    margin-bottom: 25px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.hp-news-tag {
    background: #1a3a6c;
    color: white;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: bold;
    margin-right: 15px;
    white-space: nowrap;
}

.hp-news-content {
    font-size: 0.95em;
    color: #4a5568;
    flex: 1;
}

.hp-news-content a {
    color: #2a5298;
    font-weight: bold;
    text-decoration: none;
}

.hp-news-content a:hover {
    text-decoration: underline;
}

/* ---------- 字数大显示区 ---------- */
#wiki-wordcount {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 40px 0;
    text-align: center;
    font-family: 'Segoe UI', 'Arial', sans-serif;
}

/* “标签/描述”更小 */
#wiki-wordcount .stat-label {
    font-size: 1.2rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 4px;
}

/* 数字主体更霸气 */
#wiki-wordcount-number {
    font-size: 6.2rem;           /* 更大更显眼 */
    font-weight: 900;
    
    /* 强制等宽数字(需要字体支持) */
    font-variant-numeric: tabular-nums; /* 让数字等宽 */ [oai_citation:2‡MDN 網頁文件](https://developer.mozilla.org/zh-CN/docs/Web/CSS/font-variant-numeric?utm_source=chatgpt.com)
    
    /* 定义最小宽度,保证位置横向占得足够 */
    min-width: 18ch;            /* 18 个数字宽度 */
    letter-spacing: 0.1em;       /* 适当字间距,撑开空间 */
    
    background: linear-gradient(90deg, #00CCFF, #FF69B4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
        0 0 10px rgba(0, 204, 255, 0.6),
        0 0 24px rgba(255, 105, 180, 0.4);
    
    white-space: nowrap; /* 不换行 */
}

/* 更大屏幕下的微调 */
@media screen and (min-width: 1200px) {
    #wiki-wordcount-number {
        font-size: 7.6rem;
        letter-spacing: 0.12em;
        min-width: 20ch;
    }
}