MediaWiki:Common.css:修訂間差異
建立基礎頁面 |
建立基礎頁面 |
||
| (未顯示同一使用者於中間所作的 9次修訂) | |||
| 第18行: | 第18行: | ||
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 { | ||
| 第137行: | 第154行: | ||
font-weight: bold; | font-weight: bold; | ||
padding: 0 0.05em; | 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; | |||
} | } | ||
| 第229行: | 第341行: | ||
/* ---------- 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; | ||
| 第302行: | 第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; | ||
| 第309行: | 第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; | |||
} | |||
} | } | ||
| 第314行: | 第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; | |||
} | } | ||
} | } | ||