MediaWiki:Monobook.css: Difference between revisions

m
no edit summary
No edit summary
mNo edit summary
(43 intermediate revisions by 2 users not shown)
Line 1: Line 1:
/* CSS placed here will affect users of the Monobook skin */
/* CSS placed here will affect users of the Monobook skin */


#globalWrapper { background: none !important; }
#globalWrapper {
overflow: hidden;
background: none !important;
}
p { margin: 0.6em 0 0.7em 0; }
p { margin: 0.6em 0 0.7em 0; }
h3 + dl, h4 + dl, h5 + dl {
h3 + dl, h4 + dl, h5 + dl {
Line 26: Line 29:


body {
body {
background: #4F7065 url(/images/bodybg-monobook.jpg) fixed no-repeat 0 0;
background: #4F7065 url(https://halo.wiki.gallery/images/bodybg-monobook.jpg) no-repeat fixed 0 0 / cover;
}
}
#bodyContent {
#bodyContent {
position: relative;
position: relative;
background: transparent url(/images/pagebg.jpg) no-repeat center 65px !important;
background: transparent url(https://halo.wiki.gallery/images/pagebg.jpg) no-repeat center 65px !important;
}
 
#p-logo, #p-logo a, #p-logo a:hover {
height: 159px;
width: 196px;
background: url(/images/logo-monobook.png) no-repeat 0 10px !important;
}
}


#p-cactions li a:hover {
body.skin-monobook #p-cactions li a:hover {
border-bottom: 1px solid #FFFFFF;
border-bottom: 1px solid #fff;
}
}


#p-cactions li.selected a {
body.skin-monobook #p-cactions li.selected a {
border-bottom: 1px solid #FFFFFF;
border-bottom: 1px solid #fff;
padding-bottom: 2px;
padding-bottom: 2px;
}
}


.pBody,
body.skin-monobook .pBody,
.portlet h3,
body.skin-monobook .portlet h3,
ul#f-list {
body.skin-monobook #footer #f-list {
font-family: verdana;
font-family: verdana;
}
}


.special li {
body.skin-monobook .special li {
line-height: 19px;
line-height: 19px;
}
}


#p-personal a.new {
body.skin-monobook #p-personal a.new {
color: #f00;
color: #f00;
}
}


#p-personal a.new:visited {
body.skin-monobook #p-personal a.new:visited {
color: #c00;
color: #c00;
}
}


li#pt-userpage,
@media all and (min-width: 551px) {
li#pt-anonuserpage,
body.skin-monobook li#pt-login,
li#pt-login {
body.skin-monobook li#pt-userpage,
background: url(/images/smallchief.gif) top left no-repeat;
body.skin-monobook li#pt-anonuserpage {
padding-left: 16px;
background: url(https://halo.wiki.gallery/images/smallchief.gif) top left no-repeat;
line-height: 17px;
padding-left: 16px;
line-height: 17px;
}
}
}


#p-personal li a:hover {
@media all and (min-width: 551px) {
background-color: transparent;
body.skin-monobook #p-personal ul {
}
height: 19px;
 
background: #fff;
#p-personal ul {
border-left: 1px solid #aaa;
background: #FFFFFF;
border-bottom: 1px solid #aaa;
border-left: 1px solid #aaa;
border-bottom-left-radius: 1em;
border-bottom: 1px solid #aaa;
padding-left: 0;
width: auto;
}
display: inline;
position: absolute;
right: 0;
padding-left: 0px;
padding-bottom: 0px;
margin-top: -1px;
-moz-border-radius-bottomleft: 1em;
-webkit-border-bottom-left-radius: 1em;
}
}


pre {  
pre {
border: 1px dashed #06f;
border: 1px dashed #06f;
}
}


#siteNotice {
.mw-dismissable-notice {
padding: 2px;
padding: 2px;
margin: 10px 0 8px 0;
border-top: 2px solid #ccc;
border-top: 2px solid #ccc;
border-bottom: 2px solid #ccc;
border-bottom: 2px solid #ccc;
background: #fff;
background: #fff;
}
#firstHeading {
margin-top: -3px;
}
}


Line 113: Line 99:
}
}


#navbox {  
#navbox {
/* border: 1px solid #2f6fab; */
font-size: 95%;
border: 1px solid #aaaaaa;
border: 1px solid #aaa;
background-color: #f9f9f9;
background-color: #f9f9f9;
margin-bottom: 15px;
margin-left: 15px;
padding: 5px;
padding: 5px;
font-size: 95%;
margin-left: 15px;
margin-bottom: 15px;
}
}


#p-personal li a:hover {
body.skin-monobook #p-personal li a:hover {
background-color: none;
text-decoration: underline;
text-decoration: underline;
background-color: transparent;
}
}


