MediaWiki:Common.css: Difference between revisions

From GladiusRO Wiki
Jump to navigation Jump to search
Created page with "CSS placed here will be applied to all skins: ========================================================= GLADIUSRO WIKI - LEFT-SIDE TABLE OF CONTENTS =========================================================: #gladius-left-toc { position: fixed; top: 150px; left: 10px; z-index: 50; box-sizing: border-box; width: 270px; max-height: calc(100vh - 170px); overflow-x: hidden; overflow-y: auto; background: #ffffff;..."
 
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/*
/* =========================================================
* GladiusRO sidebar Contents.
  GLADIUSRO WIKI - LEFT-SIDE TABLE OF CONTENTS
*/
  ========================================================= */


#gladius-left-toc {
#gladius-sidebar-toc {
     position: fixed;
     posi*ion: static !important;
     top: 150px;
     displa*: block;
     left: 10px;
     float: none !importan*;
     z-index: 50;
     clear: both !important;


    box-sizing: border-box;
  *box-sizing: border-box;
     width: 270px;
     width:*auto !important;
     max-height: calc(100vh - 170px);
    max-width: no*e !important;
     max-height: 550p*;


     overflow-x: hidden;
     margin: 18px 5px 25px !impo*tant;
     overflow-y: auto;
     padding: 0 !important;


    background: #ffffff;
*  overflow-x: hidden;
    border: 1px solid #c8ccd1;
     overflo*-y: auto;
     border-radius: 3px;


     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
     background: #ffffff*
    border: 1px solid #a2a9b1;
}
}
*#gladius-sidebar-toc #toc {
    po*ition: static !important;
    disp*ay: block !important;
    float: n*ne !important;
    clear: both !im*ortant;


/* Remove the original TOC spacing */
    box-sizing: border-bo*;
#gladius-left-toc #toc {
     width: 100% !important;
     display: block !important;
     *in-width: 0 !important;
     box-sizing: border-box;
    max-wi*th: 100% !important;


    width: 100%;
     margin: * !important;
     margin: 0;
     padding: 0 !impor*ant;
     padding: 12px;


     background: transparent;
     background: transparent;*    border: 0;
    border: 0;
     font-size: 12px*
     font-size: 13px;
}
}


/* Contents heading */
#gladius-sidebar-toc #toc .toctitle {
#gladius-left-toc #toc .toctitle {
     box-sizing: border-box;*    margin: 0;
     position: sticky;
     padding: 8px 5p*;
    top: 0;
    z-index: 2;
 
    margin: -12px -12px 10px;
     padding: 10px 12px;


     background: #f8f9fa;
     background: #f8f9fa;
     border-bottom: 1px solid #c8ccd1;
     bo*der-bottom: 1px solid #c8ccd1;
    text-align: left;
  *text-align: center;
}
}


#gladius-left-toc #toc .toctitle h2 {
#gladius-si*ebar-toc #toc .toctitle h2 {
     display: inline-block;
     display: inline;
     margin: 0;
     margin: 0;
     padding: 0;
     font-size: 12px;
}


    color: #202122;
#gladius-sidebar-toc #toc > ul {
     font-size: 14px;
     margin: 0;
     font-weight: 600;
     padding: 8px 5px 10px;
}
}


/* TOC list */
#gladius-sidebar-toc #toc ul {
#gladius-left-toc #toc ul {
    margin: 0;
    padding: 0;
     list-style: none;
     list-style: none;
}
}


#gladius-left-toc #toc ul ul {
#gladius-sidebar-toc #toc ul ul {
     margin-top: 4px;
     margin: 3px 0 3px 12px;
     margin-left: 14px;
     padding: 0;
}
}


#gladius-left-toc #toc li {
#gladius-sidebar-toc #toc li {
     margin: 5px 0;
     margin: 3px 0;
     padding: 0;
     padding: 0;
     line-height: 1.35;
     line-height: 1.3;
}
}


#gladius-left-toc #toc a {
#gladius-sidebar-toc #toc a {
     display: block;
     display: block;
     color: #2456c4;
     white-space: normal;
    text-decoration: none;
     overflow-wrap: anywhere;
     overflow-wrap: anywhere;
}
}


#gladius-left-toc #toc a:hover {
/*
    color: #153b91;
* Hide large sidebar Contents on mobile.
    text-decoration: underline;
*/
}
@media screen and (max-width: 85*px) {
 
     #gladius-sidebar-toc {
/* Keep section numbers beside the section name */
*      display**none !important;
#gladius-left-toc .tocnumber,
#gladius-left-toc .toctext {
    display: inline;
}
 
/* Give the article enough space for the left TOC */
body.gladius-has-left-toc #content {
    margin-left: 300px;
}
 
/* Some skins use these containers */
body.gladius-has-left-toc .mw-body {
    margin-left: 300px;
}
 
/* Tablet and mobile: return TOC to normal article position */
@media screen and (max-width: 1100px) {
     #gladius-left-toc {
        position: static;
        width: auto;
        max-height: none;
        margin: 15px 0;
        overflow: visible;
        box-shadow: none;
    }
 
    body.gladius-has-left-toc #content,
    body.gladius-has-left-toc .mw-body {
        margin-left: initial;
     }
     }
}
}

Latest revision as of 06:44, 2 August 2026

/*
 * GladiusRO sidebar Contents.
 */

#gladius-sidebar-toc {
    posi*ion: static !important;
    displa*: block;
    float: none !importan*;
    clear: both !important;

   *box-sizing: border-box;
    width:*auto !important;
    max-width: no*e !important;
    max-height: 550p*;

    margin: 18px 5px 25px !impo*tant;
    padding: 0 !important;

*   overflow-x: hidden;
    overflo*-y: auto;

    background: #ffffff*
    border: 1px solid #a2a9b1;
}
*#gladius-sidebar-toc #toc {
    po*ition: static !important;
    disp*ay: block !important;
    float: n*ne !important;
    clear: both !im*ortant;

    box-sizing: border-bo*;
    width: 100% !important;
    *in-width: 0 !important;
    max-wi*th: 100% !important;

    margin: * !important;
    padding: 0 !impor*ant;

    background: transparent;*    border: 0;
    font-size: 12px*
}

#gladius-sidebar-toc #toc .toctitle {
    box-sizing: border-box;*    margin: 0;
    padding: 8px 5p*;

    background: #f8f9fa;
    bo*der-bottom: 1px solid #c8ccd1;
   *text-align: center;
}

#gladius-si*ebar-toc #toc .toctitle h2 {
    display: inline;
    margin: 0;
    font-size: 12px;
}

#gladius-sidebar-toc #toc > ul {
    margin: 0;
    padding: 8px 5px 10px;
}

#gladius-sidebar-toc #toc ul {
    list-style: none;
}

#gladius-sidebar-toc #toc ul ul {
    margin: 3px 0 3px 12px;
    padding: 0;
}

#gladius-sidebar-toc #toc li {
    margin: 3px 0;
    padding: 0;
    line-height: 1.3;
}

#gladius-sidebar-toc #toc a {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
}

/*
 * Hide large sidebar Contents on mobile.
 */
@media screen and (max-width: 85*px) {
    #gladius-sidebar-toc {
 *      display**none !important;
    }
}