Jump to content

MediaWiki:Common.css: Difference between revisions

From Startup Mojave Wiki
No edit summary
No edit summary
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* Import Montserrat font with multiple weights */
/* Import Montserrat font with multiple weights */
@import url('https://fonts.googleapis.com/css?family=Montserrat:100,200,300,400,500,600,700,800,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Montserrat:100,200,300,400,500,600,700,800,900&display=swap');


/* Stronger selector to override MediaWiki defaults */
/* Base font for entire site */
.mw-body-header h1#firstHeading,  
body, body.mw-special, .mw-body, #content {
.mw-body-header h1#firstHeading span.mw-page-title-main {
    font-family: "Montserrat", sans-serif !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #000 !important;
}
 
/* Apply Montserrat to the wordmark on all pages, including Special Pages */
.mw-logo-wordmark,
body.special .mw-logo-wordmark,  
.mw-specialpages .mw-logo-wordmark {
    font-family: "Montserrat", sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.5em !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #000 !important;
}
 
/* Ensure the logo container is styled correctly */
.mw-logo-container,
body.special .mw-logo-container,
.mw-specialpages .mw-logo-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 0 !important;
}
 
/* Apply Montserrat as the default font */
body {
     font-family: "Montserrat", sans-serif;
     font-family: "Montserrat", sans-serif;
     font-weight: 400; /* Regular weight */
     font-weight: 400;
}
}


/* Force Montserrat on the wordmark */
/* ----- MAIN PAGE TITLE ----- */
.mw-logo-wordmark {
.mw-body-header h1#firstHeading,
.mw-body-header h1#firstHeading span.mw-page-title-main,
.mw-special h1#firstHeading,
body.special h1#firstHeading {
     font-family: "Montserrat", sans-serif !important;
     font-family: "Montserrat", sans-serif !important;
     font-weight: 700 !important;
     font-weight: 900 !important;
    font-size: 1.2em !important;
     text-transform: uppercase !important;
     text-transform: uppercase !important;
     letter-spacing: 0.05em !important;
     letter-spacing: 0.05em !important;
Line 52: Line 20:
}
}


/* Override Vector-specific styles */
/* ----- SITE WORDMARK ----- */
.vector-header-container .mw-logo-wordmark {
/* Consolidated wordmark styling - works on all pages */
.mw-logo-wordmark,
body.special .mw-logo-wordmark,
.mw-specialpages .mw-logo-wordmark,
.vector-header-container .mw-logo-wordmark,
body.mw-special .mw-logo-wordmark {
     font-family: "Montserrat", sans-serif !important;
     font-family: "Montserrat", sans-serif !important;
     font-weight: 700 !important;
     font-weight: 800 !important;
     font-size: 1.2em !important;
     font-size: 1.3em !important;
     text-transform: uppercase !important;
     text-transform: uppercase !important;
     letter-spacing: 0.05em !important;
     letter-spacing: 0.05em !important;
Line 62: Line 35:
}
}


/* Ensure the logo container does not interfere */
/* Logo container styling */
.mw-logo-container {
.mw-logo-container,
body.special .mw-logo-container,
.mw-specialpages .mw-logo-container,
body.mw-special .mw-logo-container {
     display: flex !important;
     display: flex !important;
     align-items: center !important;
     align-items: center !important;
Line 70: Line 46:
}
}


/* Headings */
/* ----- HEADINGS ----- */
h1 {
h1 {
     font-family: "Montserrat", sans-serif;
     font-family: "Montserrat", sans-serif;
     font-weight: 900; /* Extra bold for main headings */
     font-weight: 900;
     text-transform: uppercase;
     text-transform: uppercase;
}
}
Line 92: Line 68:
}
}


/* ----- TEXT FORMATTING ----- */
/* Italics and emphasis */
/* Italics and emphasis */
em, i {
em, i {
     font-family: "Montserrat", sans-serif;
     font-family: "Montserrat", sans-serif;
     font-style: italic;
     font-style: italic;
     font-weight: 300; /* Lighter for contrast */
     font-weight: 300;
}
}


