MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* ===================================== | /* ========================================== | ||
TAIPEDIA — | TAIPEDIA MEDIAWIKI — COMPLETE STYLESHEET | ||
===================================== */ | Custom Shan Font + Digital Library | ||
========================================== */ | |||
/* ========================================== | |||
1. CUSTOM SHAN FONT | |||
========================================== */ | |||
@font-face { | @font-face { | ||
font-family: 'TaipediaShan'; | font-family: 'TaipediaShan'; | ||
src: url('/resources/assets/fonts/Shan.ttf') | src: url('/resources/assets/fonts/Shan.ttf?v=4') | ||
format('truetype'); | format('truetype'); | ||
font-style: normal; | |||
font-weight: 400; | font-weight: 400; | ||
font-display: swap; | font-display: swap; | ||
} | } | ||
/* | |||
/* ========================================== | |||
2. GLOBAL WEBSITE TYPOGRAPHY | |||
========================================== */ | |||
html, | html, | ||
body, | body, | ||
| Line 21: | Line 31: | ||
.mw-page-container, | .mw-page-container, | ||
.mw-page-title-main, | .mw-page-title-main, | ||
.mw-first-heading, | |||
.vector-header, | |||
.vector-menu, | .vector-menu, | ||
.vector- | .vector-menu-content, | ||
.vector-toc, | |||
.catlinks, | .catlinks, | ||
.mw-category, | |||
.mw-category-group, | |||
input, | input, | ||
textarea, | |||
button, | button, | ||
select { | select { | ||
font-family: 'TaipediaShan', sans-serif !important; | font-family: 'TaipediaShan', | ||
'Noto Sans Myanmar', | |||
sans-serif !important; | |||
} | } | ||
/* ========================================== | |||
3. ARTICLE CONTENT | |||
. | ========================================== */ | ||
.mw-parser-output { | |||
. | font-size: 17px; | ||
font-size: | |||
line-height: 1.9; | line-height: 1.9; | ||
} | } | ||
.mw-parser-output p, | .mw-parser-output p, | ||
| Line 73: | Line 62: | ||
.mw-parser-output td, | .mw-parser-output td, | ||
.mw-parser-output th, | .mw-parser-output th, | ||
.mw-parser-output blockquote, | |||
.mw-parser-output span { | |||
font-family: 'TaipediaShan', | |||
'Noto Sans Myanmar', | |||
sans-serif !important; | |||
} | |||
.mw-parser-output h1, | .mw-parser-output h1, | ||
.mw-parser-output h2, | .mw-parser-output h2, | ||
| Line 78: | Line 74: | ||
.mw-parser-output h4, | .mw-parser-output h4, | ||
.mw-parser-output h5, | .mw-parser-output h5, | ||
.mw-parser-output h6, | .mw-parser-output h6 { | ||
.mw- | font-family: 'TaipediaShan', | ||
.mw- | 'Noto Sans Myanmar', | ||
font-family: 'TaipediaShan', sans-serif !important; | sans-serif !important; | ||
line-height: 1.7; | |||
} | |||
/* ========================================== | |||
4. LIBRARY MAIN PAGE | |||
========================================== */ | |||
.mw-parser-output .library-home { | |||
max-width: 1200px; | |||
margin: 0 auto; | |||
font-family: 'TaipediaShan', | |||
'Noto Sans Myanmar', | |||
sans-serif !important; | |||
} | |||
.mw-parser-output .library-home * { | |||
font-family: 'TaipediaShan', | |||
'Noto Sans Myanmar', | |||
sans-serif !important; | |||
} | |||
/* ========================================== | |||
5. WELCOME HERO | |||
========================================== */ | |||
.mw-parser-output .library-hero { | |||
background: linear-gradient( | |||
135deg, | |||
#142d4e 0%, | |||
#2459a6 100% | |||
); | |||
color: #ffffff; | |||
padding: 55px 30px; | |||
text-align: center; | |||
border-radius: 18px; | |||
margin-bottom: 35px; | |||
} | |||
.mw-parser-output .library-hero h1 { | |||
color: #ffffff; | |||
border: none; | |||
font-size: 36px; | |||
font-weight: 400; | |||
margin: 0 0 15px; | |||
line-height: 1.7; | |||
} | } | ||
.mw-parser-output .library-hero p { | |||
.mw-parser-output { | color: #ffffff; | ||
font-size: 17px; | font-size: 17px; | ||
line-height: 1.9; | line-height: 1.9; | ||
margin: 0; | |||
} | } | ||
/* ========================================== | |||
6. LIBRARY SECTION HEADING | |||
========================================== */ | |||
.mw-parser-output .library-home > h2 { | |||
font-size: 26px; | |||
font-weight: 400; | |||
color: #183153; | |||
border-bottom: 2px solid #e2e8f0; | |||
padding-bottom: 12px; | |||
margin: 30px 0 25px; | |||
line-height: 1.7; | |||
} | } | ||
/* | /* ========================================== | ||
7. RESPONSIVE CARD GRID | |||
========================================== */ | |||
.mw-parser-output .library-grid { | |||
display: grid !important; | |||
grid-template-columns: | |||
repeat(3, minmax(0, 1fr)); | |||
gap: 20px; | gap: 20px; | ||
margin: 25px 0; | |||
margin: 25px 0 40px; | |||
align-items: stretch; | |||
} | } | ||
.library-card { | |||
display: | /* ========================================== | ||
8. LIBRARY CARDS | |||
========================================== */ | |||
.mw-parser-output .library-card { | |||
display: flex; | |||
flex-direction: column; | |||
background: #ffffff; | background: #ffffff; | ||
border: 1px solid #dbe4ef; | border: 1px solid #dbe4ef; | ||
border-radius: 16px; | border-radius: 16px; | ||
padding: 24px; | padding: 24px; | ||
min-width: 0; | |||
box-sizing: border-box; | box-sizing: border-box; | ||
box-shadow: | |||
0 4px 15px rgba(0, 0, 0, 0.06); | |||
transition: | |||
transform 0.25s ease, | |||
box-shadow 0.25s ease, | |||
border-color 0.25s ease; | |||
} | } | ||
.library-card:hover { | .mw-parser-output .library-card:hover { | ||
transform: translateY(-5px); | |||
border-color: #2563eb; | border-color: #2563eb; | ||
box-shadow: 0 | |||
box-shadow: | |||
0 12px 28px rgba(0, 0, 0, 0.12); | |||
} | |||
/* ========================================== | |||
9. CARD ICON | |||
========================================== */ | |||
.mw-parser-output .library-icon { | |||
font-size: 38px; | |||
line-height: 1.4; | |||
margin-bottom: 12px; | |||
} | |||
/* ========================================== | |||
10. LIBRARY CATEGORY NUMBER | |||
========================================== */ | |||
.mw-parser-output .library-number { | |||
color: #2563eb; | |||
font-size: 14px; | |||
font-weight: 400; | |||
letter-spacing: 1px; | |||
margin-bottom: 6px; | |||
} | } | ||
.library-card h3 { | |||
/* ========================================== | |||
11. SHAN CARD TITLES | |||
========================================== */ | |||
.mw-parser-output .library-card h3 { | |||
font-family: 'TaipediaShan', | |||
'Noto Sans Myanmar', | |||
sans-serif !important; | |||
font-size: 21px; | |||
font-weight: 400; | |||
line-height: 1.8; | |||
color: #183153; | color: #183153; | ||
margin: 8px 0 12px; | |||
border: none; | |||
padding: 0; | |||
overflow-wrap: break-word; | |||
} | } | ||
.library-card p { | |||
font-size: | /* ========================================== | ||
12. CARD DESCRIPTIONS | |||
========================================== */ | |||
.mw-parser-output .library-card p { | |||
font-family: 'TaipediaShan', | |||
'Noto Sans Myanmar', | |||
sans-serif !important; | |||
font-size: 15px; | |||
font-weight: 400; | |||
line-height: 1.9; | |||
color: #64748b; | color: #64748b; | ||
margin: 0 0 20px; | |||
flex-grow: 1; | |||
} | |||
/* ========================================== | |||
13. CARD LINKS | |||
========================================== */ | |||
.mw-parser-output .library-card a { | |||
font-family: 'TaipediaShan', | |||
'Noto Sans Myanmar', | |||
sans-serif !important; | |||
display: inline-block; | |||
font-size: 15px; | |||
font-weight: 400; | |||
color: #2563eb; | |||
text-decoration: none; | |||
transition: color 0.2s ease; | |||
} | |||
.mw-parser-output .library-card a:hover { | |||
color: #1e40af; | |||
text-decoration: underline; | |||
} | } | ||
. | |||
font- | /* ========================================== | ||
14. CATEGORY PAGES | |||
========================================== */ | |||
.mw-category, | |||
.mw-category-group, | |||
.mw-category-generated, | |||
.catlinks { | |||
font-family: 'TaipediaShan', | |||
'Noto Sans Myanmar', | |||
sans-serif !important; | |||
line-height: 1.9; | |||
} | |||
.mw-category a, | |||
.catlinks a { | |||
font-family: inherit !important; | |||
} | } | ||
. | |||
/* ========================================== | |||
font- | 15. NAVIGATION AND MENU | ||
========================================== */ | |||
.vector-menu a, | |||
.vector-header a, | |||
.vector-toc a, | |||
.mw-page-container a, | |||
.vector-page-toolbar a { | |||
font-family: 'TaipediaShan', | |||
'Noto Sans Myanmar', | |||
sans-serif !important; | |||
} | } | ||
/* ========================================== | |||
16. TABLET RESPONSIVE | |||
========================================== */ | |||
@media (max-width: 900px) { | @media (max-width: 900px) { | ||
.library-grid { | |||
grid-template-columns: repeat(2, minmax(0, 1fr)); | .mw-parser-output .library-grid { | ||
grid-template-columns: | |||
repeat(2, minmax(0, 1fr)); | |||
gap: 16px; | |||
} | |||
.mw-parser-output .library-card { | |||
padding: 20px; | |||
} | |||
.mw-parser-output .library-hero { | |||
padding: 40px 20px; | |||
} | |||
.mw-parser-output .library-hero h1 { | |||
font-size: 30px; | |||
} | } | ||
} | } | ||
/* ========================================== | |||
17. MOBILE RESPONSIVE | |||
========================================== */ | |||
@media (max-width: 600px) { | @media (max-width: 600px) { | ||
.library-grid { | |||
.mw-parser-output .library-grid { | |||
grid-template-columns: 1fr; | grid-template-columns: 1fr; | ||
gap: 15px; | |||
} | |||
.mw-parser-output .library-card { | |||
padding: 20px; | |||
border-radius: 14px; | |||
} | |||
.mw-parser-output .library-card h3 { | |||
font-size: 19px; | |||
} | |||
.mw-parser-output .library-card p { | |||
font-size: 14px; | |||
} | |||
.mw-parser-output .library-hero { | |||
padding: 35px 18px; | |||
border-radius: 14px; | |||
} | |||
.mw-parser-output .library-hero h1 { | |||
font-size: 26px; | |||
} | |||
.mw-parser-output .library-hero p { | |||
font-size: 15px; | |||
} | |||
.mw-parser-output .library-home > h2 { | |||
font-size: 22px; | |||
} | |||
.mw-parser-output { | |||
font-size: 16px; | |||
line-height: 1.85; | |||
} | } | ||
} | } | ||
/* ========================================== | |||
END — TAIPEDIA STYLESHEET | |||
========================================== */ | |||
Revision as of 18:56, 8 October 2026
/* ==========================================
TAIPEDIA MEDIAWIKI — COMPLETE STYLESHEET
Custom Shan Font + Digital Library
========================================== */
/* ==========================================
1. CUSTOM SHAN FONT
========================================== */
@font-face {
font-family: 'TaipediaShan';
src: url('/resources/assets/fonts/Shan.ttf?v=4')
format('truetype');
font-style: normal;
font-weight: 400;
font-display: swap;
}
/* ==========================================
2. GLOBAL WEBSITE TYPOGRAPHY
========================================== */
html,
body,
.mw-body,
.mw-body-content,
.mw-parser-output,
.mw-page-container,
.mw-page-title-main,
.mw-first-heading,
.vector-header,
.vector-menu,
.vector-menu-content,
.vector-toc,
.catlinks,
.mw-category,
.mw-category-group,
input,
textarea,
button,
select {
font-family: 'TaipediaShan',
'Noto Sans Myanmar',
sans-serif !important;
}
/* ==========================================
3. ARTICLE CONTENT
========================================== */
.mw-parser-output {
font-size: 17px;
line-height: 1.9;
}
.mw-parser-output p,
.mw-parser-output li,
.mw-parser-output td,
.mw-parser-output th,
.mw-parser-output blockquote,
.mw-parser-output span {
font-family: 'TaipediaShan',
'Noto Sans Myanmar',
sans-serif !important;
}
.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;
line-height: 1.7;
}
/* ==========================================
4. LIBRARY MAIN PAGE
========================================== */
.mw-parser-output .library-home {
max-width: 1200px;
margin: 0 auto;
font-family: 'TaipediaShan',
'Noto Sans Myanmar',
sans-serif !important;
}
.mw-parser-output .library-home * {
font-family: 'TaipediaShan',
'Noto Sans Myanmar',
sans-serif !important;
}
/* ==========================================
5. WELCOME HERO
========================================== */
.mw-parser-output .library-hero {
background: linear-gradient(
135deg,
#142d4e 0%,
#2459a6 100%
);
color: #ffffff;
padding: 55px 30px;
text-align: center;
border-radius: 18px;
margin-bottom: 35px;
}
.mw-parser-output .library-hero h1 {
color: #ffffff;
border: none;
font-size: 36px;
font-weight: 400;
margin: 0 0 15px;
line-height: 1.7;
}
.mw-parser-output .library-hero p {
color: #ffffff;
font-size: 17px;
line-height: 1.9;
margin: 0;
}
/* ==========================================
6. LIBRARY SECTION HEADING
========================================== */
.mw-parser-output .library-home > h2 {
font-size: 26px;
font-weight: 400;
color: #183153;
border-bottom: 2px solid #e2e8f0;
padding-bottom: 12px;
margin: 30px 0 25px;
line-height: 1.7;
}
/* ==========================================
7. RESPONSIVE CARD GRID
========================================== */
.mw-parser-output .library-grid {
display: grid !important;
grid-template-columns:
repeat(3, minmax(0, 1fr));
gap: 20px;
margin: 25px 0 40px;
align-items: stretch;
}
/* ==========================================
8. LIBRARY CARDS
========================================== */
.mw-parser-output .library-card {
display: flex;
flex-direction: column;
background: #ffffff;
border: 1px solid #dbe4ef;
border-radius: 16px;
padding: 24px;
min-width: 0;
box-sizing: border-box;
box-shadow:
0 4px 15px rgba(0, 0, 0, 0.06);
transition:
transform 0.25s ease,
box-shadow 0.25s ease,
border-color 0.25s ease;
}
.mw-parser-output .library-card:hover {
transform: translateY(-5px);
border-color: #2563eb;
box-shadow:
0 12px 28px rgba(0, 0, 0, 0.12);
}
/* ==========================================
9. CARD ICON
========================================== */
.mw-parser-output .library-icon {
font-size: 38px;
line-height: 1.4;
margin-bottom: 12px;
}
/* ==========================================
10. LIBRARY CATEGORY NUMBER
========================================== */
.mw-parser-output .library-number {
color: #2563eb;
font-size: 14px;
font-weight: 400;
letter-spacing: 1px;
margin-bottom: 6px;
}
/* ==========================================
11. SHAN CARD TITLES
========================================== */
.mw-parser-output .library-card h3 {
font-family: 'TaipediaShan',
'Noto Sans Myanmar',
sans-serif !important;
font-size: 21px;
font-weight: 400;
line-height: 1.8;
color: #183153;
margin: 8px 0 12px;
border: none;
padding: 0;
overflow-wrap: break-word;
}
/* ==========================================
12. CARD DESCRIPTIONS
========================================== */
.mw-parser-output .library-card p {
font-family: 'TaipediaShan',
'Noto Sans Myanmar',
sans-serif !important;
font-size: 15px;
font-weight: 400;
line-height: 1.9;
color: #64748b;
margin: 0 0 20px;
flex-grow: 1;
}
/* ==========================================
13. CARD LINKS
========================================== */
.mw-parser-output .library-card a {
font-family: 'TaipediaShan',
'Noto Sans Myanmar',
sans-serif !important;
display: inline-block;
font-size: 15px;
font-weight: 400;
color: #2563eb;
text-decoration: none;
transition: color 0.2s ease;
}
.mw-parser-output .library-card a:hover {
color: #1e40af;
text-decoration: underline;
}
/* ==========================================
14. CATEGORY PAGES
========================================== */
.mw-category,
.mw-category-group,
.mw-category-generated,
.catlinks {
font-family: 'TaipediaShan',
'Noto Sans Myanmar',
sans-serif !important;
line-height: 1.9;
}
.mw-category a,
.catlinks a {
font-family: inherit !important;
}
/* ==========================================
15. NAVIGATION AND MENU
========================================== */
.vector-menu a,
.vector-header a,
.vector-toc a,
.mw-page-container a,
.vector-page-toolbar a {
font-family: 'TaipediaShan',
'Noto Sans Myanmar',
sans-serif !important;
}
/* ==========================================
16. TABLET RESPONSIVE
========================================== */
@media (max-width: 900px) {
.mw-parser-output .library-grid {
grid-template-columns:
repeat(2, minmax(0, 1fr));
gap: 16px;
}
.mw-parser-output .library-card {
padding: 20px;
}
.mw-parser-output .library-hero {
padding: 40px 20px;
}
.mw-parser-output .library-hero h1 {
font-size: 30px;
}
}
/* ==========================================
17. MOBILE RESPONSIVE
========================================== */
@media (max-width: 600px) {
.mw-parser-output .library-grid {
grid-template-columns: 1fr;
gap: 15px;
}
.mw-parser-output .library-card {
padding: 20px;
border-radius: 14px;
}
.mw-parser-output .library-card h3 {
font-size: 19px;
}
.mw-parser-output .library-card p {
font-size: 14px;
}
.mw-parser-output .library-hero {
padding: 35px 18px;
border-radius: 14px;
}
.mw-parser-output .library-hero h1 {
font-size: 26px;
}
.mw-parser-output .library-hero p {
font-size: 15px;
}
.mw-parser-output .library-home > h2 {
font-size: 22px;
}
.mw-parser-output {
font-size: 16px;
line-height: 1.85;
}
}
/* ==========================================
END — TAIPEDIA STYLESHEET
========================================== */