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

MediaWiki:Common.css:修订间差异

MediaWiki界面页面
撤销Zelda110讨论)的修订版本145
标签撤销
无编辑摘要
 
(未显示同一用户的65个中间版本)
第1行: 第1行:
/* ===== Hero (Apple-style) ===== */
.homepage-container {
.mw-hero {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    column-gap: 30px;
    row-gap: 10px;
     width: 100%;
     width: 100%;
     padding: 80px 20px;
    margin: 20px 0;
}
 
.homepage-left, .homepage-right {
    min-width: 0;
}
 
@media (max-width: 768px) {
 
  /* 单栏 */
  .homepage-container {
    grid-template-columns: 1fr !important;
  }
 
  /* 调换顺序:右栏在上,左栏在下 */
  .homepage-right {
    order: -1;
  }
 
  .homepage-left {
    order: 1;
  }
 
}
 
.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: 768px) {
 
  /* 主体两栏 → 单栏 */
  .homepage-container {
    grid-template-columns: 1fr !important;
  }
 
  /* 左右栏顺序:左在上,右在下 */
  .homepage-left,
  .homepage-right {
    width: 100%;
  }
 
 
 
  .hp-banner-info {
    align-items: center;
  }
 
  .hp-banner-title {
    font-size: 1.8em;
  }
 
 
  .hp-banner-stats {
    font-size: 0.85em;
  }
 
  .hp-nav-box {
     text-align: center;
     text-align: center;
     background: #f5f5f7;
    line-height: 1.8;
     border-radius: 24px;
  }
     margin-bottom: 40px;
 
  /* Featured 卡片:2列 → 1列 */
  .homepage-left > div:first-child > div {
    grid-template-columns: 1fr !important;
  }
 
  /* 卡片 padding 收紧 */
  .homepage-left > div,
  .homepage-right > div {
    padding: 16px !important;
  }
 
  /* 分类区 2×2 */
  .hp-cat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
 
  .hp-cat-item {
    font-size: 0.85em;
    padding: 12px 8px;
  }
 
  /* 字数统计缩小 */
  #wiki-wordcount-number {
    font-size: 2rem !important;
  }
 
.hp-banner {
        padding: 30px 20px !important;
        flex-direction: column !important;
        text-align: center;
    }
   
    .hp-banner-title {
        font-size: 2.8em !important; /* 标题保持足够大 */
        margin-bottom: 5px !important;
    }
   
    .hp-banner-subtitle {
        font-size: 1.1em !important;
        opacity: 0.9;
        margin-bottom: 1px !important;
    }
 
    .hp-banner-stats {
        margin: 15px 0 !important;
        font-size: 0.8em !important;
        background: rgba(255,255,255,0.1);
    }
 
 
    .hp-banner-nav {
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100%;
    }
 
    /* 手机端导航框:更窄、更透明,去除沉重感 */
    .hp-nav-box {
        padding: 10px !important;
        border-radius: 10px !important;
    }
   
    .hp-nav-box a {
        font-size: 0.9em !important;
        display: inline-block;
        margin: 4px 0;
    }
}
 
.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.4em;
    font-weight: 500;
    color: #555;
     margin-bottom: 8px;
}
 
/* 主数字主体 */
#wiki-wordcount-number {
    font-family: "Roboto Mono", "Courier New", monospace; /* 确保等宽数字 */
    font-size: 6rem;
    font-weight: 800;
   
    /* 精致渐变文字色 */
    background: linear-gradient(90deg, #0066FF, #33CCFF);
    -webkit-background-clip: text;
    background-clip: text; /* 标准写法 */
    color: transparent;    /* 让渐变可见 */
 
    /* 横向占更宽空间 */
    min-width: 18ch;        /* 至少 18 个字符宽 */
    letter-spacing: 0.06em;  /* 略宽字间 */
 
    white-space: nowrap;    /* 不换行 */
}
 
body.page-Monthly_Home .firstHeading {
    display: none !important;
}
 
body.page-Monthly_Home #siteSub {
    display: none !important;
}
}
.mw-hero-title {
 
     font-size: 48px;
/* 强制清除主页卡片内的所有 MediaWiki 默认边框和图标 */
     font-weight: 700;
.hp-clean-card, .hp-clean-card *, .hp-cat-item a {
     color: #1d1d1f;
     border: none !important;
     text-decoration: none !important;
     box-shadow: none;
}
}
.mw-hero-sub {
 
     margin-top: 10px;
/* 移除链接右侧的外部链接或分类图标 */
     font-size: 20px;
.hp-clean-card a.external, .hp-clean-card a.image, .hp-cat-item a {
    color: #6e6e73;
     background-image: none !important;
     padding-right: 0 !important;
}
}