#p-cactions li a {
body.skin-monobook #p-cactions li a {
color: #00c;
color: #00c;
}
}


#p-cactions .new a {
body.skin-monobook #p-cactions .new a {
color: #c00;
color: #c00;
}
}
Line 147: Line 132:
}
}


#p-cactions {
body.skin-monobook #p-cactions {
left: 11.8em;
left: 11.8em;
}
}


.portlet {
body.skin-monobook .portlet {
width: 11.9em;
width: 11.9em;
}
}


input.searchButton {
body.skin-monobook input.searchButton {
padding: 0 0.4em !important;
cursor: pointer;
cursor: pointer;
background-color: white;
border: 1px solid #2f6fab;
font-weight: normal;
font-weight: normal;
background-color: #fff;
border: 1px solid #2f6fab;
padding: 0 0.4em !important;
}  
}  


#searchGoButton {
body.skin-monobook #searchButton {
font-weight: normal;
font-weight: normal;
}
}


#searchInput {
body.skin-monobook #searchInput {
border: 1px solid #2f6fab;  
border: 1px solid #2f6fab;
}  
}  


Line 176: Line 161:


select {
select {
border: 1px solid #2f6fab;  
border: 1px solid #2f6fab;
color: black;
color: #000;
}
}


blockquote {
blockquote {
border-left: 3px solid #06f;
border-left: 3px solid #06f;
padding-left: 1em;
margin-left: 2em;
margin-left: 2em;
padding-left: 1em;
}
}


Line 194: Line 179:
}
}


#p-cactions ul li, #p-cactions ul li a, #p-cactions li.selected, #p-cactions li.selected a {   
body.skin-monobook #p-cactions ul li,
-moz-border-radius-topleft: 1em;
body.skin-monobook #p-cactions ul li a,
-moz-border-radius-topright: 1em;
body.skin-monobook #p-cactions li.selected,
-webkit-border-top-left-radius: 1em;
body.skin-monobook #p-cactions li.selected a {   
-webkit-border-top-right-radius: 1em;
border-top-left-radius: 1em;
border-top-right-radius: 1em;
}
}


#p-cactions li {
body.skin-monobook #p-cactions li {
padding-bottom:1em;
padding-bottom: 1em;
-moz-border-radius-topleft: .72em !important;
border-top-left-radius: 0.72em !important;
-moz-border-radius-topright: .72em !important;
border-top-right-radius: 0.72em !important;
-webkit-border-top-left-radius: .72em !important;
-webkit-border-top-right-radius: .72em !important;
}
}


.portlet#p-tb h3, .portlet#p-search h3 {
@media all and (min-width: 551px) {
display: none;
body.skin-monobook .portlet#p-search h3 {
display: none;
}
}
}


.portlet#p-search {
body.skin-monobook .portlet#p-search {
margin-top: -1px;
margin-top: -1px;
}
}


.portlet#p-tb {
body.skin-monobook .portlet .pBody {
margin-top: -7px;
border-top-right-radius: 1em;
}
border-bottom-right-radius: 1em;
 
.portlet#p-tb .pBody {
padding-top: 2px;
border-top: none;
}
 
.portlet#p-Navigation .pBody {
border-bottom: none;
}
 
.portlet#p-search .pBody {
-moz-border-radius-topright: 1em;
-moz-border-radius-bottomright: 1em;
-webkit-border-top-right-radius: 1em;
-webkit-border-bottom-right-radius: 1em;
}
}
 
#p-Navigation .pBody > ul > li:last-of-type > a,
.portlet#p-Navigation .pBody {
#p-Community .pBody > ul > li:last-of-type > a {
-moz-border-radius-topright: 1em;
border-bottom-right-radius: 1em;
-webkit-border-top-right-radius: 1em;
}
 
.portlet#p-tb .pBody {
-moz-border-radius-bottomright: 1em;
-webkit-border-bottom-right-radius: 1em;
}
}


/* Fix footer spacing */
/* Fix footer spacing */
#f-list {
body.skin-monobook #f-list {
line-height: 17px;
line-height: 17px;
}
/* Responsive fix */
@media all and (max-width: 550px) {
a.feedlink { padding-left: 16px !important }
}
/* Fix preferences tabs */
.client-js #preftoc a,
.client-js #preftoc a:active {
padding: 0 0.7em;
}
}


/* Indicator icons */
/* Indicator icons */
.mw-indicators {
.mw-indicators {
top: -3px;
top: 4px;
}
}
#mw-indicator-rc {
#mw-indicator-rc {
top: 12px;
top: 12px;
}
.mw-indicators img {
width: auto !important;
max-height: 28px !important;
}
}


Line 275: Line 233:
.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-iconElement-icon.oo-ui-icon-check {
display: none !important;
display: none !important;
}
/* Responsive fix */
@media all and (max-width: 550px) {
body.skin--responsive #sidebar .portlet[role="navigation"] {
display: none !important;
}
}
/* Search up top */
#sidebar {
display: flex;
flex-direction: column;
}
#p-search {
order: -1;
}
}


