MediaWiki:Common.css:修訂間差異

建立基礎頁面
 
建立基礎頁面
 
(未顯示同一使用者於中間所作的 10次修訂)
第1行: 第1行:
/* =====================================================================
/* =====================================================================
   Crystoria Wiki - Wikipedia-style common styles
   To Shing S2 Wiki — 共同樣式 (Wikipedia / 香港鐵路大典 風格)
   ===================================================================== */
   ===================================================================== */


第14行: 第14行:
color: #202122;
color: #202122;
font-size: 88%;
font-size: 88%;
line-height: 1.5;
line-height: 1.55;
width: 22em;
width: 24em;
max-width: 100%;
max-width: 100%;
box-sizing: border-box;
box-sizing: border-box;
}
.infobox-section {
background: #dfe8f5;
color: #202122;
font-weight: bold;
text-align: center;
font-size: 95%;
letter-spacing: 0.02em;
}
.infobox-title-en {
display: block;
font-size: 78%;
font-weight: normal;
letter-spacing: 0.01em;
opacity: 0.95;
}
}
.infobox-title {
.infobox-title {
第25行: 第42行:
font-weight: bold;
font-weight: bold;
text-align: center;
text-align: center;
padding: 0.3em 0.4em;
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行: 第66行:
font-weight: bold;
font-weight: bold;
vertical-align: top;
vertical-align: top;
width: 40%;
width: 36%;
padding: 0.2em 0.5em;
padding: 0.2em 0.5em;
}
}
第49行: 第72行:
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;
}
.email-verify-banner {
position: relative;
background: #fff4e5;
border: 2px solid #f0b429;
border-radius: 6px;
padding: 0.9em 2.6em 0.9em 1em;
margin: 0 0 1em;
color: #4a2f00;
font-size: 1rem;
line-height: 1.75;
}
.email-verify-close {
position: absolute;
top: 0.2em;
right: 0.5em;
cursor: pointer;
font-size: 1.5em;
font-weight: bold;
color: #8a4b00;
line-height: 1;
}
.email-verify-banner a {
font-weight: bold;
}
.email-verify-title {
font-size: 1.1rem;
font-weight: bold;
margin: 0 0 0.35em;
}
.email-verify-actions {
margin: 0.8em 0 0;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.8em;
}
.email-verify-button {
display: inline-block;
background: #0b3d91;
color: #ffffff !important;
text-decoration: none;
padding: 0.55em 1.3em;
border-radius: 6px;
font-weight: bold;
}
.email-verify-button:hover {
background: #1652a8;
color: #ffffff !important;
}
.email-verify-link {
font-size: 0.95em;
}
.createacct-guide {
border: 1px solid #a2b6d4;
background: #eef4fb;
border-radius: 6px;
padding: 0.9em 1.2em;
margin: 0 0 1.2em;
line-height: 1.85;
}
.createacct-guide-title {
font-weight: bold;
color: #0b3d91;
margin: 0 0 0.3em;
}
.createacct-guide ol {
margin: 0;
padding-left: 1.5em;
}
.bus-route-badge {
display: inline-block;
background: #3d3d3d;
color: #ffffff;
border-radius: 3px;
padding: 0.05em 0.45em;
font-size: 92%;
white-space: nowrap;
}
.bus-route-company {
font-size: 82%;
opacity: 0.9;
margin-right: 0.35em;
}
.bus-route-number {
font-weight: bold;
letter-spacing: 0.02em;
}
.bus-route-suffix {
margin-left: 0.1em;
}
}


第92行: 第292行:
}
}


/* ---------- template documentation ---------- */
/* ---------- documentation / reflist ---------- */
.template-doc {
.template-doc {
border: 1px solid #a2a9b1;
border: 1px solid #a2a9b1;
第106行: 第306行:
margin-bottom: 0.5em;
margin-bottom: 0.5em;
}
}
/* ---------- reflist ---------- */
.reflist {
.reflist {
font-size: 90%;
font-size: 90%;
第128行: 第326行:
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 ---------- */
/* 想將藍色標題塊換成圖片:
  1) 去 Special:Upload 上載圖片(例如 首頁橫幅.png)
  2) 將下面 .mainpage-hero 的 background 改為:
      background: url(/w/images/首頁橫幅.png) center/cover no-repeat;
  3) 如圖片較深色,可加 text-shadow;如不需要文字,可把 .mainpage-hero-title / -sub 隱藏。
*/
.mainpage-hero {
.mainpage-hero {
text-align: center;
text-align: center;
第162行: 第380行:
margin: 0 0.5em;
margin: 0 0.5em;
}
}
.mp-grid {
.mp-grid {
display: flex;
display: flex;
第184行: 第401行:
.mp-card-body {
.mp-card-body {
font-size: 95%;
font-size: 95%;
line-height: 1.7;
line-height: 1.8;
}
}
.mp-section {
.mp-section {
第204行: 第421行:
line-height: 1.8;
line-height: 1.8;
}
}
.mp-card-placeholder {
border: 2px dashed #a2a9b1;
border-radius: 6px;
background: #fff;
min-height: 92px;
display: flex;
align-items: center;
justify-content: center;
color: #72777d;
font-size: 92%;
margin-bottom: 0.7em;
}
.mp-card-sub {
display: block;
font-size: 88%;
color: #54595d;
line-height: 1.7;
margin-top: 0.35em;
}
.mp-columns {
.mp-columns {
display: flex;
display: flex;
第211行: 第449行:
.mp-columns > div {
.mp-columns > div {
flex: 1 1 20em;
flex: 1 1 20em;
}
/* ---------- site logo (banner) ---------- */
.mw-logo-wordmark {
display: block;
height: 64px !important;
width: auto !important;
max-width: 100%;
}
.mw-logo-container {
max-width: none !important;
}
/* Vector 2022 header: give the bigger logo enough room */
.vector-header-container .mw-header,
.vector-header-container .vector-sticky-header {
min-height: 76px;
}
/* Minerva (mobile) branding logo */
.branding-box img {
height: 40px !important;
width: auto !important;
max-width: 100%;
opacity: 1 !important;
}
@media (max-width: 720px) {
.mw-logo-wordmark {
height: 44px !important;
}
.mw-logo-container {
max-width: 100% !important;
}
.branding-box img {
height: 38px !important;
}
}
}


第216行: 第489行:
@media (max-width: 720px) {
@media (max-width: 720px) {
.infobox {
.infobox {
float: none;
float: none !important;
width: 100%;
width: 100% !important;
max-width: 100% !important;
margin: 0.5em 0 1em;
margin: 0.5em 0 1em;
}
.infobox td,
.infobox th,
.infobox caption {
word-break: break-word;
overflow-wrap: break-word;
}
.mainpage-hero {
padding: 1.6em 0.9em 1.5em;
}
}
.mainpage-hero-title {
.mainpage-hero-title {
font-size: 1.9em;
font-size: 1.9em;
line-height: 1.25;
}
.mainpage-hero-sub {
font-size: 1em;
}
.mp-card {
flex: 1 1 100%;
padding: 0.9em 1em;
}
.mp-columns > div {
flex: 1 1 100%;
}
.email-verify-actions {
flex-direction: column;
align-items: stretch;
gap: 0.6em;
}
.email-verify-button {
text-align: center;
}
.mw-parser-output input.mw-ui-input,
.mw-parser-output input[type="text"],
.mw-parser-output input[type="search"],
.mw-parser-output input[type="email"],
.mw-parser-output input[type="password"],
.mw-parser-output textarea {
max-width: 100%;
box-sizing: border-box;
}
}
}
/* ---------- 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;
}
}