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

MediaWiki:Common.css:修訂間差異

MediaWiki介面頁面
Admin留言 | 貢獻
建立內容為「--- 專業 Minecraft 託管 Wiki 主題設定 ---:​ 1. 字體與基礎背景設定:​ body { font-family: "Inter", "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif; line-height: 1.6; color: #333; } 2. 標題樣式 - 增加科技感邊框:​ h1, h2 { border-bottom: 2px solid #007bff; 託管商常用的科技藍:​ padding-bottom: 0.3em; font-weight: 600; } h3 { color: #2c3e50; font-weight: 600; } /*…」的新頁面
 
Admin留言 | 貢獻
無編輯摘要
第1行: 第1行:
/* --- 專業 Minecraft 託管 Wiki 主題設定 --- */
/* --- 全局背景與字體設定 --- */
 
/* 1. 字體與基礎背景設定 */
body {
body {
     font-family: "Inter", "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif;
    background-color: #f4f7f9 !important; /* 全局淺灰背景,增加質感 */
    line-height: 1.6;
     font-family: "Inter", "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif !important;
    color: #333;
}
}


/* 2. 標題樣式 - 增加科技感邊框 */
/* --- 內容區域優化 (中間白色的部分) --- */
h1, h2 {
#content {
     border-bottom: 2px solid #007bff; /* 託管商常用的科技藍 */
    background-color: #ffffff !important;
     padding-bottom: 0.3em;
     border: 1px solid #e1e4e8 !important;
     font-weight: 600;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important; /* 增加懸浮感 */
     padding: 2.5em !important;
     margin-top: 10px !important;
}
}


h3 {
/* --- 首頁大標題樣式優化 --- */
     color: #2c3e50;
#firstHeading {
     font-weight: 600;
    border-bottom: 2px solid #007bff !important;
    font-size: 2.2em !important;
     color: #1a202c !important;
     font-weight: 700 !important;
    padding-bottom: 0.5em !important;
}
}


/* 3. 程式碼區塊 - 針對 Linux 指令與設定檔優化 */
/* --- 頂部導覽列 (閱讀、編輯、檢視歷史) --- */
code {
#p-views ul li {
     background-color: #f8f9fa;
     background-color: transparent !important;
     border: 1px solid #eaecf0;
     border: none !important;
    border-radius: 3px;
    padding: 0.2em 0.4em;
    font-family: "JetBrains Mono", "Cascadia Code", monospace;
    color: #e83e8c; /* 突顯指令內容 */
}
}


pre {
#p-views ul li a {
     background-color: #2d2d2d; /* 深色背景更像終端機 */
     color: #4a5568 !important;
    color: #f8f8f2;
     padding: 0.5em 1em !important;
    border-left: 5px solid #007bff;
     transition: all 0.2s ease;
     padding: 15px;
     overflow: auto;
    border-radius: 4px;
    line-height: 1.45;
}
}


/* 4. 專業提示框 (Infobox & Message Boxes) */
#p-views ul li.selected a {
/* 用於顯示:警告、建議、安裝步驟 */
     color: #007bff !important;
.message-box {
     border-bottom: 2px solid #007bff !important;
     padding: 12px 20px;
     font-weight: bold !important;
     margin-bottom: 16px;
    border-left: 6px solid;
     border-radius: 4px;
    background-color: #fdfdfe;
}
}


.box-info {
/* --- 側邊欄 (Sidebar) 優化 --- */
    border-color: #17a2b8;
#mw-panel {
     background-color: #d1ecf1;
     padding-top: 1em !important;
    color: #0c5460;
}
}


.box-warning {
#mw-panel .portal h3 {
     border-color: #ffc107;
     color: #2d3748 !important;
     background-color: #fff3cd;
    font-weight: bold !important;
     color: #856404;
    text-transform: uppercase;
     letter-spacing: 1px;
     font-size: 0.85em !important;
}
}


.box-danger {
#mw-panel .portal .body ul li a {
     border-color: #dc3545;
     color: #4a5568 !important;
     background-color: #f8d7da;
     font-size: 0.95em !important;
    color: #721c24;
}
}


/* 5. 表格樣式 - 用於比較方案或規格 */
#mw-panel .portal .body ul li a:hover {
.wikitable {
     color: #007bff !important;
     border-collapse: collapse;
     text-decoration: none !important;
    margin: 1em 0;
     width: 100%;
}
}


.wikitable th {
/* --- 搜尋框優化 --- */
     background-color: #007bff !important;
#searchInput {
     color: #ffffff !important;
     border-radius: 20px !important;
    font-weight: bold;
     border: 1px solid #cbd5e0 !important;
    text-align: left;
     padding: 5px 15px !important;
     padding: 10px !important;
}
}


.wikitable td {
/* --- 全局表格與區塊 (承接上一次的優化) --- */
     padding: 10px !important;
.wikitable {
     border: 1px solid #dee2e6 !important;
     border-radius: 8px !important;
    overflow: hidden;
     border: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
}


.wikitable tr:nth-child(even) {
.wikitable th {
     background-color: #f8f9fa;
     background-color: #007bff !important;
}
     border: none !important;
 
/* 6. 側邊欄與導覽優化 */
#mw-panel .portal h3 {
     font-size: 0.9em;
    text-transform: uppercase;
    color: #6c757d;
}
 
/* 7. 修改連結顏色 - 避免過於鮮豔的藍色 */
a {
    color: #0056b3;
}
}


a:visited {
/* 移除預設的頁底裝飾 */
     color: #6610f2;
#footer {
    border: none !important;
    background: transparent !important;
     color: #718096 !important;
}
}
/* 8. 針對 Minecraft 元素 (如顏色代碼) 的小工具 */
.mc-color-green { color: #55FF55; }
.mc-color-red { color: #FF5555; }
.mc-color-gold { color: #FFAA00; }

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

/* --- 全局背景與字體設定 --- */
body {
    background-color: #f4f7f9 !important; /* 全局淺灰背景,增加質感 */
    font-family: "Inter", "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif !important;
}

/* --- 內容區域優化 (中間白色的部分) --- */
#content {
    background-color: #ffffff !important;
    border: 1px solid #e1e4e8 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important; /* 增加懸浮感 */
    padding: 2.5em !important;
    margin-top: 10px !important;
}

/* --- 首頁大標題樣式優化 --- */
#firstHeading {
    border-bottom: 2px solid #007bff !important;
    font-size: 2.2em !important;
    color: #1a202c !important;
    font-weight: 700 !important;
    padding-bottom: 0.5em !important;
}

/* --- 頂部導覽列 (閱讀、編輯、檢視歷史) --- */
#p-views ul li {
    background-color: transparent !important;
    border: none !important;
}

#p-views ul li a {
    color: #4a5568 !important;
    padding: 0.5em 1em !important;
    transition: all 0.2s ease;
}

#p-views ul li.selected a {
    color: #007bff !important;
    border-bottom: 2px solid #007bff !important;
    font-weight: bold !important;
}

/* --- 側邊欄 (Sidebar) 優化 --- */
#mw-panel {
    padding-top: 1em !important;
}

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

#mw-panel .portal .body ul li a {
    color: #4a5568 !important;
    font-size: 0.95em !important;
}

#mw-panel .portal .body ul li a:hover {
    color: #007bff !important;
    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 {
    background-color: #007bff !important;
    border: none !important;
}

/* 移除預設的頁底裝飾 */
#footer {
    border: none !important;
    background: transparent !important;
    color: #718096 !important;
}