MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* | / | ||
TAIPEDIA | /* ====================================== | ||
TAIPEDIA - CUSTOM SHAN FONT | |||
Articles + Library Cards ONLY | |||
====================================== */ | |||
/* 1. Load Shan.ttf */ | |||
@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=5') | ||
format('truetype'); | format('truetype'); | ||
font-weight: 400; | |||
font-style: normal; | font-style: normal; | ||
font-display: swap; | 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- | .mw-parser-output table, | ||
.mw-parser-output blockquote { | |||
.mw-parser-output, | |||
.mw- | |||
.mw- | |||
.mw- | |||
. | |||
. | |||
.mw- | |||
font-family: 'TaipediaShan', | font-family: 'TaipediaShan', | ||
'Noto Sans Myanmar', | |||
sans-serif !important; | |||
} | } | ||
/* Nested article content */ | |||
/* | |||
.mw-parser-output p, | .mw-parser-output p, | ||
.mw-parser-output li, | .mw-parser-output li, | ||
.mw-parser-output td, | .mw-parser-output td, | ||
.mw-parser-output th, | .mw-parser-output th, | ||
.mw-parser-output blockquote | .mw-parser-output blockquote { | ||
font-family: 'TaipediaShan', | font-family: 'TaipediaShan', | ||
'Noto Sans Myanmar', | |||
sans-serif !important; | |||
} | } | ||
/* Article section headings */ | |||
.mw-parser-output h1, | .mw-parser-output h1, | ||
.mw-parser-output h2, | .mw-parser-output h2, | ||
| Line 71: | Line 51: | ||
.mw-parser-output h5, | .mw-parser-output h5, | ||
.mw-parser-output h6 { | .mw-parser-output h6 { | ||
font-family: 'TaipediaShan', | font-family: 'TaipediaShan', | ||
'Noto Sans Myanmar', | 'Noto Sans Myanmar', | ||
| Line 88: | Line 56: | ||
} | } | ||
/* Improve article readability */ | |||
.mw-parser-output { | |||
/* | |||
.mw-parser-output | |||
font-size: 17px; | font-size: 17px; | ||
line-height: 1.9; | 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- | .mw-parser-output .library-card * { | ||
.mw-parser-output .library-card | |||
font-family: 'TaipediaShan', | font-family: 'TaipediaShan', | ||
'Noto Sans Myanmar', | 'Noto Sans Myanmar', | ||
sans-serif !important; | sans-serif !important; | ||
} | |||
/* Library card titles */ | |||
.mw-parser-output .library-card h3 { | |||
font-size: 21px; | font-size: 21px; | ||
font-weight: 400; | font-weight: 400; | ||
line-height: 1.8; | line-height: 1.8; | ||
} | } | ||
/* Library descriptions */ | |||
/* | |||
.mw-parser-output .library-card p { | .mw-parser-output .library-card p { | ||
font-size: 15px; | font-size: 15px; | ||
line-height: 1.9; | line-height: 1.9; | ||
} | } | ||
/* Library links */ | |||
/* | |||
.mw-parser-output .library-card a { | .mw-parser-output .library-card a { | ||
font-size: 15px; | font-size: 15px; | ||
line-height: 1.8; | |||
line-height: 1. | |||
} | } | ||
/* ====================================== | |||
4. MOBILE | |||
====================================== */ | |||
/* | |||
@media (max-width: 600px) { | @media (max-width: 600px) { | ||
.mw-parser-output { | |||
.mw-parser-output | font-size: 16px; | ||
line-height: 1.85; | |||
} | } | ||
| Line 377: | Line 111: | ||
.mw-parser-output .library-card p { | .mw-parser-output .library-card p { | ||
font-size: 14px; | font-size: 14px; | ||
} | } | ||
} | } | ||
Revision as of 19:15, 8 October 2026
/
/* ======================================
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;
}
}