MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 9: | Line 9: | ||
src: url("/resources/fonts/LinLibertine_R.ttf"); | src: url("/resources/fonts/LinLibertine_R.ttf"); | ||
} | } | ||
| Line 21: | Line 19: | ||
.mw-parser-output { | .mw-parser-output { | ||
font-family: "Liberation Sans", Arial, Helvetica, sans-serif; | font-family: "Liberation Sans", Arial, Helvetica, sans-serif; | ||
font-size: | font-size: 1rem; /* base = 16px */ | ||
line-height: 1. | line-height: 1.5; /* comfortable reading */ | ||
} | } | ||
/* Paragraphs and list text */ | /* Paragraphs and list text */ | ||
p, li, td, th { | p, li, td, th { | ||
font-size: | font-size: 1.1rem; /* slightly larger than base text */ | ||
} | } | ||
| Line 37: | Line 34: | ||
font-family: "Linux Libertine", Georgia, serif; | font-family: "Linux Libertine", Georgia, serif; | ||
} | } | ||
/* Optional: give headings a clear scale hierarchy */ | |||
h1 { font-size: 2.5rem; line-height: 1.15; } | |||
/* === SIDEBAR MENU === */ | /* === SIDEBAR MENU === */ | ||
| Line 45: | Line 46: | ||
#p-lang { | #p-lang { | ||
font-family: "Liberation Sans", Arial, Helvetica, sans-serif; | font-family: "Liberation Sans", Arial, Helvetica, sans-serif; | ||
font-size: | font-size: 0.9rem; /* sidebar smaller for contrast */ | ||
line-height: 1. | line-height: 1.4; | ||
} | } | ||
Revision as of 16:26, 3 November 2025
/* CSS placed here will be applied to all skins */
@font-face {
font-family: "Liberation Sans";
src: url("/resources/fonts/LiberationSans-Regular.ttf");
}
@font-face {
font-family: "Linux Libertine";
src: url("/resources/fonts/LinLibertine_R.ttf");
}
/* === GLOBAL TYPOGRAPHY === */
/* Base body text — Liberation Sans */
html,
body,
.mw-body,
.mw-parser-output {
font-family: "Liberation Sans", Arial, Helvetica, sans-serif;
font-size: 1rem; /* base = 16px */
line-height: 1.5; /* comfortable reading */
}
/* Paragraphs and list text */
p, li, td, th {
font-size: 1.1rem; /* slightly larger than base text */
}
/* === HEADINGS — Linux Libertine === */
h1, h2, h3, h4, h5, h6,
.firstHeading,
.mw-headline {
font-family: "Linux Libertine", Georgia, serif;
}
/* Optional: give headings a clear scale hierarchy */
h1 { font-size: 2.5rem; line-height: 1.15; }
/* === SIDEBAR MENU === */
#mw-panel,
.vector-menu-content,
#p-navigation,
#p-tb,
#p-lang {
font-family: "Liberation Sans", Arial, Helvetica, sans-serif;
font-size: 0.9rem; /* sidebar smaller for contrast */
line-height: 1.4;
}
/* Hide the automatic Tools and Special pages sections */
#p-tb {
display: none !important;
}