MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 4: | Line 4: | ||
Does NOT change Shan fonts | Does NOT change Shan fonts | ||
========================================== */ | ========================================== */ | ||
/* ========================================== | |||
TAIPEDIA — RESTORE ORIGINAL SHAN FONT | |||
========================================== */ | |||
@font-face { | |||
font-family: "TaipediaShan"; | |||
src: url("/fonts/Shan.ttf?v=20") | |||
format("truetype"); | |||
font-weight: 400; | |||
font-style: normal; | |||
font-display: swap; | |||
} | |||
/* Article content */ | |||
.mw-parser-output, | |||
.mw-parser-output p, | |||
.mw-parser-output li, | |||
.mw-parser-output td, | |||
.mw-parser-output th, | |||
.mw-parser-output blockquote { | |||
font-family: | |||
"TaipediaShan", | |||
"Noto Sans Myanmar", | |||
sans-serif !important; | |||
} | |||
/* Article headings */ | |||
.mw-parser-output h1, | |||
.mw-parser-output h2, | |||
.mw-parser-output h3, | |||
.mw-parser-output h4, | |||
.mw-parser-output h5, | |||
.mw-parser-output h6 { | |||
font-family: | |||
"TaipediaShan", | |||
"Noto Sans Myanmar", | |||
sans-serif !important; | |||
} | |||
/* Homepage, hero, and category cards */ | |||
.mw-parser-output .library-home, | |||
.mw-parser-output .library-home *, | |||
.mw-parser-output .kh-home, | |||
.mw-parser-output .kh-home *, | |||
.mw-parser-output .tai-home, | |||
.mw-parser-output .tai-home * { | |||
font-family: | |||
"TaipediaShan", | |||
"Noto Sans Myanmar", | |||
sans-serif !important; | |||
} | |||
/* Category pages */ | |||
.mw-category, | |||
.mw-category *, | |||
.mw-category-group, | |||
.mw-category-group * { | |||
font-family: | |||
"TaipediaShan", | |||
"Noto Sans Myanmar", | |||
sans-serif !important; | |||
} | |||
/* Keep programming code readable */ | |||
.mw-parser-output pre, | |||
.mw-parser-output code, | |||
.mw-parser-output .mw-code { | |||
font-family: monospace !important; | |||
} | |||
/* END SHAN FONT RESTORE */ | |||
/* MAIN CONTAINER */ | /* MAIN CONTAINER */ | ||
Revision as of 13:23, 13 October 2026
/* ==========================================
TAIPEDIA HOMEPAGE LAYOUT FIX - VERSION 2
Does NOT change Shan fonts
========================================== */
/* ==========================================
TAIPEDIA — RESTORE ORIGINAL SHAN FONT
========================================== */
@font-face {
font-family: "TaipediaShan";
src: url("/fonts/Shan.ttf?v=20")
format("truetype");
font-weight: 400;
font-style: normal;
font-display: swap;
}
/* Article content */
.mw-parser-output,
.mw-parser-output p,
.mw-parser-output li,
.mw-parser-output td,
.mw-parser-output th,
.mw-parser-output blockquote {
font-family:
"TaipediaShan",
"Noto Sans Myanmar",
sans-serif !important;
}
/* Article headings */
.mw-parser-output h1,
.mw-parser-output h2,
.mw-parser-output h3,
.mw-parser-output h4,
.mw-parser-output h5,
.mw-parser-output h6 {
font-family:
"TaipediaShan",
"Noto Sans Myanmar",
sans-serif !important;
}
/* Homepage, hero, and category cards */
.mw-parser-output .library-home,
.mw-parser-output .library-home *,
.mw-parser-output .kh-home,
.mw-parser-output .kh-home *,
.mw-parser-output .tai-home,
.mw-parser-output .tai-home * {
font-family:
"TaipediaShan",
"Noto Sans Myanmar",
sans-serif !important;
}
/* Category pages */
.mw-category,
.mw-category *,
.mw-category-group,
.mw-category-group * {
font-family:
"TaipediaShan",
"Noto Sans Myanmar",
sans-serif !important;
}
/* Keep programming code readable */
.mw-parser-output pre,
.mw-parser-output code,
.mw-parser-output .mw-code {
font-family: monospace !important;
}
/* END SHAN FONT RESTORE */
/* MAIN CONTAINER */
.mw-parser-output .library-home .kh-home {
width: 100%;
max-width: 1200px;
min-width: 0;
margin: 0 auto;
box-sizing: border-box;
}
.mw-parser-output .kh-home *,
.mw-parser-output .kh-home *::before,
.mw-parser-output .kh-home *::after {
box-sizing: border-box;
}
/* ==========================================
COMPACT HERO SECTION
========================================== */
.mw-parser-output .library-home .kh-home .kh-hero {
display: block;
width: 100%;
max-width: 100%;
background: linear-gradient(
135deg,
#10233f 0%,
#1e3a5f 50%,
#2459a6 100%
) !important;
color: #ffffff;
padding: 25px 20px !important;
margin: 0 0 25px;
border: 0;
border-radius: 14px;
text-align: center;
}
/* Hero inner container */
.mw-parser-output .kh-home .kh-hero-inner {
width: 100%;
max-width: 720px;
margin: 0 auto;
}
/* Welcome text */
.mw-parser-output .kh-home .kh-eyebrow {
color: #67e8f9;
font-size: 11px;
letter-spacing: 1px;
line-height: 1.5;
margin-bottom: 8px;
}
/* Hero heading */
.mw-parser-output .kh-home .kh-hero h1 {
color: #ffffff !important;
font-size: clamp(25px, 4vw, 34px);
line-height: 1.4;
margin: 0 0 8px;
padding: 0;
border: none;
background: transparent;
}
/* Hero description */
.mw-parser-output .kh-home .kh-hero p {
color: #e2e8f0;
font-size: 14px;
line-height: 1.7;
margin: 0 0 15px;
}
/* ==========================================
HERO SEARCH BOX
========================================== */
.mw-parser-output .kh-home .kh-search {
width: 100%;
max-width: 470px;
margin: 0 auto;
}
.mw-parser-output .kh-home .kh-search .mw-inputbox-form {
display: flex;
flex-wrap: wrap;
align-items: stretch;
justify-content: center;
gap: 8px;
}
.mw-parser-output .kh-home .kh-search input[type="text"],
.mw-parser-output .kh-home .kh-search input[type="search"],
.mw-parser-output .kh-home .kh-search .mw-inputbox-input {
flex: 1 1 220px;
min-width: 0;
max-width: 100%;
padding: 10px 14px;
color: #1e293b;
background: #ffffff;
border: 1px solid #cbd5e1;
border-radius: 9px;
font-size: 14px;
}
.mw-parser-output .kh-home .kh-search input[type="submit"] {
padding: 10px 18px;
background: #2563eb;
color: #ffffff;
border: none;
border-radius: 9px;
font-size: 14px;
cursor: pointer;
}
.mw-parser-output .kh-home .kh-search input[type="submit"]:hover {
background: #1d4ed8;
}
/* Hero links */
.mw-parser-output .kh-home .kh-hero-links {
margin-top: 12px;
line-height: 1.7;
}
.mw-parser-output .kh-home .kh-hero-links a {
color: #ffffff !important;
text-decoration: none;
}
.mw-parser-output .kh-home .kh-hero-links a:hover {
text-decoration: underline;
}
/* ==========================================
CATEGORY SECTION
========================================== */
.mw-parser-output .kh-home .kh-section {
margin-top: 30px;
}
.mw-parser-output .kh-home .kh-section-head {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
gap: 10px;
margin-bottom: 16px;
}
.mw-parser-output .kh-home .kh-section-head h2 {
color: #17263c;
font-size: 23px;
line-height: 1.6;
margin: 0;
padding: 0;
border: none;
}
/* ==========================================
CATEGORY GRID
========================================== */
.mw-parser-output .kh-home .kh-grid {
display: grid;
grid-template-columns:
repeat(4, minmax(0, 1fr));
gap: 16px;
align-items: stretch;
margin-top: 18px;
}
.mw-parser-output .kh-home .kh-card {
min-width: 0;
padding: 20px;
background: #ffffff;
color: #17263c;
border: 1px solid #e2e8f0;
border-radius: 14px;
box-shadow: 0 3px 12px rgba(0,0,0,0.04);
transition:
transform 0.2s ease,
box-shadow 0.2s ease;
}
.mw-parser-output .kh-home .kh-card:hover {
transform: translateY(-3px);
box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}
.mw-parser-output .kh-home .kh-card h3 {
font-size: 17px;
line-height: 1.7;
margin: 0 0 8px;
padding: 0;
border: none;
overflow-wrap: anywhere;
}
.mw-parser-output .kh-home .kh-card h3 a {
color: #17263c;
text-decoration: none;
}
.mw-parser-output .kh-home .kh-card h3 a:hover {
color: #2563eb;
}
.mw-parser-output .kh-home .kh-card p {
font-size: 13px;
line-height: 1.7;
min-height: 0;
margin: 0;
color: #64748b;
}
/* ==========================================
LATEST ARTICLES
========================================== */
.mw-parser-output .kh-home .kh-latest {
margin-top: 30px;
}
.mw-parser-output .kh-home .kh-article-list {
width: 100%;
max-width: 100%;
padding: 20px;
background: #ffffff;
border: 1px solid #e2e8f0;
border-radius: 14px;
overflow-wrap: anywhere;
}
.mw-parser-output .kh-home .kh-article-list li {
padding: 10px 3px;
line-height: 1.8;
border-bottom: 1px solid #e2e8f0;
}
.mw-parser-output .kh-home .kh-article-list li:last-child {
border-bottom: none;
}
/* ==========================================
TABLET RESPONSIVE
========================================== */
@media (max-width: 1000px) {
.mw-parser-output .kh-home .kh-grid {
grid-template-columns:
repeat(2, minmax(0, 1fr));
gap: 14px;
}
}
/* ==========================================
MOBILE RESPONSIVE
========================================== */
@media (max-width: 600px) {
.mw-parser-output .library-home .kh-home .kh-hero {
padding: 20px 15px !important;
border-radius: 12px;
}
.mw-parser-output .kh-home .kh-hero h1 {
font-size: 25px;
}
.mw-parser-output .kh-home .kh-hero p {
font-size: 13px;
margin-bottom: 12px;
}
.mw-parser-output .kh-home .kh-grid {
grid-template-columns: 1fr;
gap: 12px;
}
.mw-parser-output .kh-home .kh-card {
padding: 17px;
}
.mw-parser-output .kh-home .kh-section {
margin-top: 24px;
}
.mw-parser-output .kh-home .kh-search .mw-inputbox-form {
flex-direction: column;
}
.mw-parser-output .kh-home .kh-search input[type="text"],
.mw-parser-output .kh-home .kh-search input[type="search"],
.mw-parser-output .kh-home .kh-search .mw-inputbox-input,
.mw-parser-output .kh-home .kh-search input[type="submit"] {
width: 100%;
flex: 0 1 auto;
}
.mw-parser-output .kh-home .kh-article-list {
padding: 15px;
}
}
/* ==========================================
ACCESSIBILITY
========================================== */
.mw-parser-output .kh-home a:focus-visible,
.mw-parser-output .kh-home input:focus-visible {
outline: 3px solid #60a5fa;
outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
.mw-parser-output .kh-home .kh-card {
transition: none;
}
.mw-parser-output .kh-home .kh-card:hover {
transform: none;
}
}
/* END TAIPEDIA HOMEPAGE LAYOUT FIX */