MediaWiki:Common.css: Difference between revisions

From dsignwiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 19: 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: 1.5rem;          /* base = 16px */
     font-size: 1.2rem;          /* base = 16px */
     line-height: 1.2;           
     line-height: 1.2;           
}
}
Line 25: Line 25:
/* Paragraphs and list text */
/* Paragraphs and list text */
p, li, td, th {
p, li, td, th {
     font-size: 1.5rem;        /* slightly larger than base text */
     font-size: 1.2rem;        /* slightly larger than base text */
}
}



Revision as of 17:44, 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: 1.2rem;           /* base = 16px */
    line-height: 1.2;          
}

/* Paragraphs and list text */
p, li, td, th {
    font-size: 1.2rem;         /* slightly larger than base text */
}

/* === HEADINGS — Linux Libertine === */
h1, h2, h3, h4, h5, h6,
.firstHeading,
.mw-headline {
    font-family: "Linux Libertine", Georgia, serif;
}
.mw-body h1, .mw-heading1, .mw-body-content h1, .mw-body-content .mw-heading1 { font-size: 3rem; 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: 1.5rem;         /* sidebar smaller for contrast */
    line-height: 1.4;
}

/* === Blue → transparent gradient background for header (vertical) === */
.mw-head {
    background: linear-gradient(
        to bottom,                /* direction: top → bottom */
        rgba(0, 0, 255, 0.9),     /* solid blue at top */
        rgba(0, 0, 255, 0)        /* fully transparent at bottom */
    );
    border-radius: 0.5rem;         /* optional, rounded corners */
}




#partner-logos {
  display: flex;
  justify-content: right;
  align-items: right;
  flex-wrap: wrap;
  gap: 4rem;
  margin-top: 1rem;

}

#partner-logos img {
  height: 40px;
  object-fit: contain;     /* keeps aspect ratio, fits within the box */
  max-width: 100%;         /* prevents overflow */
  display: block;          /* removes inline gaps below images */
}





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