Jump to content

MediaWiki:Common.css: Difference between revisions

From Comuter Wiki
No edit summary
No edit summary
Line 7: Line 7:


/* 2. Header & Logo Layout */
/* 2. Header & Logo Layout */
/* Stacks the icon on top of the title */
.mw-logo {
.mw-logo {
     display: flex !important;
     display: flex !important;
Line 18: Line 17:
}
}


/* 3. Icon Sizing (The Computer Head) */
/* 3. Icon Sizing */
.mw-logo-icon {
.mw-logo-icon {
     width: 120px !important;  
     width: 120px !important;  
Line 33: Line 32:
     height: auto !important;
     height: auto !important;
     width: auto !important;
     width: auto !important;
     font-weight: bold;
     font-weight: bold !important;
    font-size: 1.2em !important; /* Makes the title a bit bigger */
    color: #202122 !important; /* Default dark text for light mode */
}
}


Line 41: Line 42:
     min-height: 160px !important;
     min-height: 160px !important;
     background-color: #ffffff !important;
     background-color: #ffffff !important;
    transition: background-color 0.2s ease;
}
}


/* 6. DARK MODE COMPATIBILITY */
/* 6. DARK MODE COMPATIBILITY */
/* This kicks in when you toggle the Dark Mode switch */
html.skin-theme-clientpref-night .mw-header {
html.skin-theme-clientpref-night .mw-header {
     background-color: #101418 !important; /* Deep grey to match Vector dark mode */
     background-color: #101418 !important;
}
}


/* Explicitly force the text to be light grey/white in Dark Mode */
html.skin-theme-clientpref-night .mw-logo-wordmark {
html.skin-theme-clientpref-night .mw-logo-wordmark {
     color: #eaecf0 !important; /* Light text for the title */
     color: #eaecf0 !important;
}
}


/* 7. Sticky Header (Scroll View) */
/* 7. Sticky Header (Scroll View) */
/* Shrinks the logo back down so it doesn't block the screen while reading */
.vector-sticky-header .mw-logo {
.vector-sticky-header .mw-logo {
     flex-direction: row !important;
     flex-direction: row !important;
Line 70: Line 69:
.vector-sticky-header .mw-logo-wordmark {
.vector-sticky-header .mw-logo-wordmark {
     margin-left: 10px !important;
     margin-left: 10px !important;
    font-size: 1em !important; /* Shrink text back for sticky header */
}
}

Revision as of 23:29, 16 April 2026

/* --- COMUTER WIKI FULL STYLING --- */

/* 1. Font Styling */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* 2. Header & Logo Layout */
.mw-logo {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    height: auto !important;
    padding: 10px !important;
    text-decoration: none !important;
    background: transparent !important;
}

/* 3. Icon Sizing */
.mw-logo-icon {
    width: 120px !important; 
    height: 120px !important;
    max-width: none !important;
    max-height: none !important;
    margin-bottom: 5px !important;
}

/* 4. Wordmark (The Text) */
.mw-logo-wordmark {
    display: block !important;
    text-align: center !important;
    height: auto !important;
    width: auto !important;
    font-weight: bold !important;
    font-size: 1.2em !important; /* Makes the title a bit bigger */
    color: #202122 !important; /* Default dark text for light mode */
}

/* 5. Header Sizing & Colors (Light Mode) */
.mw-header {
    height: auto !important;
    min-height: 160px !important;
    background-color: #ffffff !important;
}

/* 6. DARK MODE COMPATIBILITY */
html.skin-theme-clientpref-night .mw-header {
    background-color: #101418 !important;
}

/* Explicitly force the text to be light grey/white in Dark Mode */
html.skin-theme-clientpref-night .mw-logo-wordmark {
    color: #eaecf0 !important;
}

/* 7. Sticky Header (Scroll View) */
.vector-sticky-header .mw-logo {
    flex-direction: row !important;
    padding: 0 !important;
    margin-left: 5px !important;
}

.vector-sticky-header .mw-logo-icon {
    width: 35px !important;
    height: 35px !important;
    margin-bottom: 0 !important;
}

.vector-sticky-header .mw-logo-wordmark {
    margin-left: 10px !important;
    font-size: 1em !important; /* Shrink text back for sticky header */
}