MediaWiki:Common.css: Difference between revisions

From GladiusRO Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
/*
/*
* ==========================================================
  * GladiusRO sidebar Contents.
  * GladiusRO Wiki
* Contents below the sidebar Tools section
* ==========================================================
  */
  */


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


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


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


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


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


/*
     box-sizing: border-bo*;
* Reset the original TOC styling after moving it.
*/
#gladius-sidebar-toc #toc {
    position: static !important;
    display: block !important;
     box-sizing: border-box;
 
     width: 100% !important;
     width: 100% !important;
     min-width: 0;
     *in-width: 0 !important;
     max-width: 100%;
     max-wi*th: 100% !important;


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


    float: none !important;
     background: transparent;*    border: 0;
    clear: both;
     font-size: 12px*
 
     background: transparent;
    border: 0;
    box-shadow: none;
 
     font-size: 12px;
    line-height: 1.35;
}
}


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


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


#gladius-sidebar-toc #toc .toctitle h2 {
#gladius-si*ebar-toc #toc .toctitle h2 {
     display: inline;
     display: inline;
     margin: 0;
     margin: 0;
    padding: 0;
    color: #202122;
     font-size: 12px;
     font-size: 12px;
    font-weight: bold;
}
}


/*
* Hide/show link.
*/
#gladius-sidebar-toc #toc .toctogglespan {
    display: inline;
    float: none;
    margin-left: 4px;
    font-size: 11px;
}
/*
* TOC lists.
*/
#gladius-sidebar-toc #toc > ul {
#gladius-sidebar-toc #toc > ul {
    box-sizing: border-box;
     margin: 0;
     margin: 0;
     padding: 8px 7px 10px;
     padding: 8px 5px 10px;
}
}


#gladius-sidebar-toc #toc ul {
#gladius-sidebar-toc #toc ul {
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 0;
     list-style: none;
     list-style: none;
}
}


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


#gladius-sidebar-toc #toc li {
#gladius-sidebar-toc #toc li {
    box-sizing: border-box;
    max-width: 100%;
     margin: 3px 0;
     margin: 3px 0;
     padding: 0;
     padding: 0;
Line 123: Line 76:
}
}


/*
* TOC links.
*/
#gladius-sidebar-toc #toc a {
#gladius-sidebar-toc #toc a {
     display: block;
     display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    color: #0645ad;
    text-decoration: none;
     white-space: normal;
     white-space: normal;
     overflow-wrap: anywhere;
     overflow-wrap: anywhere;
}
#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;
}
}


/*
/*
  * Thin scrollbar for long Contents lists.
  * Hide large sidebar Contents on mobile.
  */
  */
#gladius-sidebar-toc {
@media screen and (max-width: 85*px) {
    scrollbar-width: thin;
    scrollbar-color: #a2a9b1 #f8f9fa;
}
 
#gladius-sidebar-toc::-webkit-scrollbar {
    width: 7px;
}
 
#gladius-sidebar-toc::-webkit-scrollbar-track {
    background: #f8f9fa;
}
 
#gladius-sidebar-toc::-webkit-scrollbar-thumb {
    background: #a2a9b1;
    border-radius: 4px;
}
 
/*
* Do not show the large sidebar Contents on mobile.
*/
@media screen and (max-width: 850px) {
     #gladius-sidebar-toc {
     #gladius-sidebar-toc {
        display: none;
*      display**none !important;
     }
     }
}
/*
* ==========================================================
* GladiusRO Wiki
* Hide administrative/navigation links from public visitors
* Administrators and logged-in users can still see them.
* ==========================================================
*/
/* Hide the complete Tools section from anonymous visitors */
body.mw-anonuser #p-tb {
    display: none !important;
}
/* Hide Recent changes */
body.mw-anonuser #n-recentchanges {
    display: none !important;
}
/* Hide Random page */
body.mw-anonuser #n-randompage {
    display: none !important;
}
/* Hide Help about MediaWiki */
body.mw-anonuser #n-help {
    d*splay: none !important;
}
/*
* ==========================================================
* GladiusRO Wiki sidebar final corrections
* ==========================================================
*/
/*
* The Contents panel must use normal sidebar positioning.
*/
#gladius-sidebar-toc {
    position: static !important;
    float: none !important;
    clear: both !important;
    box-sizing: border-box;
    width: auto !important;
    max-width: none !important;
    max-height: 550px;
    margin: 18px 10px 25px !important;
    overflow-x: hidden;
    overflow-y: auto;
}
/*
* Ensure the original TOC cannot retain article positioning
* after being moved into the sidebar.
*/
#gladius-sidebar-toc #toc {
    position: static !important;
    float: none !important;
    clear: both !important;
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
}
/*
* CSS fallback for anonymous-user classes used by
* different MediaWiki versions.
*/
body.mw-anonuser #n-recentchanges,
body.mw-anonuser #n-randompage,
body.mw-anonuser #n-help,
body.mw-anonuser #p-tb,
body.user-anon #n-recentchanges,
body.user-anon #n-randompage,
body.user-anon #n-help,
body.user-anon #p-tb {
    display: none !important;
}
/* Hide "Help about MediaWiki" from the sidebar */
#n-help {
    display: none !imp*rtant;
}
}

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;
    }
}