MediaWiki:Common.css: Difference between revisions

From dsignwiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 21: Line 21:
.mw-parser-output {
.mw-parser-output {
     font-family: "Liberation Sans", Arial, Helvetica, sans-serif;
     font-family: "Liberation Sans", Arial, Helvetica, sans-serif;
     font-size: 1rem;          /* 100% = roughly 16px (browser default) */
     font-size: 100%;          /* 100% = roughly 16px (browser default) */
     line-height: 1.15;          /* comfortable reading */
     line-height: 1.2;          /* comfortable reading */


}
}
Line 45: Line 45:
#p-lang {
#p-lang {
     font-family: "Liberation Sans", Arial, Helvetica, sans-serif;
     font-family: "Liberation Sans", Arial, Helvetica, sans-serif;
     font-size: 1.5rem;           
     font-size: 120%;           
     line-height: 1.1;
     line-height: 1.1;
}
}

Revision as of 16:24, 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: 100%;           /* 100% = roughly 16px (browser default) */
    line-height: 1.2;          /* comfortable reading */

}

/* Paragraphs and list text */
p, li, td, th {
    font-size: 110%;           /* same as body for consistency */
}

/* === HEADINGS — Linux Libertine === */
h1, h2, h3, h4, h5, h6,
.firstHeading,
.mw-headline {
    font-family: "Linux Libertine", Georgia, serif;
}

/* === SIDEBAR MENU === */
#mw-panel,
.vector-menu-content,
#p-navigation,
#p-tb,
#p-lang {
    font-family: "Liberation Sans", Arial, Helvetica, sans-serif;
    font-size: 120%;           
    line-height: 1.1;
}






/* Hide the automatic Tools and Special pages sections */
#p-tb { 
    display: none !important;
}