MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* Custom Shan Font */ | |||
/* Taipedia Custom Shan Font */ | |||
@font-face { | @font-face { | ||
font-family: ' | font-family: 'TaipediaShan'; | ||
src: url('/resources/assets/fonts/Shan.ttf') | src: url('/resources/assets/fonts/Shan.ttf') format('truetype'); | ||
font-style: normal; | |||
font-weight: 400; | font-weight: 400; | ||
font-display: swap; | font-display: swap; | ||
} | } | ||
/* Apply | /* Apply font across the wiki */ | ||
body, | body, | ||
.mw-body, | .mw-body, | ||
| Line 17: | Line 17: | ||
.mw-page-title-main, | .mw-page-title-main, | ||
.vector-menu, | .vector-menu, | ||
.vector-menu-content, | |||
.library-home, | .library-home, | ||
.library-card, | .library-card, | ||
input, | |||
font-family: ' | textarea, | ||
button { | |||
font-family: 'TaipediaShan', sans-serif !important; | |||
} | } | ||
/* Shan text | /* Improve Shan text readability */ | ||
.mw-parser-output | .mw-parser-output { | ||
line-height: 1.9; | line-height: 1.9; | ||
} | } | ||
.library-card h3 { | |||
line-height: 1.7; | |||
} | |||
Revision as of 18:42, 8 October 2026
/* Taipedia Custom Shan Font */
@font-face {
font-family: 'TaipediaShan';
src: url('/resources/assets/fonts/Shan.ttf') format('truetype');
font-style: normal;
font-weight: 400;
font-display: swap;
}
/* Apply font across the wiki */
body,
.mw-body,
.mw-parser-output,
.mw-page-title-main,
.vector-menu,
.vector-menu-content,
.library-home,
.library-card,
input,
textarea,
button {
font-family: 'TaipediaShan', sans-serif !important;
}
/* Improve Shan text readability */
.mw-parser-output {
line-height: 1.9;
}
.library-card h3 {
line-height: 1.7;
}
/* Taipedia Library Cards */
.library-home {
max-width: 1200px;
margin: 0 auto;
}
.library-grid {
display: grid !important;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 20px;
margin: 25px 0;
}
.library-card {
display: block;
background: #ffffff;
border: 1px solid #dbe4ef;
border-radius: 16px;
padding: 24px;
box-shadow: 0 4px 15px rgba(0,0,0,0.08);
box-sizing: border-box;
min-width: 0;
}
.library-card:hover {
border-color: #2563eb;
box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}
.library-card h3 {
color: #183153;
font-size: 20px;
margin: 10px 0;
}
.library-card p {
font-size: 14px;
color: #64748b;
}
.library-icon {
font-size: 36px;
}
.library-number {
color: #2563eb;
font-weight: bold;
margin-top: 12px;
}
@media (max-width: 900px) {
.library-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 600px) {
.library-grid {
grid-template-columns: 1fr;
}
}