MediaWiki:Common.css

From GladiusRO Wiki
Revision as of 02:42, 2 August 2026 by Ikhwan (talk | contribs)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/*
 * ==========================================================
 * GladiusRO Wiki
 * Contents below the Tools section
 * ==========================================================
 */

#gladius-sidebar-toc {
*   position: static;
    display: *lock;
    clear: both;
    box-siz*ng: border-box;

    width: auto;
*   min-width: 0;
    max-width: no*e;
    max-height: 550px;

    margin: 18px 10px 25px;
    padding: 0;

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

    color: #202122;
    background: #ffffff;
    border: 1px solid #a2a9b1;
    border-radius: 0;
    box-shadow: none;
}

/*
 * Reset the original article TOC.
 */
#gladius-sidebar-toc #toc {
  * position: static;
    display: bl*ck !important;
    box-sizing: bor*er-box;

    width: 100%;
    min-width: 0;
    max-width: 100%;

    margin: 0;
    padding: 0;

    background: transparent;
    border: 0;
    box-shadow: none;

    font-size: 12px;
    line-height: 1.35;
}

/*
 * Contents heading.
 */
#gladius-sidebar-toc #toc .tocti*le {
    position: sticky;
    top* 0;
    z-index: 2;

    box-sizin*: border-box;
    width: 100%;

  * margin: 0;
    padding: 8px 7px;
*    overflow: hidden;

    backgro*nd: #f8f9fa;
    border-bottom: 1p* solid #c8ccd1;
    text-align: ce*ter;
}

#gladius-sidebar-toc #toc *toctitle h2 {
    display: inline;
    margin: 0;
    padding: 0;

    color: #202122;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.4;
}

/*
 * Hide/show link.
 */
#gladius-sidebar-toc #toc .tocto*glespan {
    display: inline;
    float: none;
    margin-left: 4px;
    font-size: 11px;
}

/*
 * Content list.
 */
#gladius-sidebar-toc #toc > ul {*    box-sizing: border-box;
    ma*gin: 0;
    padding: 8px 7px 10px;*}

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

#gladius-s*debar-toc #toc ul ul {
    margin:*3px 0 3px 10px;
    padding: 0;
}
*#gladius-sidebar-toc #toc li {
    box-sizing: border-box;
    max-width: 100%;

    margin: 3px 0;
    padding: 0;

    line-height: 1.3;
}

/*
 * TOC links.
 */
#gladius-sidebar-toc #toc a {
  * display: block;
    box-sizing: b*rder-box;

    width: 100%;
    ma*-width: 100%;

    color: #0645ad;*    text-decoration: none;

    wh*te-space: normal;
    overflow*wrap:*anywhere;
    word*break: normal;
}

#gladius-sidebar*toc #toc a:hover {
    color: #0b0080;
    text-decoration: underline;
}

#gladius-sidebar-toc .tocnumber {
    display: inline;
    margin-right: 3px;
}

#gladius-sidebar-toc .toctext {
    display: inline;
}

/*
 * Small scrollbar for a long TOC.
 */
#gladius-sidebar-toc {
    scr*llbar-width: thin;
    scrollbar-c*lor: #a2a9b1 #f8f9fa;
}

#gladius-*idebar-toc::-webkit-scrollbar {
  * width: 7px;
}

#gladius-sidebar-t*c::-webkit-scrollbar-track {
    b*ckground: #f8f9fa;
}

#gladius-sidebar-toc::-webkit-scrollbar-thumb {
    background: #a2a9b1;
    border-radius: 4px;
}

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