Line 289: Line 263:


/*** Monobook Sidebar ***/
/*** Monobook Sidebar ***/
#n-Halopedia-Archive > a {
@media all and (min-width: 551px) {
font-size: 125% !important;
#n-Halopedia-Archive > a {
}
font-size: 125% !important;
/* without an ugly padding */
}
#p-Navigation ul {
/* without an ugly padding */
margin: 0;
#p-Navigation ul, #p-Community ul {
}
margin: 0;
#p-Navigation > div {
}
background: white;
#p-Navigation > div, #p-Community > div {
padding: 0;
background: #fff;
}
padding: 0;
/* que no sea un list */
}
#p-Navigation li {
/* que no sea un list */
display: block;
#p-Navigation li, #p-Community li {
list-style-image: none !important; /* for IE */
display: block;
}
list-style-image: none !important; /* for IE */
/* general design of the links */
}
#p-Navigation li > a {
/* general design of the links */
display: block;
#p-Navigation li > a, #p-Community li > a {
position: relative;
display: block;
background: #fff;
position: relative;
color: #000;
background: #fff;
font-size: 14.9px;
color: #000;
font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif;
font-size: 14.9px;
padding: 0 0 0 10px;
font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif;
line-height: 24px;
padding: 0 0 0 10px;
font-weight: bold;
line-height: 24px;
text-decoration: none;
font-weight: bold;
border-bottom: 1px solid #EEEEEE;
text-decoration: none;
}
border-bottom: 1px solid #EEEEEE;
/* special menu just for the class */
}
#p-Navigation > div > ul > li > a {
/* special menu just for the class */
background: url(/images/menu_gradient.png) no-repeat left center;
#p-Navigation > div > ul > li > a, #p-Community > div > ul > li > a {
margin: 1px 1px 0 1px;
background: url(https://halo.wiki.gallery/images/menu_gradient.png) no-repeat left center;
padding: 0 0 0 10px;
margin: 1px 1px 0 1px;
color: black;
padding: 0 0 0 10px;
width: auto;
color: #000;
}
width: auto;
#p-Navigation > div > ul > li.hover > a {
}
color: #2A2A2A;
#p-Navigation > div > ul > li.hover > a, #p-Community > div > ul > li.hover > a {
text-shadow: #AAA46C 1px 1px 3px;
color: #2A2A2A;
}
text-shadow: #AAA46C 1px 1px 3px;
#p-Navigation > div > ul > li > a > em {
}
right: 8px;
#p-Navigation > div > ul > li > a > em, #p-Community > div > ul > li > a > em {
}
right: 8px;
/* submenu marker */
}
#p-Navigation em {
/* submenu marker */
font-style: normal;
#p-Navigation em, #p-Community em {
font-family: arial,sans-serif;
font-style: normal;
font-size: 16pt;
font-family: arial,sans-serif;
font-weight: bold;
font-size: 16pt;
line-height: 20px;
font-weight: bold;
position: absolute;
line-height: 20px;
right: 8px;
position: absolute;
top: 0px
right: 8px;
}
top: 0px
/* hover */
}
#p-Navigation li > ul > li.hover > a {
/* hover */
background-color: #DCDCDC; /* Gainsboro */
#p-Navigation li > ul > li.hover > a, #p-Community li > ul > li.hover > a {
}
background-color: #DCDCDC; /* Gainsboro */
}


#p-Navigation li.hover > ul.sub-menu {
#p-Navigation li.hover > ul.sub-menu, #p-Community li.hover > ul.sub-menu {
display: block;
display: block;
}
}


/* general submenu */
/* general submenu */
#p-Navigation ul.sub-menu {
#p-Navigation ul.sub-menu, #p-Community ul.sub-menu {
border: 1px solid #aaa;
border: 1px solid #aaa;
display: none;
display: none;
background: #fff;
background: #fff;
position: absolute;
position: absolute;
padding: 1px;
padding: 1px;
width: 185px;
width: 185px;
margin-left: 180px;
margin-left: 180px;
margin-top: -25px;
margin-top: -25px;
z-index: 100;
z-index: 100;
}
/* Only the first */
#p-Navigation > div > ul > li > ul.sub-menu, #p-Community > div > ul > li > ul.sub-menu {
margin-left: 13em;
}
}
}
/* Only the first */
@media all and (max-width: 550px) {
#p-Navigation > div > ul > li > ul.sub-menu {
body.skin--responsive .portlet ul.sub-menu,
margin-left: 13em;
body.skin--responsive .portlet .with-sub-menu em {
display: none !important;
}
}
}
/*** End Monobook Sidebar ***/