Line 102: Line 79:
strong, b {
strong, b {
     font-family: "Montserrat", sans-serif;
     font-family: "Montserrat", sans-serif;
     font-weight: 700; /* Bold */
     font-weight: 700;
}
}


/* Code blocks and monospaced text */
/* Code blocks */
pre, code {
pre, code {
     font-family: "Montserrat", sans-serif;
     font-family: "Montserrat", sans-serif;
     font-weight: 500; /* Medium weight */
     font-weight: 500;
     background-color: #f5f5f5;
     background-color: #f5f5f5;
     padding: 5px;
     padding: 5px;
Line 114: Line 91:
}
}


/* Navigation menus */
/* ----- UI ELEMENTS ----- */
#p-navigation, #mw-panel {
/* Navigation */
#p-navigation, #mw-panel,
body.special #p-navigation, body.special #mw-panel,
body.mw-special #p-navigation, body.mw-special #mw-panel {
     font-family: "Montserrat", sans-serif;
     font-family: "Montserrat", sans-serif;
     font-weight: 600;
     font-weight: 600;
Line 121: Line 101:


/* Footer */
/* Footer */
#footer {
#footer, body.special #footer, body.mw-special #footer {
     font-family: "Montserrat", sans-serif;
     font-family: "Montserrat", sans-serif;
     font-weight: 400;
     font-weight: 400;
}
}


/* Sidebar */
/* Form elements */
#mw-panel {
button, input, select, textarea,
    font-family: "Montserrat", sans-serif;
body.special button, body.special input, body.special select, body.special textarea {
    font-weight: 500;
}
 
/* Buttons and form elements */
button, input, select, textarea {
     font-family: "Montserrat", sans-serif;
     font-family: "Montserrat", sans-serif;
     font-weight: 600;
     font-weight: 600;

Revision as of 02:45, 26 February 2025

/* Import Montserrat font with multiple weights */
@import url('https://fonts.googleapis.com/css?family=Montserrat:100,200,300,400,500,600,700,800,900&display=swap');

/* Base font for entire site */
body, body.mw-special, .mw-body, #content {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
}

/* ----- MAIN PAGE TITLE ----- */
.mw-body-header h1#firstHeading,
.mw-body-header h1#firstHeading span.mw-page-title-main,
.mw-special h1#firstHeading,
body.special h1#firstHeading {
    font-family: "Montserrat", sans-serif !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #000 !important;
}

/* ----- SITE WORDMARK ----- */
/* Consolidated wordmark styling - works on all pages */
.mw-logo-wordmark,
body.special .mw-logo-wordmark,
.mw-specialpages .mw-logo-wordmark,
.vector-header-container .mw-logo-wordmark,
body.mw-special .mw-logo-wordmark {
    font-family: "Montserrat", sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.3em !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #000 !important;
}

/* Logo container styling */
.mw-logo-container,
body.special .mw-logo-container,
.mw-specialpages .mw-logo-container,
body.mw-special .mw-logo-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 0 !important;
}

/* ----- HEADINGS ----- */
h1 {
    font-family: "Montserrat", sans-serif;
    font-weight: 900;
    text-transform: uppercase;
}

h2 {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
}

h3 {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
}

h4, h5, h6 {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
}

/* ----- TEXT FORMATTING ----- */
/* Italics and emphasis */
em, i {
    font-family: "Montserrat", sans-serif;
    font-style: italic;
    font-weight: 300;
}

/* Bold text */
strong, b {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
}

/* Code blocks */
pre, code {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    background-color: #f5f5f5;
    padding: 5px;
    border-radius: 3px;
}

/* ----- UI ELEMENTS ----- */
/* Navigation */
#p-navigation, #mw-panel,
body.special #p-navigation, body.special #mw-panel,
body.mw-special #p-navigation, body.mw-special #mw-panel {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
}

/* Footer */
#footer, body.special #footer, body.mw-special #footer {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
}

/* Form elements */
button, input, select, textarea,
body.special button, body.special input, body.special select, body.special textarea {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}