切換選單
1
2
12
鑽石託管 | DiamondHost WIKI
切換偏好設定選單
切換個人選單
尚未登入
若您做出任何編輯,會公開您的 IP 位址。

MediaWiki:Common.css:修訂間差異

MediaWiki介面頁面
Admin留言 | 貢獻
無編輯摘要
Admin留言 | 貢獻
無編輯摘要
第1行: 第1行:
/* --- 全局背景與字體設定 --- */
/* --- 1. 全局配置 --- */
body {
:root {
     background-color: #f4f7f9 !important; /* 全局淺灰背景,增加質感 */
     --brand-color: #007bff; /* 你的品牌主色 */
     font-family: "Inter", "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif !important;
     --bg-gray: #f9f9f9;
    --border-color: #e2e8f0;
}
}


/* --- 內容區域優化 (中間白色的部分) --- */
/* 移除 MediaWiki 預設的笨重外框 */
#content {
#content {
    background-color: #ffffff !important;
     border: none !important;
     border: 1px solid #e1e4e8 !important;
     background: white !important;
     border-radius: 8px !important;
     box-shadow: 0 4px 20px rgba(0,0,0,0.08);
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important; /* 增加懸浮感 */
     border-radius: 12px;
     padding: 2.5em !important;
     margin: 20px auto;
     margin-top: 10px !important;
    max-width: 1200px; /* 限制寬度,閱讀更舒適 */
    padding: 3em !important;
}
}


/* --- 首頁大標題樣式優化 --- */
/* --- 2. 標題與字體 --- */
#firstHeading {
body {
     border-bottom: 2px solid #007bff !important;
     font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
     font-size: 2.2em !important;
     background-color: var(--bg-gray) !important;
    color: #1a202c !important;
    font-weight: 700 !important;
    padding-bottom: 0.5em !important;
}
}


/* --- 頂部導覽列 (閱讀、編輯、檢視歷史) --- */
#firstHeading {
#p-views ul li {
    font-size: 2.5rem !important;
     background-color: transparent !important;
     font-weight: 800 !important;
     border: none !important;
     border: none !important;
    margin-bottom: 0.5em !important;
}
}


#p-views ul li a {
/* 在標題下方加一條漸層線 */
     color: #4a5568 !important;
#firstHeading::after {
     padding: 0.5em 1em !important;
     content: "";
     transition: all 0.2s ease;
    display: block;
    width: 60px;
    height: 5px;
    background: var(--brand-color);
     border-radius: 10px;
     margin-top: 10px;
}
}


#p-views ul li.selected a {
/* --- 3. 側邊導覽列大改 --- */
    color: #007bff !important;
    border-bottom: 2px solid #007bff !important;
    font-weight: bold !important;
}
 
/* --- 側邊欄 (Sidebar) 優化 --- */
#mw-panel {
#mw-panel {
     padding-top: 1em !important;
    width: 12em !important;
     padding-left: 20px !important;
}
}


#mw-panel .portal h3 {
#mw-panel .portal h3 {
     color: #2d3748 !important;
    background: none !important;
     font-weight: bold !important;
     color: #1a202c !important;
     font-weight: 700 !important;
     text-transform: uppercase;
     text-transform: uppercase;
    letter-spacing: 1px;
     font-size: 0.75rem !important;
     font-size: 0.85em !important;
}
}


#mw-panel .portal .body ul li a {
/* --- 4. 自訂組件(用於首頁與教學) --- */
     color: #4a5568 !important;
/* 卡片樣式 */
     font-size: 0.95em !important;
.mw-card {
     background: #ffffff;
    border: 1px solid var(--border-color);
     border-radius: 10px;
    padding: 20px;
    transition: transform 0.2s;
}
}
 
.mw-card:hover {
#mw-panel .portal .body ul li a:hover {
     transform: translateY(-5px);
     color: #007bff !important;
     box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    text-decoration: none !important;
}
 
/* --- 搜尋框優化 --- */
#searchInput {
    border-radius: 20px !important;
    border: 1px solid #cbd5e0 !important;
    padding: 5px 15px !important;
}
 
/* --- 全局表格與區塊 (承接上一次的優化) --- */
.wikitable {
    border-radius: 8px !important;
    overflow: hidden;
    border: none !important;
     box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
}


.wikitable th {
/* 專業側邊資訊欄 (Infobox) */
     background-color: #007bff !important;
.portable-infobox {
     border: none !important;
    float: right;
}
    width: 300px;
 
     background: #f8fafc;
/* 移除預設的頁底裝飾 */
     border: 1px solid var(--border-color);
#footer {
    border-top: 5px solid var(--brand-color);
     border: none !important;
     margin-left: 20px;
     background: transparent !important;
     padding: 15px;
     color: #718096 !important;
     border-radius: 4px;
}
}

2026年4月8日 (三) 19:50的版本

/* --- 1. 全局配置 --- */
:root {
    --brand-color: #007bff; /* 你的品牌主色 */
    --bg-gray: #f9f9f9;
    --border-color: #e2e8f0;
}

/* 移除 MediaWiki 預設的笨重外框 */
#content {
    border: none !important;
    background: white !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-radius: 12px;
    margin: 20px auto;
    max-width: 1200px; /* 限制寬度,閱讀更舒適 */
    padding: 3em !important;
}

/* --- 2. 標題與字體 --- */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    background-color: var(--bg-gray) !important;
}

#firstHeading {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    border: none !important;
    margin-bottom: 0.5em !important;
}

/* 在標題下方加一條漸層線 */
#firstHeading::after {
    content: "";
    display: block;
    width: 60px;
    height: 5px;
    background: var(--brand-color);
    border-radius: 10px;
    margin-top: 10px;
}

/* --- 3. 側邊導覽列大改 --- */
#mw-panel {
    width: 12em !important;
    padding-left: 20px !important;
}

#mw-panel .portal h3 {
    background: none !important;
    color: #1a202c !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 0.75rem !important;
}

/* --- 4. 自訂組件(用於首頁與教學) --- */
/* 卡片樣式 */
.mw-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.2s;
}
.mw-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

/* 專業側邊資訊欄 (Infobox) */
.portable-infobox {
    float: right;
    width: 300px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-top: 5px solid var(--brand-color);
    margin-left: 20px;
    padding: 15px;
    border-radius: 4px;
}