回退到完工版

出自尘月维基
Admin​(留言 | 貢獻)2026年10月31日 (六) 14:13的修訂
(差異) ←上個修訂 | 最新修訂 (差異) | 下個修訂→ (差異)
跳至導覽 跳至搜尋

/* ===== 塵月維基 · 黑頂欄 / 白側欄 / 白底 / 紫橫幅 + 紫標題條(全部直角) ===== */

root {

--wiki-purple: #6b3fa0; --wiki-purple-deep: #5a2f8f; --wiki-border: #e0d5f0; }

/* 全站白底 */ body,

  1. mw-wrapper,
  2. mw-content-container,
  3. mw-content-block,
  4. mw-content-wrapper,
  5. content,

.mw-body,

  1. mw-data-after-content {

background: #ffffff !important; }

/* 固定設計寬度 1120:電腦居中顯示;手機由 viewport 固定寬度整頁等比縮放,兩端布局完全一致 */

  1. mw-wrapper {

width: 1120px !important; min-width: 1120px !important; max-width: 1120px !important; margin: 0 auto !important; padding: 0 18px !important; box-sizing: border-box !important; }

/* 頂欄黑色 */

  1. mw-header-container,
  2. mw-header,
  3. mw-header-hack {

background: #141414 !important; border-color: #141414 !important; }

  1. mw-header a,
  2. mw-header-container a,
  3. mw-header-hack a,
  4. user-tools a,
  5. p-personal li a,
  6. mw-header .mw-logo-wordmark { color: #ffffff !important; }
  7. mw-header .mw-logo-tagline { color: #c9b8e6 !important; }
  8. searchInput { color: #fff !important; }

/* 左側欄白色 */

  1. mw-site-navigation,
  2. mw-related-navigation {

background: #ffffff !important; border: none !important; }

/* 側欄頂部 logo 隱去(頂欄已顯示站點名,與參考圖一致) */

  1. p-logo { display: none !important; }

/* 隱藏分類行,保持頁面乾淨 */

  1. mw-normal-catlinks { display: none !important; }

/* 空工具箱塊隱藏(p-tb 為空時留下的小空殼) */

  1. p-tb,
  2. site-tools { display: none !important; }

/* 頁腳鏈接加深,避免淡到看不清 */

  1. mw-footer a,

.mw-footer a { color: #6b3fa0 !important; }

  1. mw-footer,

.mw-footer { color: #777777 !important; }

  1. mw-site-navigation a,
  2. mw-related-navigation a { color: var(--wiki-purple) !important; }
  3. mw-site-navigation h3,
  4. mw-related-navigation h3 {

color: var(--wiki-purple-deep) !important; border-bottom: 1px solid var(--wiki-border) !important; }

/* 頂部歡迎橫幅:紫色實色、圓角、柔和投影 */ .site-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--wiki-purple) !important; color: #fff; border-radius: 10px !important; padding: 16px 22px; margin-bottom: 16px; box-shadow: 0 3px 12px rgba(90, 47, 143, 0.20); } .banner-text { flex: 1 1 auto; } .banner-title { font-size: 24px; font-weight: 700; letter-spacing: 0; line-height: 1.3; } .banner-sub { font-size: 13px; opacity: .95; margin-top: 6px; line-height: 1.6; } .banner-logo { flex: 0 0 auto; width: 78px; height: 78px; background-image: url(/logo.jpg); background-size: contain; background-repeat: no-repeat; background-position: center; border-radius: 0 !important; }

/* 板塊:白底 + 細邊框 + 圓角 + 柔和陰影 */ .block { background: #ffffff !important; border: 1px solid var(--wiki-border) !important; border-radius: 8px !important; overflow: hidden; margin-bottom: 16px; box-shadow: 0 3px 10px rgba(80, 45, 135, 0.14); color: #222222; }

/* 板塊標題條:紫色、白字、居中、頂部圓角(頁面上唯一帶色的區塊之一) */ .block-title { background: var(--wiki-purple) !important; color: #ffffff; text-align: center; font-size: 16px; font-weight: 700; letter-spacing: 1px; padding: 10px 0; border-bottom: none; border-radius: 7px 7px 0 0; }

.block-body { padding: 16px 18px; line-height: 1.8; color: #333333; background: #ffffff; }

/* 兩列並排:不做斷點重排,手機端靠整頁縮放保持同一布局 */ .card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; } .card-row .block { margin-bottom: 0; }

/* 隱藏「外觀/參數設置」等默認菜單,無入口按鈕 */

  1. pt-preferences,
  2. pt-watchlist,
  3. pt-mycontris,
  4. vector-appearance-pinned-container,
  5. vector-appearance-unpinned-container { display: none !important; }

/* 固定三欄布局:無視皮膚自身斷點(851/1100/1340),手機縮放後與電腦完全一致 */

  1. mw-content-block {

display: flex !important; align-items: flex-start !important; clear: both !important; max-width: none !important; }

  1. mw-site-navigation {

order: 1; flex: 0 0 186px !important; width: 186px !important; position: static !important; display: block !important; margin: 0 !important; padding: 14px 10px 14px 0 !important; border-right: 1px solid var(--wiki-border); }

  1. mw-content-wrapper {

order: 2; flex: 1 1 auto !important; min-width: 0 !important; } /* 右側欄(頁面工具/更多)隱藏,與參考圖一致:只有左欄 + 內容 */

  1. mw-related-navigation { display: none !important; }
  2. mw-content { margin-top: 0 !important; }

/* 側欄內容常顯,不被摺疊成下拉 */

  1. mw-site-navigation .sidebar-inner,
  2. mw-related-navigation .sidebar-inner,
  3. mw-site-navigation .dropdown,
  4. mw-related-navigation .dropdown {

display: block !important; position: static !important; box-shadow: none !important; background: #ffffff !important; padding: 0 !important; margin: 0 !important; max-width: none !important; min-width: 0 !important; overflow: visible !important; }

/* 隱藏摺疊按鈕、裝飾彩條、頁腳 MediaWiki 圖標 */

  1. mw-header-hack,
  2. mw-header-nav-hack,

.color-bar, .color-middle-container, .color-left, .color-middle, .color-right,

  1. site-navigation h2,
  2. site-tools h2,
  3. user-tools h2,
  4. footer-icons { display: none !important; }

/* 頁腳:僅一條淺灰分隔線,無彩色條 */

  1. mw-content-container { border-bottom: 0 !important; background: #ffffff !important; }
  2. mw-footer,

.mw-footer, .mw-footer-container { background: #ffffff !important; border-top: 1px solid #eeeeee !important; box-shadow: none !important; }

  1. footer-poweredbyico { display: none !important; }

/* 頁面大標題下劃線改淺灰 */

  1. firstHeading,

h1.firstHeading { border-bottom: 1px solid #e6e6e6 !important; color: #222222 !important; font-weight: 500 !important; margin-bottom: 6px !important; }

/* 左側欄文字尺寸 */

  1. mw-site-navigation ul {

margin: 0 0 12px 0 !important; padding-left: 0 !important; list-style: none; }

  1. mw-site-navigation li { font-size: 13px; line-height: 1.9; white-space: nowrap; }
  2. mw-site-navigation h3 { font-size: 13px; letter-spacing: 0; margin: 0 0 6px; padding-bottom: 4px; }

/* 隱藏頁腳 MediaWiki 品牌 */

  1. footer-poweredby,
  2. f-poweredbyimg { display: none !important; }