MediaWiki:Common.css
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 sidebar Tools section
* ==========================================================
*/
#gladius-sidebar-toc {
position: static !important;
display: block;
clear: both;
box-sizing: border-box;
width: auto;
min-width: 0;
max-width: none;
max-height: 550px;
margin: 18px 10px 25px;
padding: 0;
overflow-x: hidden;
overflow-y: auto;
color: #202122;
background: #ffffff;
border: 1px solid #a2a9b1;
box-shadow: none;
}
/*
* 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;
min-width: 0;
max-width: 100%;
margin: 0 !important;
padding: 0;
float: none !important;
clear: both;
background: transparent;
border: 0;
box-shadow: none;
font-size: 12px;
line-height: 1.35;
}
/*
* Contents heading.
*/
#gladius-sidebar-toc #toc .toctitle {
position: sticky;
top: 0;
z-index: 2;
box-sizing: border-box;
width: 100%;
margin: 0;
padding: 8px 7px;
background: #f8f9fa;
border-bottom: 1px solid #c8ccd1;
text-align: center;
}
#gladius-sidebar-toc #toc .toctitle h2 {
display: inline;
margin: 0;
padding: 0;
color: #202122;
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 {
box-sizing: border-box;
margin: 0;
padding: 8px 7px 10px;
}
#gladius-sidebar-toc #toc ul {
margin-top: 0;
margin-bottom: 0;
padding-left: 0;
list-style: none;
}
#gladius-sidebar-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: border-box;
width: 100%;
max-width: 100%;
color: #0645ad;
text-decoration: none;
white-space: normal;
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.
*/
#gladius-sidebar-toc {
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 {
display: none;
}
}
/*
* ==========================================================
* 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;
}
/*
* Hide technical sidebar links from anonymous players.
* Logged-in administrators can still see them.
*/
body.mw-anonuser #n-recentchanges,
body.mw-anonuser #n-randompage,
body.mw-anonuser #n-help,
body.mw-anonuser #n-help-mediawiki,
body.mw-anonuser #n-helppage,
body.mw-anonuser #p-tb,
body.user-anon #n-recentchanges,
body.user-anon #n-randompage,
body.user-anon #n-help,
body.user-anon #n-help-mediawiki,
body.user-anon #n-helppage,
body.user-anon #p-tb {
display: none !important;
}