MediaWiki:Gadget-MainPageStyle.css: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
mNo edit summary
mNo edit summary
 
(23 intermediate revisions by the same user not shown)
Line 7: Line 7:
}
}
.MainTopText a:hover {
.MainTopText a:hover {
color: #000;
text-decoration: underline;
text-decoration: underline;
}
#iconsRow3 > a {
margin: 0 11px;
}
}
.mainpagebox {
.mainpagebox {
Line 19: Line 21:
.mainpagebox p, #WithText {
.mainpagebox p, #WithText {
margin: 0.9em 0 1em;
margin: 0.9em 0 1em;
}
.mainpagebox + .mainpagebox {
margin: 10px 0 0 !important;
}
}
.mainpagebox#welcome {
.mainpagebox#welcome {
padding: 2px 2px 2px 0;
padding: 2px 2px 2px 0;
margin: 0 0 10px;
}
}
.mainpagebox#welcome .floatleft,
.mainpagebox#welcome :is(.floatleft, .floatright) {
.mainpagebox#welcome .floatright {
margin: 0 !important;
margin: 0 !important;
}
}
Line 36: Line 41:
margin-left: 20px;
margin-left: 20px;
}
}
.mainpagebox#poll,
.mainpagebox#todo {
.mainpagebox#dyk,
padding: 0;
.mainpagebox.shroom-box,
margin-top: 10px;
.mainpagebox.mwe-box {
margin: 10px 0 0 !important;
}
}
.mainpagebox .pds-box {
.mainpagebox .pds-box {
Line 65: Line 68:
text-align: center;
text-align: center;
padding: 2px 2px 0;
padding: 2px 2px 0;
margin: 10px 0 0 !important;
}
}
.mainpagebox h2 {
.mainpagebox h2 {
Line 94: Line 96:
border-color: #914800 !important;
border-color: #914800 !important;
}
}
body .mainpagebox#shroom-left h2,
body .mainpagebox:is(#shroom-left, #shroom-right) h2 {
body .mainpagebox#shroom-right h2 {
background: #EC0000;
background: #EC0000;
border-color: #9D0000 !important;
border-color: #9D0000 !important;
}
}
body .mainpagebox#mwe-left h2,
body .mainpagebox:is(#mwe-left, #mwe-right) h2 {
body .mainpagebox#mwe-right h2 {
background: #FF4868;
background: #FF4868;
border-color: #C60023 !important;
border-color: #C60023 !important;
Line 107: Line 107:
text-align: center;
text-align: center;
padding: 2px 2px 0;
padding: 2px 2px 0;
margin: 10px 0 0 !important;
}
}
.mainpagebox#niwa {
.mainpagebox#niwa {
padding: 4px 6px 3px 2px;
padding: 4px 6px 3px 2px;
margin: 0 !important;
margin: 0;
}
.todo-entry {
background: #FDFDFF;
border: 1px solid #999;
border-radius: 0.5em;
padding: 0.25em;
margin: 1px;
}
.todo-group1 + .todo-entry:not(.todo-group1),
.todo-group2 + .todo-entry:not(.todo-group2),
.todo-group3 + .todo-entry:not(.todo-group3),
.todo-group4 + .todo-entry:not(.todo-group4) {
margin-left: 10px;
}
}


Line 154: Line 166:
}
}
#niwa-logo, .niwa-series,
#niwa-logo, .niwa-series,
.mainpagebox .poll__question-media,
#mw-content-text .mainpagebox.maintain {
#mw-content-text .mainpagebox.maintain {
display: none !important;
display: none !important;
Line 181: Line 192:
margin-bottom: 0;
margin-bottom: 0;
}
}
body:not(.skin-timeless) .mainpagebox #poll-container > .PDS_Poll {
body.skin-minerva .mainpagebox #poll-container > .PDS_Poll {
margin-bottom: -2.3em !important;
margin-bottom: -2.3em !important;
}
}

Latest revision as of 13:30, March 1, 2025

/* CSS styling and responsive support for the main page */