/* ===== Grid Layout (Wikipedia-style) ===== */
/* 分类小卡片核心样式 */
.mw-main-grid {
.hp-cat-grid {
     display: grid;
     display: grid;
     grid-template-columns: 1fr 350px;
     grid-template-columns: 1fr 1fr;
     gap: 40px;
     gap: 12px;
     margin-bottom: 40px;
}
 
.hp-cat-item a {
    display: block !important; /* 让整个链接区域填满父容器 */
    padding: 15px 5px !important;
    border-radius: 10px !important;
    text-align: center !important;
    transition: all 0.3s ease;
    font-weight: bold;
}
 
/* 具体的卡片配色 */
.hp-cat-teacher a { background: #f0f7ff !important; color: #1e40af !important; }
.hp-cat-student a { background: #fff7ed !important; color: #9a3412 !important; }
.hp-cat-meme a    { background: #f0fdf4 !important; color: #166534 !important; }
.hp-cat-campus a  { background: #faf5ff !important; color: #6b21a8 !important; }
 
/* 悬停效果 */
.hp-cat-item a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    filter: brightness(0.95);
}
 
/* --- 明星編輯板塊精確美化 --- */
 
/* 1. 強力隱藏表頭行(等級/分數/頁面數量/修改次數/用戶名稱) */
.hp-scores-wrapper table.contributionscores tr.header,
.hp-scores-wrapper table.contributionscores th,
.hp-scores-wrapper .contributionscores-title,
.hp-scores-wrapper .citizen-overflow-nav {
    display: none !important;
}
 
/* 2. 重置容器結構 */
.hp-scores-wrapper .contributionscores-wrapper,
.hp-scores-wrapper .citizen-overflow-wrapper,
.hp-scores-wrapper .citizen-overflow-content,
.hp-scores-wrapper table.contributionscores {
    display: block !important;
    background: transparent !important;
    border: none !important;
     margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}
 
/* 3. 每一行的基礎樣式:取消背景、取消動畫 */
.hp-scores-wrapper table.contributionscores tbody {
    display: block !important;
}
 
.hp-scores-wrapper table.contributionscores tr {
    display: flex !important;
    align-items: center;
    padding: 10px 0 !important;
    background: transparent !important; /* 無背景 */
    border: none !important;
    border-bottom: 1px solid #edf2f7 !important; /* 僅保留下邊框分割線 */
    transition: none !important; /* 無懸停動畫 */
}
}


/* ===== Apple-style clickable cards ===== */
.hp-scores-wrapper table.contributionscores tr:last-child {
.mw-card {
     border-bottom: none !important;
    background: white;
    padding: 26px;
    border-radius: 22px;
     border: 1px solid #e5e5e5;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    margin-bottom: 24px;
    cursor: pointer;
    transition: all 0.25s ease;
}
}
.mw-card:hover {
 
     transform: translateY(-6px);
/* 4. 排名數字美化(圓圈標籤) */
     box-shadow: 0 12px 28px rgba(0,0,0,0.10);
.hp-scores-wrapper table.contributionscores td:nth-child(1) {
     border-color: #d0d0d5;
     width: 24px;
    height: 24px;
    min-width: 24px;
    display: flex !important;
    align-items: center;
     justify-content: center;
     border-radius: 50%;
    background: #edf2f7;
    color: #4a5568 !important;
    font-size: 0.85em;
    font-weight: bold;
    margin-right: 15px;
    padding: 0 !important;
    border: none !important;
}
}
.mw-card h2 {
 
     margin: 0 0 10px 0;
/* 5. 用戶名稱列:恢復原生連結樣式 */
     font-size: 24px;
.hp-scores-wrapper table.contributionscores td:nth-child(5) {
     font-weight: 600;
     flex: 1;
    padding: 0 !important;
    background: transparent !important;
     border: none !important;
     text-align: left !important;
}
}
.mw-card p {
 
     margin: 0;
/* 6. 修改次數:顯示在右側 */
     font-size: 16px;
.hp-scores-wrapper table.contributionscores td:nth-child(4) {
     color: #555;
     font-size: 0.8em;
     color: #a0aec0;
    padding: 0 !important;
    background: transparent !important;
     border: none !important;
}
}


/* ===== Right Column ===== */
.hp-scores-wrapper table.contributionscores td:nth-child(4)::after {
.mw-section h2 {
     content: " 次編輯";
    margin-bottom: 10px;
    font-size: 22px;
    border-bottom: 2px solid #eaeaea;
     padding-bottom: 4px;
}
}


/* ===== Mobile ===== */
/* 7. 隱藏不必要的數據列(分數與頁面數) */
@media (max-width: 900px) {
.hp-scores-wrapper table.contributionscores td:nth-child(2),
    .mw-main-grid {
.hp-scores-wrapper table.contributionscores td:nth-child(3) {
        grid-template-columns: 1fr;
    display: none !important;
    }
}
}