MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
/* ========================================== | /* ========================================== | ||
TAIPEDIA DIGITAL LIBRARY | TAIPEDIA DIGITAL LIBRARY | ||
Complete | Complete Custom CSS | ||
========================================== */ | |||
/* ========================================== | |||
1. CUSTOM SHAN FONT | |||
========================================== */ | |||
@font-face { | @font-face { | ||
font-family: "TaipediaShan"; | font-family: "TaipediaShan"; | ||
src: url("/fonts/Shan.ttf") | src: url("/fonts/Shan.ttf?v=13") | ||
format("truetype"); | format("truetype"); | ||
font-style: normal; | |||
font-weight: 400; | font-weight: 400; | ||
font-display: swap; | font-display: swap; | ||
} | } | ||
/* | |||
/* ========================================== | |||
2. ARTICLE / POST FONT | |||
========================================== */ | |||
.mw-parser-output { | .mw-parser-output { | ||
font-family: "TaipediaShan", | font-family: "TaipediaShan", | ||
"Noto Sans Myanmar", | |||
sans-serif !important; | sans-serif !important; | ||
font-size: 17px; | |||
line-height: 1.9; | |||
} | |||
/* 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; | |||
line-height: 1.7; | |||
} | |||
/* Article paragraphs, lists and tables */ | |||
.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; | |||
line-height: 1.9; | |||
} | |||
/* Preserve code typography */ | |||
.mw-parser-output pre, | |||
.mw-parser-output code, | |||
.mw-parser-output .mw-code { | |||
font-family: monospace !important; | |||
} | |||
/* ========================================== | |||
3. LIBRARY HOMEPAGE | |||
========================================== */ | |||
.mw-parser-output .library-home { | |||
max-width: 1200px; | |||
margin: 0 auto; | |||
} | } | ||
.mw-parser-output .library-home, | .mw-parser-output .library-home, | ||
.mw-parser-output .library-home *, | .mw-parser-output .library-home *, | ||
| Line 26: | Line 79: | ||
.mw-parser-output .library-card * { | .mw-parser-output .library-card * { | ||
font-family: "TaipediaShan", | font-family: "TaipediaShan", | ||
"Noto Sans Myanmar", | |||
sans-serif !important; | sans-serif !important; | ||
} | } | ||
/* ========================================== | |||
4. LIBRARY HERO BANNER | |||
========================================== */ | |||
.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; | |||
font-size: 36px; | |||
font-weight: 400; | |||
line-height: 1.7; | |||
border: none; | |||
padding: 0; | |||
margin: 0 0 15px; | |||
} | |||
.mw-parser-output .library-hero p { | |||
color: #ffffff; | |||
font-size: 17px; | |||
line-height: 1.9; | |||
margin: 0; | |||
} | |||
/* ========================================== | |||
5. LIBRARY SECTION HEADING | |||
========================================== */ | |||
.mw-parser-output .library-home > h2 { | |||
font-size: 26px; | |||
font-weight: 400; | |||
line-height: 1.7; | |||
color: #183153; | |||
border-bottom: 2px solid #e2e8f0; | |||
padding-bottom: 12px; | |||
margin: 30px 0 25px; | |||
} | |||
/* ========================================== | /* ========================================== | ||
| Line 35: | Line 141: | ||
.mw-parser-output .library-grid { | .mw-parser-output .library-grid { | ||
display: grid !important; | display: grid !important; | ||
grid-template-columns: | grid-template-columns: | ||
repeat(3, minmax(0, 1fr)); | repeat(3, minmax(0, 1fr)); | ||
gap: 20px; | gap: 20px; | ||
align-items: stretch; | align-items: stretch; | ||
margin: 25px 0 40px; | margin: 25px 0 40px; | ||
} | } | ||
| Line 53: | Line 156: | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
min-width: 0; | |||
padding: 24px; | |||
box-sizing: border-box; | |||
background: #ffffff; | background: #ffffff; | ||
color: #183153; | color: #183153; | ||
border: 1px solid #dbe4ef; | border: 1px solid #dbe4ef; | ||
border-radius: 16px; | border-radius: 16px; | ||
box-shadow: | box-shadow: | ||
| Line 74: | Line 174: | ||
} | } | ||
.mw-parser-output .library-card:hover { | .mw-parser-output .library-card:hover { | ||
transform: translateY(-5px); | transform: translateY(-5px); | ||
border-color: #2563eb; | border-color: #2563eb; | ||
box-shadow: | box-shadow: | ||
0 12px 28px rgba(0, 0, 0, 0.12); | 0 12px 28px rgba(0, 0, 0, 0.12); | ||
| Line 85: | Line 183: | ||
/* ========================================== | /* ========================================== | ||
8. CARD ICON | 8. CARD ICON AND NUMBER | ||
========================================== */ | ========================================== */ | ||
| Line 93: | Line 191: | ||
margin-bottom: 12px; | margin-bottom: 12px; | ||
} | } | ||
.mw-parser-output .library-number { | .mw-parser-output .library-number { | ||
| Line 103: | Line 196: | ||
font-size: 14px; | font-size: 14px; | ||
font-weight: 400; | font-weight: 400; | ||
letter-spacing: 1px; | letter-spacing: 1px; | ||
margin-bottom: 6px; | margin-bottom: 6px; | ||
| Line 110: | Line 202: | ||
/* ========================================== | /* ========================================== | ||
9. LIBRARY CARD TITLE | |||
========================================== */ | ========================================== */ | ||
| Line 121: | Line 213: | ||
font-weight: 400; | font-weight: 400; | ||
line-height: 1.8; | line-height: 1.8; | ||
color: #183153; | color: #183153; | ||
margin: 8px 0 12px; | margin: 8px 0 12px; | ||
padding: 0; | padding: 0; | ||
border: none; | border: none; | ||
overflow-wrap: break-word; | overflow-wrap: break-word; | ||
| Line 133: | Line 223: | ||
/* ========================================== | /* ========================================== | ||
10. LIBRARY CARD DESCRIPTION | |||
========================================== */ | ========================================== */ | ||
.mw-parser-output .library-card p { | .mw-parser-output .library-card p { | ||
font-size: 15px; | font-size: 15px; | ||
font-weight: 400; | font-weight: 400; | ||
line-height: 1.9; | line-height: 1.9; | ||
color: #64748b; | color: #64748b; | ||
margin: 0 0 20px; | margin: 0 0 20px; | ||
flex-grow: 1; | flex-grow: 1; | ||
} | } | ||
| Line 153: | Line 237: | ||
/* ========================================== | /* ========================================== | ||
11. LIBRARY CARD LINKS | |||
========================================== */ | ========================================== */ | ||
.mw-parser-output .library-card a { | .mw-parser-output .library-card a { | ||
display: inline-block; | display: inline-block; | ||
color: #2563eb; | color: #2563eb; | ||
font-size: 15px; | font-size: 15px; | ||
font-weight: 400; | font-weight: 400; | ||
text-decoration: none; | text-decoration: none; | ||
transition: color 0.2s ease; | transition: color 0.2s ease; | ||
} | } | ||
| Line 179: | Line 256: | ||
/* ========================================== | /* ========================================== | ||
12. CATEGORY PAGE CONTENT | |||
========================================== */ | ========================================== */ | ||
.mw-category, | .mw-category, | ||
.mw-category-group, | .mw-category-group, | ||
.mw-category-generated { | .mw-category-generated, | ||
.mw-category a, | |||
.mw-category-group a { | |||
font-family: "TaipediaShan", | font-family: "TaipediaShan", | ||
"Noto Sans Myanmar", | "Noto Sans Myanmar", | ||
sans-serif !important; | sans-serif !important; | ||
line-height: 1.9; | |||
} | |||
/* ========================================== | |||
13. CREATE ARTICLE FORM | |||
========================================== */ | |||
.taipedia-create-box { | |||
margin: 30px 0; | |||
padding: 35px 24px; | |||
text-align: center; | |||
background: #f0f6ff; | |||
border: 1px solid #dbeafe; | |||
border-radius: 18px; | |||
} | |||
.taipedia-create-box h2 { | |||
color: #173a70; | |||
font-size: 25px; | |||
font-weight: 400; | |||
border: none; | |||
margin: 0 0 12px; | |||
} | |||
.taipedia-create-box p { | |||
color: #64748b; | |||
line-height: 1.8; | |||
} | |||
.taipedia-create-box input[type="text"] { | |||
padding: 12px; | |||
border: 1px solid #cbd5e1; | |||
border-radius: 8px; | |||
max-width: 100%; | |||
box-sizing: border-box; | |||
} | |||
.taipedia-create-box input[type="submit"], | |||
.taipedia-create-box button { | |||
background: #2459a6; | |||
color: #ffffff; | |||
border: none; | |||
padding: 12px 22px; | |||
border-radius: 8px; | |||
cursor: pointer; | |||
font-weight: 600; | |||
} | |||
.taipedia-create-box input[type="submit"]:hover, | |||
.taipedia-create-box button:hover { | |||
background: #173a70; | |||
} | |||
.taipedia-create-note { | |||
font-size: 13px; | |||
margin-top: 18px; | |||
} | } | ||
/* | |||
/* ========================================== | |||
. | 14. HIDE CREATE FORM BY DEFAULT | ||
========================================== */ | |||
/* Logged-in visibility rule is explained below */ | |||
.taipedia-create-box { | |||
display: none; | |||
} | } | ||
/* ========================================== | /* ========================================== | ||
15. TABLET RESPONSIVE | |||
========================================== */ | ========================================== */ | ||
| Line 210: | Line 347: | ||
grid-template-columns: | grid-template-columns: | ||
repeat(2, minmax(0, 1fr)); | repeat(2, minmax(0, 1fr)); | ||
gap: 16px; | gap: 16px; | ||
} | } | ||
| Line 229: | Line 365: | ||
/* ========================================== | /* ========================================== | ||
16. MOBILE RESPONSIVE | |||
========================================== */ | ========================================== */ | ||
| Line 273: | Line 409: | ||
font-size: 22px; | font-size: 22px; | ||
} | } | ||
.taipedia-create-box { | |||
padding: 25px 15px; | |||
} | |||
.taipedia-create-box h2 { | |||
font-size: 22px; | |||
} | |||
.taipedia-create-box { | |||
} | } | ||
/* ========================================== | /* ========================================== | ||
END | END OF TAIPEDIA CSS | ||
========================================== */ | ========================================== */ | ||
Revision as of 18:29, 9 October 2026
/* ==========================================
TAIPEDIA DIGITAL LIBRARY
Complete Custom CSS
========================================== */
/* ==========================================
1. CUSTOM SHAN FONT
========================================== */
@font-face {
font-family: "TaipediaShan";
src: url("/fonts/Shan.ttf?v=13")
format("truetype");
font-style: normal;
font-weight: 400;
font-display: swap;
}
/* ==========================================
2. ARTICLE / POST FONT
========================================== */
.mw-parser-output {
font-family: "TaipediaShan",
"Noto Sans Myanmar",
sans-serif !important;
font-size: 17px;
line-height: 1.9;
}
/* 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;
line-height: 1.7;
}
/* Article paragraphs, lists and tables */
.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;
line-height: 1.9;
}
/* Preserve code typography */
.mw-parser-output pre,
.mw-parser-output code,
.mw-parser-output .mw-code {
font-family: monospace !important;
}
/* ==========================================
3. LIBRARY HOMEPAGE
========================================== */
.mw-parser-output .library-home {
max-width: 1200px;
margin: 0 auto;
}
.mw-parser-output .library-home,
.mw-parser-output .library-home *,
.mw-parser-output .library-card,
.mw-parser-output .library-card * {
font-family: "TaipediaShan",
"Noto Sans Myanmar",
sans-serif !important;
}
/* ==========================================
4. LIBRARY HERO BANNER
========================================== */
.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;
font-size: 36px;
font-weight: 400;
line-height: 1.7;
border: none;
padding: 0;
margin: 0 0 15px;
}
.mw-parser-output .library-hero p {
color: #ffffff;
font-size: 17px;
line-height: 1.9;
margin: 0;
}
/* ==========================================
5. LIBRARY SECTION HEADING
========================================== */
.mw-parser-output .library-home > h2 {
font-size: 26px;
font-weight: 400;
line-height: 1.7;
color: #183153;
border-bottom: 2px solid #e2e8f0;
padding-bottom: 12px;
margin: 30px 0 25px;
}
/* ==========================================
6. LIBRARY GRID
========================================== */
.mw-parser-output .library-grid {
display: grid !important;
grid-template-columns:
repeat(3, minmax(0, 1fr));
gap: 20px;
align-items: stretch;
margin: 25px 0 40px;
}
/* ==========================================
7. LIBRARY CARDS
========================================== */
.mw-parser-output .library-card {
display: flex;
flex-direction: column;
min-width: 0;
padding: 24px;
box-sizing: border-box;
background: #ffffff;
color: #183153;
border: 1px solid #dbe4ef;
border-radius: 16px;
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);
}
/* ==========================================
8. CARD ICON AND NUMBER
========================================== */
.mw-parser-output .library-icon {
font-size: 38px;
line-height: 1.4;
margin-bottom: 12px;
}
.mw-parser-output .library-number {
color: #2563eb;
font-size: 14px;
font-weight: 400;
letter-spacing: 1px;
margin-bottom: 6px;
}
/* ==========================================
9. LIBRARY CARD TITLE
========================================== */
.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;
padding: 0;
border: none;
overflow-wrap: break-word;
}
/* ==========================================
10. LIBRARY CARD DESCRIPTION
========================================== */
.mw-parser-output .library-card p {
font-size: 15px;
font-weight: 400;
line-height: 1.9;
color: #64748b;
margin: 0 0 20px;
flex-grow: 1;
}
/* ==========================================
11. LIBRARY CARD LINKS
========================================== */
.mw-parser-output .library-card a {
display: inline-block;
color: #2563eb;
font-size: 15px;
font-weight: 400;
text-decoration: none;
transition: color 0.2s ease;
}
.mw-parser-output .library-card a:hover {
color: #1e40af;
text-decoration: underline;
}
/* ==========================================
12. CATEGORY PAGE CONTENT
========================================== */
.mw-category,
.mw-category-group,
.mw-category-generated,
.mw-category a,
.mw-category-group a {
font-family: "TaipediaShan",
"Noto Sans Myanmar",
sans-serif !important;
line-height: 1.9;
}
/* ==========================================
13. CREATE ARTICLE FORM
========================================== */
.taipedia-create-box {
margin: 30px 0;
padding: 35px 24px;
text-align: center;
background: #f0f6ff;
border: 1px solid #dbeafe;
border-radius: 18px;
}
.taipedia-create-box h2 {
color: #173a70;
font-size: 25px;
font-weight: 400;
border: none;
margin: 0 0 12px;
}
.taipedia-create-box p {
color: #64748b;
line-height: 1.8;
}
.taipedia-create-box input[type="text"] {
padding: 12px;
border: 1px solid #cbd5e1;
border-radius: 8px;
max-width: 100%;
box-sizing: border-box;
}
.taipedia-create-box input[type="submit"],
.taipedia-create-box button {
background: #2459a6;
color: #ffffff;
border: none;
padding: 12px 22px;
border-radius: 8px;
cursor: pointer;
font-weight: 600;
}
.taipedia-create-box input[type="submit"]:hover,
.taipedia-create-box button:hover {
background: #173a70;
}
.taipedia-create-note {
font-size: 13px;
margin-top: 18px;
}
/* ==========================================
14. HIDE CREATE FORM BY DEFAULT
========================================== */
/* Logged-in visibility rule is explained below */
.taipedia-create-box {
display: none;
}
/* ==========================================
15. 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;
}
}
/* ==========================================
16. MOBILE RESPONSIVE
========================================== */
@media (max-width: 600px) {
.mw-parser-output {
font-size: 16px;
line-height: 1.85;
}
.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;
}
.taipedia-create-box {
padding: 25px 15px;
}
.taipedia-create-box h2 {
font-size: 22px;
}
}
/* ==========================================
END OF TAIPEDIA CSS
========================================== */