Be sure to read our policy on citing sources before editing!
Difference between revisions of "MediaWiki:Monobook.css"
From Jiggywikki, a Banjo-Kazooie wiki
Jump to navigationJump to search
m |
(Toppp) |
||
(13 intermediate revisions by the same user not shown) | |||
Line 16: | Line 16: | ||
/* user links */ | /* user links */ | ||
#p-personal a.new { | body.skin--responsive #p-personal li a { | ||
color: #00f; | |||
} | |||
body.skin--responsive#p-personal a.new { | |||
color: #f00; | color: #f00; | ||
} | } | ||
#p-personal a.new:visited { | |||
body.skin--responsive #p-personal a.new:visited { | |||
color: #c00; | color: #c00; | ||
} | } | ||
body.skin--responsive #p-personal li a:hover { | |||
#p-personal li a:hover { | |||
background: transparent; | background: transparent; | ||
text-decoration: underline; | text-decoration: underline; | ||
} | } | ||
li#pt-userpage, li#pt-anonuserpage, li#pt-login { | li#pt-userpage, li#pt-anonuserpage, li#pt-login { | ||
color: #606060; | color: #606060; | ||
Line 34: | Line 39: | ||
/* tabs */ | /* tabs */ | ||
#p-cactions li { | body.skin--responsive #p-cactions li { | ||
background:#ffdf7f; | background:#ffdf7f; | ||
border-top-left-radius:50px; | border-top-left-radius:50px; | ||
Line 43: | Line 48: | ||
border-left:none; | border-left:none; | ||
} | } | ||
#p-cactions li:hover { | body.skin--responsive #p-cactions li:hover { | ||
background:#fff7df; | background:#fff7df; | ||
} | } | ||
#p-cactions li a { | body.skin--responsive #p-cactions li a { | ||
background:transparent | background:transparent; | ||
} | |||
body.skin--responsive #p-cactions li a:hover { | |||
background:transparent; | |||
} | } | ||
/* active tab */ | /* active tab */ | ||
#p-cactions li.selected { | body.skin--responsive #p-cactions li.selected { | ||
background:#fff7df; | background:#fff7df; | ||
border-right:2px solid #7f5f00; | border-right:2px solid #7f5f00; | ||
Line 59: | Line 68: | ||
border-left:none; | border-left:none; | ||
} | } | ||
#p-cactions li.selected a { | body.skin--responsive #p-cactions li.selected a { | ||
background:transparent !important; | background:transparent !important; | ||
} | } | ||
Line 71: | Line 80: | ||
} | } | ||
#mw-indicator-shortcut { | #mw-indicator-shortcut { | ||
top: | top: 16px; | ||
} | } | ||
/* sidebar boxes */ | /* sidebar boxes */ | ||
.pBody { | body.skin--responsive .pBody { | ||
background:#fff7df; | background:#fff7df; | ||
border:1px solid #7f5f00; | border:1px solid #7f5f00; | ||
Line 94: | Line 103: | ||
#searchInput { | #searchInput { | ||
border: 1px solid #7f5f00; | border: 1px solid #7f5f00; | ||
} | |||
/* footer */ | |||
#footer { | |||
background-color: #FFF7DF; | |||
border-top: 1px solid #7F5F00; | |||
border-bottom: 1px solid #7F5F00; | |||
} | } | ||
Line 124: | Line 140: | ||
border: 1px solid #7f5f00; | border: 1px solid #7f5f00; | ||
color: black; | color: black; | ||
} | |||
/* put search bar up top */ | |||
#sidebar { | |||
display: flex; | |||
flex-direction: column; | |||
} | |||
#p-search { | |||
order: -1; | |||
} | |||
/* Responsive fixes */ | |||
@media all and (max-width: 550px) { | |||
.mw-body-content { | |||
overflow: visible !important; | |||
} | |||
.infobox { | |||
margin: 1em 0 !important; | |||
} | |||
.infobox, .nav-right, | |||
#mw-content-text table { | |||
float: none !important; | |||
width: auto !important; | |||
overflow: auto !important; | |||
display: block !important; | |||
margin-left: 0 !important; | |||
margin-right: 0 !important; | |||
max-width: 100% !important; | |||
min-width: 0 !important; | |||
} | |||
#mw-content-text table > tbody { | |||
width: 100% !important; | |||
display: table !important; | |||
} | |||
body div.thumb { | |||
float: none !important; | |||
width: auto !important; | |||
max-width: none !important; | |||
margin: 1em 0; | |||
} | |||
div.thumb, div.thumbinner { | |||
overflow: auto !important; | |||
} | |||
div.noresize > map ~ img { | |||
max-width: none !important; | |||
} | |||
div.thumbinner > div { | |||
float: none !important; | |||
margin-left: auto !important; | |||
margin-right: auto !important; | |||
} | |||
div.thumbcaption { | |||
margin-top: 3px !important; | |||
} | |||
div.thumbimage { | |||
max-width: max-content; | |||
} | |||
ul.gallery { | |||
text-align: center; | |||
} | |||
div.gallerytext { | |||
text-align: left; | |||
} | |||
center div.gallerytext, | |||
.gallery.center div.gallerytext, | |||
.gallery[style*="center"] div.gallerytext { | |||
text-align: center; | |||
} | |||
a.feedlink { | |||
padding-left: 16px; | |||
} | |||
caption { | |||
display: block; | |||
} | |||
#sidebar .portlet[role="navigation"] { | |||
display: none !important; | |||
} | |||
} | } | ||
Latest revision as of 16:35, March 8, 2022
/* CSS placed here will affect users of the MonoBook skin */
/* top-of-page gradient over background */
div#globalWrapper {
background:linear-gradient(to bottom, rgba(255,247,223,1) 0%,rgba(255,247,223,0) 100%);
height:80px;
}
.firstHeading { margin-top: 5px; }
p { margin: 0.6em 0 0.7em 0; }
h1 { font-size: 193%; }
h3 + dl, h4 + dl, h5 + dl {
margin-top: -0.1em;
}
/* user links */
body.skin--responsive #p-personal li a {
color: #00f;
}
body.skin--responsive#p-personal a.new {
color: #f00;
}
body.skin--responsive #p-personal a.new:visited {
color: #c00;
}
body.skin--responsive #p-personal li a:hover {
background: transparent;
text-decoration: underline;
}
li#pt-userpage, li#pt-anonuserpage, li#pt-login {
color: #606060;
}
/* tabs */
body.skin--responsive #p-cactions li {
background:#ffdf7f;
border-top-left-radius:50px;
border-top-right-radius:50px;
border-right:2px solid #7f5f00;
border-top:none;
border-bottom:none;
border-left:none;
}
body.skin--responsive #p-cactions li:hover {
background:#fff7df;
}
body.skin--responsive #p-cactions li a {
background:transparent;
}
body.skin--responsive #p-cactions li a:hover {
background:transparent;
}
/* active tab */
body.skin--responsive #p-cactions li.selected {
background:#fff7df;
border-right:2px solid #7f5f00;
border-top:none;
border-bottom:none;
border-left:none;
}
body.skin--responsive #p-cactions li.selected a {
background:transparent !important;
}
/* Indicator icons */
.mw-indicators {
top: -10px;
}
.anon .mw-indicators {
top: -5px;
}
#mw-indicator-shortcut {
top: 16px;
}
/* sidebar boxes */
body.skin--responsive .pBody {
background:#fff7df;
border:1px solid #7f5f00;
}
/* search button (thanks to super mario wiki) */
input.searchButton {
padding: 0 0.4em !important;
cursor: pointer;
background-color: white;
border: 1px solid #7f5f00;
font-weight: normal;
}
#searchGoButton {
font-weight: normal;
}
#searchInput {
border: 1px solid #7f5f00;
}
/* footer */
#footer {
background-color: #FFF7DF;
border-top: 1px solid #7F5F00;
border-bottom: 1px solid #7F5F00;
}
/* sitenotice */
#siteNotice {
border-top: 1px solid #7f5f00;
border-bottom: 1px solid #7f5f00;
padding: 3px 2px 2px 2px;
margin: -2px 0 11px;
}
body.page-Main_Page.action-view #bodyContent {
margin-top: -17px;
}
body.page-Main_Page.action-view #siteNotice {
margin-bottom: 32px;
}
/* miscellaneous */
#p-cactions {
left: 11.7em;
border-radius:10px;
}
.portlet {
width: 11.8em;
}
select {
border: 1px solid #7f5f00;
color: black;
}
/* put search bar up top */
#sidebar {
display: flex;
flex-direction: column;
}
#p-search {
order: -1;
}
/* Responsive fixes */
@media all and (max-width: 550px) {
.mw-body-content {
overflow: visible !important;
}
.infobox {
margin: 1em 0 !important;
}
.infobox, .nav-right,
#mw-content-text table {
float: none !important;
width: auto !important;
overflow: auto !important;
display: block !important;
margin-left: 0 !important;
margin-right: 0 !important;
max-width: 100% !important;
min-width: 0 !important;
}
#mw-content-text table > tbody {
width: 100% !important;
display: table !important;
}
body div.thumb {
float: none !important;
width: auto !important;
max-width: none !important;
margin: 1em 0;
}
div.thumb, div.thumbinner {
overflow: auto !important;
}
div.noresize > map ~ img {
max-width: none !important;
}
div.thumbinner > div {
float: none !important;
margin-left: auto !important;
margin-right: auto !important;
}
div.thumbcaption {
margin-top: 3px !important;
}
div.thumbimage {
max-width: max-content;
}
ul.gallery {
text-align: center;
}
div.gallerytext {
text-align: left;
}
center div.gallerytext,
.gallery.center div.gallerytext,
.gallery[style*="center"] div.gallerytext {
text-align: center;
}
a.feedlink {
padding-left: 16px;
}
caption {
display: block;
}
#sidebar .portlet[role="navigation"] {
display: none !important;
}
}
.pBody,
.portlet h3,
ul#f-list {
font-family: verdana, sans-serif;
}
input[type="radio"],
input[type="checkbox"] {
border: none;
}
.oo-ui-dropdownWidget { max-width:35em; }