MediaWiki:Common.css
Appearance
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/
/* ======================================
TAIPEDIA - CUSTOM SHAN FONT
Articles + Library Cards ONLY
====================================== */
/* 1. Load Shan.ttf */
@font-face {
font-family: 'TaipediaShan';
src: url('/resources/assets/fonts/Shan.ttf?v=5')
format('truetype');
font-weight: 400;
font-style: normal;
font-display: swap;
}
/* ======================================
2. ARTICLE / POST CONTENT
====================================== */
/* Article paragraphs, lists, tables */
.mw-parser-output > p,
.mw-parser-output > ul,
.mw-parser-output > ol,
.mw-parser-output > dl,
.mw-parser-output > div:not(.library-home),
.mw-parser-output table,
.mw-parser-output blockquote {
font-family: 'TaipediaShan',
'Noto Sans Myanmar',
sans-serif !important;
}
/* Nested article content */
.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 section 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;
}
/* Improve article readability */
.mw-parser-output {
font-size: 17px;
line-height: 1.9;
}
/* ======================================
3. LIBRARY CARDS
====================================== */
.mw-parser-output .library-home,
.mw-parser-output .library-home *,
.mw-parser-output .library-grid,
.mw-parser-output .library-card,
.mw-parser-output .library-card * {
font-family: 'TaipediaShan',
'Noto Sans Myanmar',
sans-serif !important;
}
/* Library card titles */
.mw-parser-output .library-card h3 {
font-size: 21px;
font-weight: 400;
line-height: 1.8;
}
/* Library descriptions */
.mw-parser-output .library-card p {
font-size: 15px;
line-height: 1.9;
}
/* Library links */
.mw-parser-output .library-card a {
font-size: 15px;
line-height: 1.8;
}
/* ======================================
4. MOBILE
====================================== */
@media (max-width: 600px) {
.mw-parser-output {
font-size: 16px;
line-height: 1.85;
}
.mw-parser-output .library-card h3 {
font-size: 19px;
}
.mw-parser-output .library-card p {
font-size: 14px;
}
}