MediaWiki:Common.css:修訂間差異
外觀
建立基礎頁面 |
建立基礎頁面 |
||
| 第1行: | 第1行: | ||
/* ===================================================================== | /* ===================================================================== | ||
To Shing S2 Wiki — 共同樣式 (Wikipedia / 香港鐵路大典 風格) | |||
===================================================================== */ | ===================================================================== */ | ||
| 第14行: | 第14行: | ||
color: #202122; | color: #202122; | ||
font-size: 88%; | font-size: 88%; | ||
line-height: 1. | line-height: 1.55; | ||
width: | width: 24em; | ||
max-width: 100%; | max-width: 100%; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
| 第25行: | 第25行: | ||
font-weight: bold; | font-weight: bold; | ||
text-align: center; | text-align: center; | ||
padding: 0. | padding: 0.35em 0.4em; | ||
border: 1px solid #a2b6d4; | border: 1px solid #a2b6d4; | ||
} | |||
.infobox-en { | |||
text-align: center; | |||
font-size: 90%; | |||
color: #54595d; | |||
padding: 0.2em 0.4em; | |||
} | } | ||
.infobox-image { | .infobox-image { | ||
| 第43行: | 第49行: | ||
font-weight: bold; | font-weight: bold; | ||
vertical-align: top; | vertical-align: top; | ||
width: | width: 36%; | ||
padding: 0.2em 0.5em; | padding: 0.2em 0.5em; | ||
} | } | ||
| 第49行: | 第55行: | ||
vertical-align: top; | vertical-align: top; | ||
padding: 0.2em 0.5em; | padding: 0.2em 0.5em; | ||
} | |||
.infobox-map { | |||
background-color: #ffffff; | |||
text-align: center; | |||
padding: 0.4em; | |||
} | |||
.infobox-color { | |||
display: inline-block; | |||
width: 1.1em; | |||
height: 1.1em; | |||
border: 1px solid #72777d; | |||
vertical-align: middle; | |||
margin-right: 0.3em; | |||
} | |||
/* ---------- route map placeholder ---------- */ | |||
.routemap-placeholder { | |||
border: 2px dashed #a2a9b1; | |||
border-radius: 4px; | |||
background-color: #f1f4f8; | |||
min-height: 300px; | |||
display: flex; | |||
flex-direction: column; | |||
align-items: center; | |||
justify-content: center; | |||
padding: 1em; | |||
color: #72777d; | |||
text-align: center; | |||
} | |||
.routemap-placeholder-title { | |||
font-weight: bold; | |||
font-size: 115%; | |||
color: #54595d; | |||
margin-bottom: 0.4em; | |||
} | |||
.routemap-placeholder-body { | |||
font-size: 92%; | |||
line-height: 1.7; | |||
} | |||
/* ---------- fictional history / todo markers ---------- */ | |||
.fictional-history { | |||
background-color: #fff4e5; | |||
border: 1px solid #f0b429; | |||
color: #8a4b00; | |||
padding: 0 0.25em; | |||
border-radius: 2px; | |||
font-size: 92%; | |||
} | |||
.todo-placeholder { | |||
color: #b32424; | |||
font-style: italic; | |||
} | |||
/* ---------- inline line badges ---------- */ | |||
.line-badge { | |||
padding: 0 0.35em; | |||
border-radius: 2px; | |||
font-weight: bold; | |||
white-space: nowrap; | |||
} | |||
.line-badge a { | |||
color: #ffffff !important; | |||
font-weight: bold; | |||
text-decoration: none; | |||
} | |||
.line-badge.light a { | |||
color: #111111 !important; | |||
} | |||
/* ---------- light rail references ---------- */ | |||
.lr-prefix { | |||
background-color: #c8b560; | |||
color: #2b2410; | |||
padding: 0 0.3em; | |||
border-radius: 2px; | |||
font-weight: bold; | |||
font-size: 92%; | |||
} | |||
.lr-num { | |||
font-weight: bold; | |||
padding: 0 0.05em; | |||
} | } | ||
| 第92行: | 第180行: | ||
} | } | ||
/* ---------- | /* ---------- documentation / reflist ---------- */ | ||
.template-doc { | .template-doc { | ||
border: 1px solid #a2a9b1; | border: 1px solid #a2a9b1; | ||
| 第106行: | 第194行: | ||
margin-bottom: 0.5em; | margin-bottom: 0.5em; | ||
} | } | ||
.reflist { | .reflist { | ||
font-size: 90%; | font-size: 90%; | ||
| 第128行: | 第214行: | ||
white-space: pre; | white-space: pre; | ||
} | } | ||
/* ---------- station type badges ---------- */ | |||
.stype { | |||
display: inline-block; | |||
padding: 0 0.4em; | |||
border-radius: 3px; | |||
font-size: 90%; | |||
font-weight: bold; | |||
} | |||
.stype-underground { background: #dbe6f5; color: #0b3d91; } | |||
.stype-elevated { background: #e6f4dc; color: #245c1c; } | |||
.stype-ground { background: #fdf2d0; color: #7a5a00; } | |||
.stype-unknown { background: #eaecf0; color: #54595d; } | |||
/* ---------- main page ---------- */ | /* ---------- main page ---------- */ | ||
| 第162行: | 第261行: | ||
margin: 0 0.5em; | margin: 0 0.5em; | ||
} | } | ||
.mp-grid { | .mp-grid { | ||
display: flex; | display: flex; | ||
| 第184行: | 第282行: | ||
.mp-card-body { | .mp-card-body { | ||
font-size: 95%; | font-size: 95%; | ||
line-height: 1. | line-height: 1.8; | ||
} | } | ||
.mp-section { | .mp-section { | ||
| 第223行: | 第321行: | ||
font-size: 1.9em; | font-size: 1.9em; | ||
} | } | ||
} | |||
/* ---------- automatic line colours for [[路線名]] links ---------- */ | |||
.mw-parser-output a[title="金沙綫"]:not(.new), | |||
.mw-parser-output a[title="金沙綫"]:visited { | |||
background-color: #8C2B57; | |||
color: #ffffff !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output a[title="南北綫"]:not(.new), | |||
.mw-parser-output a[title="南北綫"]:visited { | |||
background-color: #BE2D28; | |||
color: #ffffff !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output a[title="東西綫"]:not(.new), | |||
.mw-parser-output a[title="東西綫"]:visited { | |||
background-color: #56AF43; | |||
color: #ffffff !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output a[title="東北綫"]:not(.new), | |||
.mw-parser-output a[title="東北綫"]:visited { | |||
background-color: #006400; | |||
color: #ffffff !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output a[title="城門綫"]:not(.new), | |||
.mw-parser-output a[title="城門綫"]:visited { | |||
background-color: #6B4C7C; | |||
color: #ffffff !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output a[title="都鐵城門綫"]:not(.new), | |||
.mw-parser-output a[title="都鐵城門綫"]:visited { | |||
background-color: #6B4C7C; | |||
color: #ffffff !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output a[title="中沙綫"]:not(.new), | |||
.mw-parser-output a[title="中沙綫"]:visited { | |||
background-color: #3C89BD; | |||
color: #ffffff !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output a[title="星湖綫"]:not(.new), | |||
.mw-parser-output a[title="星湖綫"]:visited { | |||
background-color: #B5BD00; | |||
color: #111111 !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output a[title="都城綫"]:not(.new), | |||
.mw-parser-output a[title="都城綫"]:visited { | |||
background-color: #F09937; | |||
color: #ffffff !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output a[title="天際快綫"]:not(.new), | |||
.mw-parser-output a[title="天際快綫"]:visited { | |||
background-color: #355F65; | |||
color: #ffffff !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output a[title="都環綫"]:not(.new), | |||
.mw-parser-output a[title="都環綫"]:visited { | |||
background-color: #2B5EBE; | |||
color: #ffffff !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output a[title="都鐵都環綫"]:not(.new), | |||
.mw-parser-output a[title="都鐵都環綫"]:visited { | |||
background-color: #2B5EBE; | |||
color: #ffffff !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output a[title="橫中綫"]:not(.new), | |||
.mw-parser-output a[title="橫中綫"]:visited { | |||
background-color: #CBA036; | |||
color: #ffffff !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output a[title="文沙綫"]:not(.new), | |||
.mw-parser-output a[title="文沙綫"]:visited { | |||
background-color: #A37B4B; | |||
color: #ffffff !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output a[title="漠北綫"]:not(.new), | |||
.mw-parser-output a[title="漠北綫"]:visited { | |||
background-color: #9A3B26; | |||
color: #ffffff !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output a[title="天沙綫"]:not(.new), | |||
.mw-parser-output a[title="天沙綫"]:visited { | |||
background-color: #70C1B3; | |||
color: #ffffff !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output a[title="都鐵天沙綫"]:not(.new), | |||
.mw-parser-output a[title="都鐵天沙綫"]:visited { | |||
background-color: #70C1B3; | |||
color: #ffffff !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output a[title="中西綫"]:not(.new), | |||
.mw-parser-output a[title="中西綫"]:visited { | |||
background-color: #A9CFEF; | |||
color: #111111 !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output a[title="都鐵中西綫"]:not(.new), | |||
.mw-parser-output a[title="都鐵中西綫"]:visited { | |||
background-color: #A9CFEF; | |||
color: #111111 !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output a[title="奇妙綫"]:not(.new), | |||
.mw-parser-output a[title="奇妙綫"]:visited { | |||
background-color: #CA82AB; | |||
color: #ffffff !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output a[title="都鐵奇妙綫"]:not(.new), | |||
.mw-parser-output a[title="都鐵奇妙綫"]:visited { | |||
background-color: #CA82AB; | |||
color: #ffffff !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output a[title="通城綫"]:not(.new), | |||
.mw-parser-output a[title="通城綫"]:visited { | |||
background-color: #8546B9; | |||
color: #ffffff !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output a[title="旭新綫"]:not(.new), | |||
.mw-parser-output a[title="旭新綫"]:visited { | |||
background-color: #F0837A; | |||
color: #ffffff !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output a[title="星空綫"]:not(.new), | |||
.mw-parser-output a[title="星空綫"]:visited { | |||
background-color: #F8AFC3; | |||
color: #111111 !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output a[title="高速啟都綫"]:not(.new), | |||
.mw-parser-output a[title="高速啟都綫"]:visited { | |||
background-color: #AC9DCC; | |||
color: #ffffff !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output a[title="高速洲榕綫"]:not(.new), | |||
.mw-parser-output a[title="高速洲榕綫"]:visited { | |||
background-color: #92C9AB; | |||
color: #111111 !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output a[title="高速文塘綫"]:not(.new), | |||
.mw-parser-output a[title="高速文塘綫"]:visited { | |||
background-color: #B6ABA4; | |||
color: #ffffff !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output a[title="高速虹沙綫"]:not(.new), | |||
.mw-parser-output a[title="高速虹沙綫"]:visited { | |||
background-color: #B67C91; | |||
color: #ffffff !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output a[title="高速群海綫"]:not(.new), | |||
.mw-parser-output a[title="高速群海綫"]:visited { | |||
background-color: #77ABB6; | |||
color: #ffffff !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output a[title="圓坑電車系統"]:not(.new), | |||
.mw-parser-output a[title="圓坑電車系統"]:visited { | |||
background-color: #A4C2F4; | |||
color: #111111 !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output a[title="萬峯輕鐵"]:not(.new), | |||
.mw-parser-output a[title="萬峯輕鐵"]:visited { | |||
background-color: #40B3AD; | |||
color: #ffffff !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output a[title="金沙輕鐵"]:not(.new), | |||
.mw-parser-output a[title="金沙輕鐵"]:visited { | |||
background-color: #FFD700; | |||
color: #111111 !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output a[title="西北環輕鐵捷運"]:not(.new), | |||
.mw-parser-output a[title="西北環輕鐵捷運"]:visited { | |||
background-color: #10E563; | |||
color: #111111 !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output a[title="北商都市單軌電車"]:not(.new), | |||
.mw-parser-output a[title="北商都市單軌電車"]:visited { | |||
background-color: #2843BA; | |||
color: #ffffff !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output a[title="湖店輕鐵"]:not(.new), | |||
.mw-parser-output a[title="湖店輕鐵"]:visited { | |||
background-color: #33AA66; | |||
color: #ffffff !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output a[title="湖店新交通"]:not(.new), | |||
.mw-parser-output a[title="湖店新交通"]:visited { | |||
background-color: #FFA500; | |||
color: #111111 !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output a[title="科研捷運地鐵測試綫"]:not(.new), | |||
.mw-parser-output a[title="科研捷運地鐵測試綫"]:visited { | |||
background-color: #CC0000; | |||
color: #ffffff !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output a[title="科研捷運跨座式單軌測試綫"]:not(.new), | |||
.mw-parser-output a[title="科研捷運跨座式單軌測試綫"]:visited { | |||
background-color: #4E4ED9; | |||
color: #ffffff !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output a[title="科研捷運懸掛式單軌測試綫"]:not(.new), | |||
.mw-parser-output a[title="科研捷運懸掛式單軌測試綫"]:visited { | |||
background-color: #8497D8; | |||
color: #ffffff !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output a[title="科研捷運輕鐵測試綫"]:not(.new), | |||
.mw-parser-output a[title="科研捷運輕鐵測試綫"]:visited { | |||
background-color: #E078C2; | |||
color: #ffffff !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | |||
.mw-parser-output a[title="科研捷運高鐵測試綫"]:not(.new), | |||
.mw-parser-output a[title="科研捷運高鐵測試綫"]:visited { | |||
background-color: #BBEFB9; | |||
color: #111111 !important; | |||
font-weight: bold; | |||
padding: 0.08em 0.35em; | |||
border-radius: 2px; | |||
} | } | ||
於 2026年11月22日 (日) 00:14 的修訂
/* =====================================================================
To Shing S2 Wiki — 共同樣式 (Wikipedia / 香港鐵路大典 風格)
===================================================================== */
/* ---------- infobox ---------- */
.infobox {
float: right;
clear: right;
margin: 0.5em 0 1em 1em;
padding: 0.2em;
border: 1px solid #a2a9b1;
border-spacing: 3px;
background-color: #f8f9fa;
color: #202122;
font-size: 88%;
line-height: 1.55;
width: 24em;
max-width: 100%;
box-sizing: border-box;
}
.infobox-title {
background-color: #dbe6f5;
color: #0b3d91;
font-size: 125%;
font-weight: bold;
text-align: center;
padding: 0.35em 0.4em;
border: 1px solid #a2b6d4;
}
.infobox-en {
text-align: center;
font-size: 90%;
color: #54595d;
padding: 0.2em 0.4em;
}
.infobox-image {
text-align: center;
background-color: #fff;
padding: 0.3em;
}
.infobox-caption {
text-align: center;
font-size: 88%;
color: #54595d;
padding-bottom: 0.3em;
}
.infobox-label {
background-color: #eaecf0;
font-weight: bold;
vertical-align: top;
width: 36%;
padding: 0.2em 0.5em;
}
.infobox-data {
vertical-align: top;
padding: 0.2em 0.5em;
}
.infobox-map {
background-color: #ffffff;
text-align: center;
padding: 0.4em;
}
.infobox-color {
display: inline-block;
width: 1.1em;
height: 1.1em;
border: 1px solid #72777d;
vertical-align: middle;
margin-right: 0.3em;
}
/* ---------- route map placeholder ---------- */
.routemap-placeholder {
border: 2px dashed #a2a9b1;
border-radius: 4px;
background-color: #f1f4f8;
min-height: 300px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 1em;
color: #72777d;
text-align: center;
}
.routemap-placeholder-title {
font-weight: bold;
font-size: 115%;
color: #54595d;
margin-bottom: 0.4em;
}
.routemap-placeholder-body {
font-size: 92%;
line-height: 1.7;
}
/* ---------- fictional history / todo markers ---------- */
.fictional-history {
background-color: #fff4e5;
border: 1px solid #f0b429;
color: #8a4b00;
padding: 0 0.25em;
border-radius: 2px;
font-size: 92%;
}
.todo-placeholder {
color: #b32424;
font-style: italic;
}
/* ---------- inline line badges ---------- */
.line-badge {
padding: 0 0.35em;
border-radius: 2px;
font-weight: bold;
white-space: nowrap;
}
.line-badge a {
color: #ffffff !important;
font-weight: bold;
text-decoration: none;
}
.line-badge.light a {
color: #111111 !important;
}
/* ---------- light rail references ---------- */
.lr-prefix {
background-color: #c8b560;
color: #2b2410;
padding: 0 0.3em;
border-radius: 2px;
font-weight: bold;
font-size: 92%;
}
.lr-num {
font-weight: bold;
padding: 0 0.05em;
}
/* ---------- navbox ---------- */
.navbox {
clear: both;
width: 100%;
margin-top: 1em;
border: 1px solid #a2a9b1;
background-color: #f8f9fa;
font-size: 88%;
border-spacing: 0;
}
.navbox-title {
background-color: #dbe6f5;
font-weight: bold;
padding: 0.25em 0.5em;
text-align: center;
}
.navbox-list {
padding: 0.35em 0.6em;
line-height: 1.8;
}
/* ---------- hatnotes / notices ---------- */
.hatnote {
font-style: italic;
padding: 0.2em 0 0.2em 1.6em;
margin-bottom: 0.5em;
color: #54595d;
}
.notice {
border: 1px solid #a2a9b1;
border-left: 10px solid #c8ccd1;
background-color: #fbfbfb;
padding: 0.6em 0.9em;
margin: 0.5em 0 1em;
font-size: 95%;
}
.notice-stub {
border-left-color: #f0b429;
background-color: #fef7e6;
}
/* ---------- documentation / reflist ---------- */
.template-doc {
border: 1px solid #a2a9b1;
background-color: #f8f9fa;
margin: 1em 0;
padding: 0.8em 1em;
clear: both;
}
.template-doc-title {
font-weight: bold;
border-bottom: 1px solid #c8ccd1;
padding-bottom: 0.3em;
margin-bottom: 0.5em;
}
.reflist {
font-size: 90%;
column-width: 30em;
margin-top: 1em;
border-top: 1px solid #c8ccd1;
padding-top: 0.4em;
}
/* ---------- route diagram ---------- */
.route-diagram {
border: 1px solid #a2a9b1;
background-color: #f8f9fa;
padding: 0.6em 1em;
margin: 0.6em 0 1em;
font-family: Consolas, "Courier New", monospace;
font-size: 90%;
line-height: 1.35;
overflow-x: auto;
white-space: pre;
}
/* ---------- station type badges ---------- */
.stype {
display: inline-block;
padding: 0 0.4em;
border-radius: 3px;
font-size: 90%;
font-weight: bold;
}
.stype-underground { background: #dbe6f5; color: #0b3d91; }
.stype-elevated { background: #e6f4dc; color: #245c1c; }
.stype-ground { background: #fdf2d0; color: #7a5a00; }
.stype-unknown { background: #eaecf0; color: #54595d; }
/* ---------- main page ---------- */
.mainpage-hero {
text-align: center;
padding: 2.2em 1em 2em;
margin: 0 0 1.2em;
border: 1px solid #a2b6d4;
border-radius: 10px;
background: linear-gradient(160deg, #0b3d91 0%, #1652a8 55%, #1f6bd0 100%);
color: #fff;
}
.mainpage-hero-title {
font-size: 2.6em;
font-weight: bold;
letter-spacing: 0.04em;
line-height: 1.2;
}
.mainpage-hero-sub {
font-size: 1.1em;
opacity: 0.95;
margin-top: 0.5em;
}
.mainpage-hero-links {
margin-top: 1.2em;
font-size: 1.05em;
}
.mainpage-hero-links a {
color: #ffe08a !important;
font-weight: bold;
}
.mainpage-hero-links span {
opacity: 0.6;
margin: 0 0.5em;
}
.mp-grid {
display: flex;
flex-wrap: wrap;
gap: 1em;
margin-bottom: 1.2em;
}
.mp-card {
flex: 1 1 15em;
border: 1px solid #a2a9b1;
border-radius: 8px;
background-color: #f8f9fa;
padding: 1em 1.2em;
}
.mp-card-title {
font-size: 1.15em;
font-weight: bold;
color: #0b3d91;
margin-bottom: 0.4em;
}
.mp-card-body {
font-size: 95%;
line-height: 1.8;
}
.mp-section {
border: 1px solid #a2a9b1;
border-radius: 8px;
overflow: hidden;
margin-bottom: 1.2em;
background-color: #fff;
}
.mp-section-title {
background-color: #eaecf0;
font-weight: bold;
padding: 0.5em 1em;
font-size: 1.05em;
border-bottom: 1px solid #c8ccd1;
}
.mp-section-body {
padding: 0.8em 1em;
line-height: 1.8;
}
.mp-columns {
display: flex;
flex-wrap: wrap;
gap: 1.2em;
}
.mp-columns > div {
flex: 1 1 20em;
}
/* ---------- responsive ---------- */
@media (max-width: 720px) {
.infobox {
float: none;
width: 100%;
margin: 0.5em 0 1em;
}
.mainpage-hero-title {
font-size: 1.9em;
}
}
/* ---------- automatic line colours for [[路線名]] links ---------- */
.mw-parser-output a[title="金沙綫"]:not(.new),
.mw-parser-output a[title="金沙綫"]:visited {
background-color: #8C2B57;
color: #ffffff !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}
.mw-parser-output a[title="南北綫"]:not(.new),
.mw-parser-output a[title="南北綫"]:visited {
background-color: #BE2D28;
color: #ffffff !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}
.mw-parser-output a[title="東西綫"]:not(.new),
.mw-parser-output a[title="東西綫"]:visited {
background-color: #56AF43;
color: #ffffff !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}
.mw-parser-output a[title="東北綫"]:not(.new),
.mw-parser-output a[title="東北綫"]:visited {
background-color: #006400;
color: #ffffff !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}
.mw-parser-output a[title="城門綫"]:not(.new),
.mw-parser-output a[title="城門綫"]:visited {
background-color: #6B4C7C;
color: #ffffff !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}
.mw-parser-output a[title="都鐵城門綫"]:not(.new),
.mw-parser-output a[title="都鐵城門綫"]:visited {
background-color: #6B4C7C;
color: #ffffff !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}
.mw-parser-output a[title="中沙綫"]:not(.new),
.mw-parser-output a[title="中沙綫"]:visited {
background-color: #3C89BD;
color: #ffffff !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}
.mw-parser-output a[title="星湖綫"]:not(.new),
.mw-parser-output a[title="星湖綫"]:visited {
background-color: #B5BD00;
color: #111111 !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}
.mw-parser-output a[title="都城綫"]:not(.new),
.mw-parser-output a[title="都城綫"]:visited {
background-color: #F09937;
color: #ffffff !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}
.mw-parser-output a[title="天際快綫"]:not(.new),
.mw-parser-output a[title="天際快綫"]:visited {
background-color: #355F65;
color: #ffffff !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}
.mw-parser-output a[title="都環綫"]:not(.new),
.mw-parser-output a[title="都環綫"]:visited {
background-color: #2B5EBE;
color: #ffffff !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}
.mw-parser-output a[title="都鐵都環綫"]:not(.new),
.mw-parser-output a[title="都鐵都環綫"]:visited {
background-color: #2B5EBE;
color: #ffffff !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}
.mw-parser-output a[title="橫中綫"]:not(.new),
.mw-parser-output a[title="橫中綫"]:visited {
background-color: #CBA036;
color: #ffffff !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}
.mw-parser-output a[title="文沙綫"]:not(.new),
.mw-parser-output a[title="文沙綫"]:visited {
background-color: #A37B4B;
color: #ffffff !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}
.mw-parser-output a[title="漠北綫"]:not(.new),
.mw-parser-output a[title="漠北綫"]:visited {
background-color: #9A3B26;
color: #ffffff !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}
.mw-parser-output a[title="天沙綫"]:not(.new),
.mw-parser-output a[title="天沙綫"]:visited {
background-color: #70C1B3;
color: #ffffff !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}
.mw-parser-output a[title="都鐵天沙綫"]:not(.new),
.mw-parser-output a[title="都鐵天沙綫"]:visited {
background-color: #70C1B3;
color: #ffffff !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}
.mw-parser-output a[title="中西綫"]:not(.new),
.mw-parser-output a[title="中西綫"]:visited {
background-color: #A9CFEF;
color: #111111 !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}
.mw-parser-output a[title="都鐵中西綫"]:not(.new),
.mw-parser-output a[title="都鐵中西綫"]:visited {
background-color: #A9CFEF;
color: #111111 !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}
.mw-parser-output a[title="奇妙綫"]:not(.new),
.mw-parser-output a[title="奇妙綫"]:visited {
background-color: #CA82AB;
color: #ffffff !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}
.mw-parser-output a[title="都鐵奇妙綫"]:not(.new),
.mw-parser-output a[title="都鐵奇妙綫"]:visited {
background-color: #CA82AB;
color: #ffffff !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}
.mw-parser-output a[title="通城綫"]:not(.new),
.mw-parser-output a[title="通城綫"]:visited {
background-color: #8546B9;
color: #ffffff !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}
.mw-parser-output a[title="旭新綫"]:not(.new),
.mw-parser-output a[title="旭新綫"]:visited {
background-color: #F0837A;
color: #ffffff !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}
.mw-parser-output a[title="星空綫"]:not(.new),
.mw-parser-output a[title="星空綫"]:visited {
background-color: #F8AFC3;
color: #111111 !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}
.mw-parser-output a[title="高速啟都綫"]:not(.new),
.mw-parser-output a[title="高速啟都綫"]:visited {
background-color: #AC9DCC;
color: #ffffff !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}
.mw-parser-output a[title="高速洲榕綫"]:not(.new),
.mw-parser-output a[title="高速洲榕綫"]:visited {
background-color: #92C9AB;
color: #111111 !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}
.mw-parser-output a[title="高速文塘綫"]:not(.new),
.mw-parser-output a[title="高速文塘綫"]:visited {
background-color: #B6ABA4;
color: #ffffff !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}
.mw-parser-output a[title="高速虹沙綫"]:not(.new),
.mw-parser-output a[title="高速虹沙綫"]:visited {
background-color: #B67C91;
color: #ffffff !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}
.mw-parser-output a[title="高速群海綫"]:not(.new),
.mw-parser-output a[title="高速群海綫"]:visited {
background-color: #77ABB6;
color: #ffffff !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}
.mw-parser-output a[title="圓坑電車系統"]:not(.new),
.mw-parser-output a[title="圓坑電車系統"]:visited {
background-color: #A4C2F4;
color: #111111 !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}
.mw-parser-output a[title="萬峯輕鐵"]:not(.new),
.mw-parser-output a[title="萬峯輕鐵"]:visited {
background-color: #40B3AD;
color: #ffffff !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}
.mw-parser-output a[title="金沙輕鐵"]:not(.new),
.mw-parser-output a[title="金沙輕鐵"]:visited {
background-color: #FFD700;
color: #111111 !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}
.mw-parser-output a[title="西北環輕鐵捷運"]:not(.new),
.mw-parser-output a[title="西北環輕鐵捷運"]:visited {
background-color: #10E563;
color: #111111 !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}
.mw-parser-output a[title="北商都市單軌電車"]:not(.new),
.mw-parser-output a[title="北商都市單軌電車"]:visited {
background-color: #2843BA;
color: #ffffff !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}
.mw-parser-output a[title="湖店輕鐵"]:not(.new),
.mw-parser-output a[title="湖店輕鐵"]:visited {
background-color: #33AA66;
color: #ffffff !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}
.mw-parser-output a[title="湖店新交通"]:not(.new),
.mw-parser-output a[title="湖店新交通"]:visited {
background-color: #FFA500;
color: #111111 !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}
.mw-parser-output a[title="科研捷運地鐵測試綫"]:not(.new),
.mw-parser-output a[title="科研捷運地鐵測試綫"]:visited {
background-color: #CC0000;
color: #ffffff !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}
.mw-parser-output a[title="科研捷運跨座式單軌測試綫"]:not(.new),
.mw-parser-output a[title="科研捷運跨座式單軌測試綫"]:visited {
background-color: #4E4ED9;
color: #ffffff !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}
.mw-parser-output a[title="科研捷運懸掛式單軌測試綫"]:not(.new),
.mw-parser-output a[title="科研捷運懸掛式單軌測試綫"]:visited {
background-color: #8497D8;
color: #ffffff !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}
.mw-parser-output a[title="科研捷運輕鐵測試綫"]:not(.new),
.mw-parser-output a[title="科研捷運輕鐵測試綫"]:visited {
background-color: #E078C2;
color: #ffffff !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}
.mw-parser-output a[title="科研捷運高鐵測試綫"]:not(.new),
.mw-parser-output a[title="科研捷運高鐵測試綫"]:visited {
background-color: #BBEFB9;
color: #111111 !important;
font-weight: bold;
padding: 0.08em 0.35em;
border-radius: 2px;
}