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

MediaWiki:Common.css:修订间差异

MediaWiki界面页面
无编辑摘要
无编辑摘要
 
(未显示同一用户的38个中间版本)
第1行: 第1行:
.mw-hero {
.homepage-container {
  text-align: center;
    display: grid !important;
  padding: 80px 20px 60px;
    grid-template-columns: 1fr 1fr;
  background: linear-gradient(135deg, #e6ecff, #ffffff 40%);
    column-gap: 30px;
  border-radius: 20px;
    row-gap: 10px;
  margin-bottom: 40px;
    width: 100%;
    margin: 20px 0;
}
}


.mw-hero-title {
.homepage-left, .homepage-right {
  font-size: 3rem;
    min-width: 0;
  font-weight: 700;
  margin-bottom: 10px;
}
}


.mw-hero-sub {
@media (max-width: 768px) {
  font-size: 1.3rem;
    .homepage-container {
  color: #555;
        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;
}


.mw-home-container {
.hp-banner-info {
  display: flex;
    flex: 2;
  gap: 30px;
    z-index: 1;
  align-items: flex-start;
  margin-top: 20px;
}
}


.mw-left {
.hp-banner-title {
  flex: 2;
    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;
}
}


.mw-right {
.hp-banner-subtitle {
  flex: 1;
    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 {
* Info Panel(右侧栏)Wikipedia 风
    flex: 0 0 auto !important;
*****************************/
    display: flex !important;
.mw-panel {
    align-items: center !important;
  background: #fff;
    justify-content: center !important;
  padding: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 14px;
    padding-left: 30px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    margin-left: 20px !important;
  margin-bottom: 20px;
    text-align: right !important;
}
}


.mw-panel h2 {
.hp-banner-nav a {
  margin-top: 0;
    font-weight: bold;
  border-bottom: 1px solid #eee;
    text-decoration: none !important;
  padding-bottom: 8px;
  margin-bottom: 12px;
}
}


.mw-panel-content {
.hp-banner-nav a:hover {
  font-size: 0.95rem;
    color: #ffffff !important;
  line-height: 1.4;
    text-decoration: underline !important;
}
}


.mw-panel-content ul {
.hp-nav-box {
  margin: 0;
    background: rgba(255, 255, 255, 0.85) !important;
  padding-left: 18px;
    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;
}


.mw-card {
.hp-nav-box a {
  padding: 18px;
    color: #1a3a6c !important;
  border-radius: 16px;
    font-weight: bold !important;
  background: white;
    text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 2px 5px;
  margin-bottom: 18px;
  cursor: pointer;
  transition: 0.2s;
}
}


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


.mw-card-title {
.hp-nav-box span.sep {
  font-size: 1.3em;
    color: #1a3a6c !important;
  font-weight: bold;
    margin: 0 4px;
  margin-bottom: 6px;
}
}


.mw-card-desc {
@media (max-width: 850px) {
  font-size: 0.9em;
    .hp-banner {
  color: #555;
        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%;
    }
}
}


.fa-box {
.homepage-container .floatright {
  background: #ffffff;
    margin: 0 0 10px 15px !important;
  padding: 28px;
    border-radius: 4px;
  border-radius: 18px;
    overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
  margin-bottom: 30px;
}
}


.fa-title {
.hp-news-bar {
  font-size: 20px;
    display: flex;
  font-weight: 700;
    align-items: center;
  color: #555;
    background: #fff;
  margin-bottom: 10px;
    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);
}
}


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


.fa-extract {
.hp-news-content {
  color: #555;
    font-size: 0.95em;
  font-size: 16px;
    color: #4a5568;
  line-height: 1.6;
    flex: 1;
  margin-bottom: 15px;
}
}


.fa-link a {
.hp-news-content a {
  font-size: 16px;
    color: #2a5298;
  text-decoration: none;
    font-weight: bold;
  padding: 8px 14px;
    text-decoration: none;
  background: #f0f0f5;
  border-radius: 10px;
  transition: 0.2s;
  color: #333;
}
}


.fa-link a:hover {
.hp-news-content a:hover {
  background: #e6e6ee;
    text-decoration: underline;
}
}


@media (max-width: 900px) {
/* 统计字数板块容器 */
  .mw-home-container {
#wiki-wordcount {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
     flex-direction: column;
     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;
}
}

2026年1月27日 (二) 05:19的最新版本

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