Don't like the ads? Then create an account! Users with accounts have more options than anonymous users.

MediaWiki:Monobook.css

From Triforce Wiki, a The Legend of Zelda wiki
Revision as of 14:16, March 10, 2022 by Results May Vary (talk | contribs) (body.skin--responsive)
Jump to navigationJump to search

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.
/* all pages */ 
div#globalWrapper {
	background:#135B09;
}

body {
	background:#135B09 repeat;
}

#content { 
    background-color: #FFFFE8;
    border: 1px solid #EEC947;
    border-right: none;
}

#footer {
    background-color: #FFFFE8;
}

.mw-footer {
    border: 1px solid #EEC947;
    border: 1px solid #EEC947;
}

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

/* active tabs */

body.skin--responsive .pBody {
    background-color: #FFFFE8;
}

body.skin--responsive #p-cactions li:hover {
    background:#FFFFE8;
}
body.skin--responsive #p-cactions li a {
    background:#FFFFE8;
}

body.skin--responsive #p-cactions li a:hover {
    background:#FFFFE8;
    text-decoration:underline;
}

body.skin--responsive #p-cactions li.selected {
    background:#FFFFE8;
}
body.skin--responsive #p-cactions li.selected a {
    background:#FFFFE8;
}

/* sidebar */
.portlet h3 { color: gold; }
.generated-sidebar .pBody, #p-tb .pBody, #p-lang .pBody, div#searchBody {
	background:#FFFFE8;
	border-top:2px solid #EEC947;
	border-right:2px solid #EEC947;
	border-bottom:2px solid #EEC947;
	border-left:0 !important;
}

/* user links */

body.skin--responsive #p-personal ul a {
    background-color:#135B09;
    color:gold;
}

body.skin--responsive #p-personal ul a:hover {
    text-decoration: underline;
    background-color:transparent;
}

body.skin--responsive #p-personal ul a.new {
    color:#FFF;
}

body.skin--responsive li#pt-anonuserpage {
    color:gold;
}

/* sitenotice */
#siteNotice {
	border-top: 1px solid green;
	border-bottom: 1px solid green;
	padding: 3px 2px 2px 2px;
	margin: -2px 0 11px;
}

/* user icon */

body.skin--responsive li#pt-userpage, li#pt-anonuserpage, li#pt-login {
  background: url(https://cdn.triforcewiki.com/player.png) top left no-repeat;
  background-size: 15px;
  padding: 0px 0px 2px 20px;
}

/* search button (thanks to super mario wiki) */

input.searchButton {
	padding: 0 0.4em !important;
	cursor: pointer;
	background-color: white;
	border: 1px solid #135B09; 
	font-weight: normal;
} 
#searchGoButton {
	font-weight: normal;
}
#searchInput {
	border: 1px solid #135B09;
} 

select {
	border: 1px solid #135B09;
	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;
    }
}

/* user prefs */
.oo-ui-tabSelectWidget {
  box-shadow: none;
}

/* Indicator icons */
.mw-indicators {
	top: -10px;
}
.anon .mw-indicators {
	top: -5px;
}
#mw-indicator-shortcut {
	top: 16px;
}

/* Fix footer spacing */
#f-list {
	line-height: 17px;
}

/* talk page tab spacing */

li#ca-addsection {
   margin-left:4px;
}

/* miscellaneous */
body.skin--responsive #p-cactions {
	left: 11.7em;
}

body.skin--responsive .portlet {
	width: 11.8em;
}

body.skin--responsive .pBody, 
body.skin--responsive .portlet h3, 
ul#f-list {
	font-family: verdana, sans-serif;
}

input[type="radio"], 
input[type="checkbox"] {
	border: none;
}

.oo-ui-dropdownWidget { max-width:35em; }