Jump to content

MediaWiki:Common.css: Difference between revisions

From Comuter Wiki
Created page with "CSS placed here will be applied to all skins: body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important; }"
 
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* --- COMUTER WIKI CLEAN STYLING --- */
 
/* 1. Global Font */
body {
body {
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}
/* 2. Logo Container */
.mw-logo {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-decoration: none !important;
    background: transparent !important;
    height: auto !important;
    padding: 10px !important;
}
/* 3. The Icon (Computer Head) */
.mw-logo-icon {
    width: 120px !important;
    height: 120px !important;
    max-width: none !important;
    max-height: none !important;
}
/* 4. The Wordmark/Text */
/* We use var(--color-base) to automatically flip text color when the theme changes */
.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;
    color: var(--color-base, #202122) !important;
}
/* 5. Header Sizing */
/* We removed all hardcoded background colors so Vector 2022 can handle itself natively */
.mw-header {
    height: auto !important;
    min-height: 160px !important;
}
/* 6. Sticky Header (Scroll View) */
.vector-sticky-header .mw-logo {
    flex-direction: row !important;
    padding: 0 !important;
}
.vector-sticky-header .mw-logo-icon {
    width: 35px !important;
    height: 35px !important;
}
.vector-sticky-header .mw-logo-wordmark {
    margin-left: 10px !important;
    font-size: 1em !important;
}
}

Latest revision as of 23:40, 16 April 2026

/* --- COMUTER WIKI CLEAN STYLING --- */

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

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

/* 3. The Icon (Computer Head) */
.mw-logo-icon {
    width: 120px !important; 
    height: 120px !important;
    max-width: none !important;
    max-height: none !important;
}

/* 4. The Wordmark/Text */
/* We use var(--color-base) to automatically flip text color when the theme changes */
.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;
    color: var(--color-base, #202122) !important; 
}

/* 5. Header Sizing */
/* We removed all hardcoded background colors so Vector 2022 can handle itself natively */
.mw-header {
    height: auto !important;
    min-height: 160px !important;
}

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

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

.vector-sticky-header .mw-logo-wordmark {
    margin-left: 10px !important;
    font-size: 1em !important;
}