跳至內容

MediaWiki:Mobile.css:修訂間差異

出自zine-tw.com
BraveYe留言 | 貢獻
建立內容為「========================================== MinervaNeue 訪客全站強制深色模式修正 ==========================================:​ body.mw-anon, body.mw-anon html { background-color: #101418 !important; 強制網頁最底層、最左最右側全變黑:​ color: #eaecf0 !important; } 1. 修正頂部選單左邊、頭像右邊的白底(Header 容器與頂部條):​ body.mw-anon .header-container, body.mw-anon .header, body.m…」的新頁面
 
BraveYe留言 | 貢獻
無編輯摘要
標籤行動版編輯 行動版網頁編輯 進階行動版編輯
第1行: 第1行:
/* ==========================================
/* ==========================================
   MinervaNeue 訪客全站強制深色模式修正
   MediaWiki 1.47+ MinervaNeue 訪客全深色修正
   ========================================== */
   ========================================== */


body.mw-anon,
/* 1. 全域最底層與 HTML 根節點(徹底消滅寬螢幕下的最左、最右白邊) */
body.mw-anon html {
html.skin-minervaneue body.mw-anon,
     background-color: #101418 !important; /* 強制網頁最底層、最左最右側全變黑 */
html.skin-minervaneue.mw-anon,
body.mw-anon #mw-mf-page-center,
body.mw-anon .mw-page-container {
     background-color: #101418 !important; /* 核心深黑色 */
     color: #eaecf0 !important;
     color: #eaecf0 !important;
}
}


/* 1. 修正頂部選單左邊、頭像右邊的白底(Header 容器與頂部條) */
/* 2. 修正頂部列(左上角選單外側、右上角頭像外側) */
body.mw-anon .header-container,
body.mw-anon .header-container,
body.mw-anon .header,
body.mw-anon header.header,
body.mw-anon #mw-mf-page-center {
body.mw-anon .branding-box {
     background-color: #1a1f26 !important; /* 頂部條深灰色 */
     background-color: #1a1f26 !important; /* 頂部條深灰色 */
     box-shadow: 0 1px 1px rgba(0,0,0,0.5) !important; /* 移除原本顯眼的白色陰影 */
    background: #1a1f26 !important;
    border-bottom: 1px solid #30363d !important;
     box-shadow: none !important; /* 移除原本露出的白色陰影 */
}
}


/* 2. 修正頁尾區塊(檢視此頁面的編輯歷史、隱私權政策、免責聲明等整個底座) */
/* 3. 修正頁尾區塊(編輯歷史、隱私權政策、免責聲明等整個大底座) */
body.mw-anon .footer {
body.mw-anon footer.footer,
     background-color: #161b22 !important; /* 頁尾深色背景 */
body.mw-anon .footer-container,
     color: #8b949e !important;           /* 頁尾文字調暗 */
body.mw-anon #footer {
     background-color: #101418 !important; /* 與最底層同色,使其融為一體 */
    background: #101418 !important;
     color: #8b949e !important;
     border-top: 1px solid #30363d !important;
     border-top: 1px solid #30363d !important;
}
}


/* 3. 修正頁尾內部的歷史紀錄連結、隱私權、關於本站的超連結顏色 */
/* 4. 修正頁尾內部的文字、編輯歷史連結與隱私權排版 */
body.mw-anon .footer a,
body.mw-anon .footer .post-content,
body.mw-anon .footer-info,
body.mw-anon .footer-places,
body.mw-anon .footer-places a {
body.mw-anon .footer-info {
     color: #58a6ff !important;
    background-color: transparent !important; /* 消除內層潛在白底 */
     color: #8b949e !important;
}
}
body.mw-anon .footer a:visited {
 
     color: #bc8cff !important;
/* 5. 確保超連結在深色背景下的易讀性 */
body.mw-anon a {
     color: #58a6ff !important; /* 改為溫和的暗式亮藍色,不刺眼 */
}
}
 
body.mw-anon a:visited {
/* 4. 修正搜尋欄(若訪客點擊搜尋時周圍露出白底) */
     color: #bc8cff !important; /* 已造訪的連結改為淡紫色 */
body.mw-anon .search-box .search {
}
     background-color: #21262d !important;
body.mw-anon a.new {
     color: #c9d1d9 !important;
     color: #ff7b72 !important; /* 紅字連結改為淡紅色 */
    border: 1px solid #30363d !important;
}
}

2026年9月15日 (二) 03:05的版本

/* ==========================================
   MediaWiki 1.47+ MinervaNeue 訪客全深色修正
   ========================================== */

/* 1. 全域最底層與 HTML 根節點(徹底消滅寬螢幕下的最左、最右白邊) */
html.skin-minervaneue body.mw-anon,
html.skin-minervaneue.mw-anon,
body.mw-anon #mw-mf-page-center,
body.mw-anon .mw-page-container {
    background-color: #101418 !important; /* 核心深黑色 */
    color: #eaecf0 !important;
}

/* 2. 修正頂部列(左上角選單外側、右上角頭像外側) */
body.mw-anon .header-container,
body.mw-anon header.header,
body.mw-anon .branding-box {
    background-color: #1a1f26 !important; /* 頂部條深灰色 */
    background: #1a1f26 !important;
    border-bottom: 1px solid #30363d !important;
    box-shadow: none !important; /* 移除原本露出的白色陰影 */
}

/* 3. 修正頁尾區塊(編輯歷史、隱私權政策、免責聲明等整個大底座) */
body.mw-anon footer.footer,
body.mw-anon .footer-container,
body.mw-anon #footer {
    background-color: #101418 !important; /* 與最底層同色,使其融為一體 */
    background: #101418 !important;
    color: #8b949e !important;
    border-top: 1px solid #30363d !important;
}

/* 4. 修正頁尾內部的文字、編輯歷史連結與隱私權排版 */
body.mw-anon .footer .post-content,
body.mw-anon .footer-places,
body.mw-anon .footer-info {
    background-color: transparent !important; /* 消除內層潛在白底 */
    color: #8b949e !important;
}

/* 5. 確保超連結在深色背景下的易讀性 */
body.mw-anon a {
    color: #58a6ff !important; /* 改為溫和的暗式亮藍色,不刺眼 */
}
body.mw-anon a:visited {
    color: #bc8cff !important; /* 已造訪的連結改為淡紫色 */
}
body.mw-anon a.new {
    color: #ff7b72 !important; /* 紅字連結改為淡紅色 */
}