MediaWiki:Monobook.css
From Halopedia, the Halo wiki
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)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
/* CSS placed here will affect users of the Monobook skin */
#toggleImage {
width: 13px;
filter: brightness(0);
position: relative;
top: -1px;
}
#globalWrapper {
overflow: hidden;
background: none !important;
}
p { margin: 0.6em 0 0.7em 0; }
:is(h3, h4, h5) + dl {
margin-top: -0.1em;
}
:is(.ns-talk, .ns-110) p + dl,
.rootpage-Halopedia_Changing_username p + dl {
margin-top: -0.4em;
}
:is(.ns-talk, .ns-110) dl + dl,
.rootpage-Halopedia_Changing_username dl + dl {
margin-top: -0.2em;
}
body { background: #4F7065 url(https://halo.wiki.gallery/images/bodybg-monobook.jpg) no-repeat fixed 0 0 / cover; }
.monobook-body { background: transparent url(https://halo.wiki.gallery/images/pagebg.jpg) no-repeat center 65px; }
a { color: #00f; }
a:visited { color: #00c; }
a:active { color: orange; }
body.skin-monobook .pBody,
body.skin-monobook .portlet h3,
body.skin-monobook #footer #f-list {
font-family: verdana;
}
body.skin-monobook .special li {
line-height: 19px;
}
@media all and (min-width: 551px) {
body.skin-monobook li:is(#pt-login, #pt-userpage, #pt-anonuserpage) {
background: url(https://halo.wiki.gallery/images/smallchief.gif) top left no-repeat;
padding-left: 16px;
line-height: 17px;
}
body.skin-monobook #p-personal ul {
height: 19px;
background: #fff;
border-left: 1px solid #aaa;
border-bottom: 1px solid #aaa;
border-bottom-left-radius: 1em;
padding-left: 0;
}
}
.mw-dismissable-notice {
border-top: 2px solid #ccc;
border-bottom: 2px solid #ccc;
padding: 2px;
}
body.skin-monobook #p-personal li a:hover {
background-color: none;
text-decoration: underline;
}
@media all and (min-width: 551px) {
#content {
border-top-left-radius: 1em;
border-bottom-left-radius: 1em;
}
}
body.skin-monobook #p-cactions {
left: 11.8em;
}
body.skin-monobook .portlet {
width: 11.9em;
}
body.skin-monobook .portlet .pBody {
border-top-right-radius: 1em;
border-bottom-right-radius: 1em;
}
body.skin-monobook input.searchButton {
cursor: pointer;
font-weight: normal;
background-color: #fff;
border: 1px solid #2f6fab;
padding: 0 0.4em !important;
}
body.skin-monobook #searchButton {
font-weight: normal;
}
body.skin-monobook #searchInput {
border: 1px solid #2f6fab;
}
input:is([type="radio"], [type="checkbox"]) {
border: none;
}
select {
border: 1px solid #2f6fab;
color: #000;
}
body.skin-monobook #p-cactions ul li,
body.skin-monobook #p-cactions ul li a,
body.skin-monobook #p-cactions li.selected,
body.skin-monobook #p-cactions li.selected a {
border-top-left-radius: 1em;
border-top-right-radius: 1em;
}
body.skin-monobook #p-cactions li {
padding-bottom: 1em;
border-top-left-radius: 0.72em !important;
border-top-right-radius: 0.72em !important;
}
/* Fix footer spacing */
body.skin-monobook #f-list {
line-height: 17px;
}
/* Indicator icons */
.mw-indicators {
top: 4px;
}
#mw-indicator-rc {
top: 12px;
}
.mw-indicators img {
width: auto !important;
max-height: 28px !important;
}
/* Multimedia viewer */
.mw-mmv-reuse-dialog .mw-mmv-reuse-tabs .oo-ui-iconElement-icon.oo-ui-icon-check,
.mw-mmv-reuse-dialog .mw-mmv-reuse-tabs .oo-ui-iconedElement-icon.oo-ui-icon-check {
display: none !important;
}
/* Responsive fix */
@media all and (max-width: 550px) {
body.skin--responsive #sidebar .portlet[role="navigation"] {
display: none !important;
}
}
/* Search up top */
#column-one #sidebar {
display: flex;
flex-direction: column;
}
#p-search {
order: -1;
}
/* Who's Online spacing */
#WhosOnlineDiv {
margin-bottom: -11px;
}
/* Social talk tabs */
.ns-200 #ca-talk a,
.ns-202 #ca-talk a {
color: #00c !important;
}
/*** Monobook Sidebar ***/
#sidebar .portlet .pBody {
overflow: hidden;
}
body.skin-monobook .portlet#p-search {
margin-top: -1px;
}
:is(#p-Navigation, #p-Community) .pBody > ul > li:last-of-type > a {
border-bottom-right-radius: 1em;
}
@media all and (min-width: 551px) {
body.skin-monobook .portlet#p-search h3 {
display: none;
}
#n-Halopedia-Archive > a {
font-size: 125% !important;
}
/* without an ugly padding */
:is(#p-Navigation, #p-Community) ul {
margin: 0;
}
:is(#p-Navigation, #p-Community) > div {
background: #fff;
padding: 0;
}
/* que no sea un list */
:is(#p-Navigation, #p-Community) li {
display: block;
list-style-image: none !important; /* for IE */
}
/* general design of the links */
:is(#p-Navigation, #p-Community) li > a {
display: block;
position: relative;
background: #fff;
color: #000;
font-size: 14.9px;
font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif;
padding: 0 0 0 10px;
line-height: 24px;
font-weight: bold;
text-decoration: none;
border-bottom: 1px solid #EEEEEE;
}
:is(#p-Navigation, #p-Community) li:last-child > a {
border-bottom: none;
}
/* special menu just for the class */
:is(#p-Navigation, #p-Community) > div > ul > li > a {
background: url(https://halo.wiki.gallery/images/menu_gradient.png) no-repeat left center;
margin: 1px 1px 0 1px;
padding: 0 0 0 10px;
color: #000;
width: auto;
}
:is(#p-Navigation, #p-Community) > div > ul > li.hover > a {
color: #2A2A2A;
text-shadow: #AAA46C 1px 1px 3px;
}
:is(#p-Navigation, #p-Community) > div > ul > li > a > em {
right: 8px;
}
/* submenu marker */
:is(#p-Navigation, #p-Community) em {
font-style: normal;
font-family: arial,sans-serif;
font-size: 16pt;
font-weight: bold;
line-height: 20px;
position: absolute;
right: 8px;
top: 0px
}
/* hover */
:is(#p-Navigation, #p-Community) li > ul > li.hover > a {
background-color: #DCDCDC; /* Gainsboro */
}
:is(#p-Navigation, #p-Community) li.hover > ul.sub-menu {
display: block;
}
/* general submenu */
:is(#p-Navigation, #p-Community) ul.sub-menu {
border: 1px solid #aaa;
display: none;
background: #fff;
position: absolute;
padding: 1px;
width: 185px;
margin-left: 180px;
margin-top: -25px;
z-index: 100;
}
/* Only the first */
:is(#p-Navigation, #p-Community) > div > ul > li > ul.sub-menu {
margin-left: 13em;
}
}
@media all and (max-width: 550px) {
body.skin--responsive .portlet ul.sub-menu,
body.skin--responsive .portlet .with-sub-menu em {
display: none !important;
}
}