MediaWiki:RPGC-width.css: Difference between revisions

From RPG Continuum Wiki
Jump to navigation Jump to search
Created page with "Default readable-width article layout: body.rpgc-readable-width .mw-body { max-width: 1280px !important; margin-right: auto !important; } body.rpgc-readable-width .mw-parser-output { max-width: 1180px; } Full-width mode: body.rpgc-full-width .mw-body, body.rpgc-full-width .mw-parser-output { max-width: none !important; } Toggle button: #rpgc-width-toggle { position: fixed; top: 46px; right: 12px; z-index: 9999; backgr..."
 
No edit summary
Line 1: Line 1:
/* Default readable-width article layout */
/* Default readable-width article layout */
body.rpgc-readable-width .mw-body {
body.rpgc-readable-width .mw-body {
     max-width: 1280px !important;
     width: min(1280px, calc(100vw - 270px));
     margin-right: auto !important;
     margin: 0 auto !important;
}
}



Revision as of 22:56, 4 July 2026

/* Default readable-width article layout */
body.rpgc-readable-width .mw-body {
    width: min(1280px, calc(100vw - 270px));
    margin: 0 auto !important;
}

body.rpgc-readable-width .mw-parser-output {
    max-width: 1180px;
}

/* Full-width mode */
body.rpgc-full-width .mw-body,
body.rpgc-full-width .mw-parser-output {
    max-width: none !important;
}

/* Toggle button */
#rpgc-width-toggle {
    position: fixed;
    top: 46px;
    right: 12px;
    z-index: 9999;
    background: #171d24;
    color: #d7dce3;
    border: 1px solid #2a333d;
    border-bottom: 2px solid #315f9d;
    padding: 5px 9px;
    font-size: 11px;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(79,134,214,.2);
}

#rpgc-width-toggle:hover {
    background: #233044;
    color: #fff;
}