/* Site styles */
.MainTopText a {
	color: #000 !important;
	text-decoration: none;
}
.MainTopText a:hover {
	text-decoration: underline;
}
#iconsRow3 > a {
	margin: 0 11px;
}
.mainpagebox {
	width: 100%;
	background: #F8F8FF;
	border: 2px solid #496C9C;
	border-radius: 1em;
	padding: 2px;
}
.mainpagebox p, #WithText {
	margin: 0.9em 0 1em;
}
.mainpagebox + .mainpagebox {
	margin: 10px 0 0 !important;
}
.mainpagebox#welcome {
	padding: 2px 2px 2px 0;
	margin: 0 0 10px;
}
.mainpagebox#welcome :is(.floatleft, .floatright) {
	margin: 0 !important;
}
.mainpagebox#nav {
	font-size: 120%;
	background: #FDFDFF;
	border-color: #999;
	padding: 2px 0 5px;
}
.mainpagebox#nav ul {
	margin-left: 20px;
}
.mainpagebox#todo {
	padding: 0;
	margin-top: 10px;
}
.mainpagebox .pds-box {
	width: 100% !important;
	max-width: none !important;
}
.mainpagebox .poll__question-media > div {
	border: 1px solid #3B587E;
}
.mainpagebox #poll-container > .PDS_Poll {
	margin-bottom: -1.84em !important;
}
.mainpagebox .crowdsignal {
	margin-bottom: 10px;
}
.mainpagebox#poll .throbber {
	display: none;
}
.mainpagebox#right {
	padding: 2px 2px 5px;
}
.mainpagebox.maintain {
	font-weight: bold;
	text-align: center;
	padding: 2px 2px 0;
}
.mainpagebox h2 {
	color: #fff;
	font-size: 120% !important;
	font-weight: bold;
	text-align: center;
	border-color: #567CAF;
	border-radius: 0.75em;
	border: 2px solid !important;
	margin-bottom: 1px !important;
	padding: 4px 5px 2px;
}
body .mainpagebox#featured h2 {
	background: #009D00;
	border-color: #005100 !important;
}
body .mainpagebox#poll h2 {
	background: #9B04FF;
	border-color: #4F0084 !important;
}
body .mainpagebox#news h2 {
	background: #1C49FF;
	border-color: #001C8A !important;
}
body .mainpagebox#dyk h2 {
	background: #FF8000;
	border-color: #914800 !important;
}
body .mainpagebox:is(#shroom-left, #shroom-right) h2 {
	background: #EC0000;
	border-color: #9D0000 !important;
}
body .mainpagebox:is(#mwe-left, #mwe-right) h2 {
	background: #FF4868;
	border-color: #C60023 !important;
}
.mainpagebox#announce {
	text-align: center;
	padding: 2px 2px 0;
}
.mainpagebox#niwa {
	padding: 4px 6px 3px 2px;
	margin: 0;
}
.todo-entry {
	background: #FDFDFF;
	border: 1px solid #999;
	border-radius: 0.5em;
	padding: 0.25em;
	margin: 1px;
}
.todo-group1 + .todo-entry:not(.todo-group1),
.todo-group2 + .todo-entry:not(.todo-group2),
.todo-group3 + .todo-entry:not(.todo-group3),
.todo-group4 + .todo-entry:not(.todo-group4) {
	margin-left: 10px;
}

/* Skin fixes */
body.mobile #mp-body {
	display: block !important;
}
body.mobile #niwa-list {
	font-size: 12px !important;
}
body.mobile #WelcomeDiv {
	margin-top: -5px !important;
}
body.mobile .mainpagebox#nav ul {
	margin-bottom: 0.31em !important;
}
body.skin-minerva .mainpagebox#nav ul {
	margin-left: 5px !important;
}
body.skin-minerva #WithText {
	margin-top: 4px !important;
}
#mp-body h2 {
	margin-top: 0 !important;
}
#mp-body h2::after {
	border: none !important;
}

/* Responsive fixes */
@media all and (max-width: 719px) {
	#welcome > tbody > tr > td {
		display: block !important;
	}
	#mp-body > tbody > tr > td {
		display: block !important;
		width: auto !important;
		padding: 0 !important;
	}
	#mp-body > tbody > tr > td + td {
		margin-top: 10px !important;
	}
	#niwa-logo, .niwa-series,
	#mw-content-text .mainpagebox.maintain {
		display: none !important;
	}
	#WelcomeDiv {
		font-size: 150% !important;
	}
	#WithText {
		font-size: 95% !important;
	}
	body.skin-timeless .mainpagebox#welcome {
		font-size: 85% !important;
	}
	.mainpagebox #nav-container {
		font-size: 90% !important;
		padding-right: 0 !important;
		padding-bottom: 0 !important;
	}
	.mainpagebox#nav ul {
		margin-left: 5px !important;
	}
	body:not(.skin-minerva) .mainpagebox#nav ul {
		margin-left: 15px !important;
	}
	body.mediawiki .mainpagebox ul {
		margin-bottom: 0;
	}
	body.skin-minerva .mainpagebox #poll-container > .PDS_Poll {
		margin-bottom: -2.3em !important;
	}
	body.skin-timeless.mobile .mainpagebox #poll-container > .PDS_Poll {
		margin-bottom: -2.11em !important;
	}
	#niwa-intro {
		padding-left: 5px !important;
	}
	#niwa-list {
		column-count: 2 !important;
		column-width: auto !important;
		padding-left: 1em !important;
	}
}
@media all and (max-width: 850px) {
	#poll-extra-links {
		display: none !important;
	}
}
@media all and (min-width: 720px) {
	.mainpagebox #polltable {
		margin-bottom: 3px;
	}
}
@media all and (min-width: 1240px) {
	#polltable .crowdsignal {
		margin-right: 5px;
	}
}