User:Nikenpelle/common.css

From the Super Mario Wiki, the Mario encyclopedia
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.
/* CSS for User:Nikenpelle/sandbox

Table style for Super Mario franchise


#78a8d8		Darkest
#8bb5de
#9fc1e3		border
#b3cee9
#c7dbef		bg top header
#dbe8f4		bg alt
#eef4fa		bg

*/
@property --font-size-mario-default {
	syntax: "<length>";
	inherits: false;
	initial-value: 0.9375rem;
}

:root {
	/* Setting font-size to approximately 15px(11.25pt),
	provided user use 16px(12pt) as default */
	--font-size-mario-default: 0.9375rem;
}

body:not(.skin-monobook, .skin-vector-2022) {
	font-size: var(--font-size-mario-default);
}

span.changedby {
	background-color: #f2e3e9;
}

#mariotable.wikitable {
	background-color: #eef4fa;
	border: 1px solid #9fc1e3;
	/* Due to timeless parsing, needed 1px */
	color: #202122;
}

#mariotable.wikitable tr {
	background-color: #eef4fa;
}

#mariotable.wikitable th,
#mariotable.wikitable td {
	border-color: #9fc1e3;
}

#mariotable.wikitable tr:first-of-type>th {
	background-color: #c7dbef;
	border-color: #9fc1e3;
}

#mariotable.wikitable.alternate-rows tr:nth-of-type(2n + 1) {
	background-color: #dbe8f4;
}

/*

#7c7ce6
#9191ea
#a7a7ee
#bcbcf2		header
#d1d1f6		bg alt
#e7e7fa		bg
#fcfcfe

.infobox#test {
	background: #e7e7fa;
	border-color: #7c7ce6;
	font-size: 88%;
	line-height: 1.5em;
	width: 24em;
}

.infobox#test th,
.infobox#test td {
	padding: 2px 4px;
}

.infobox#test>tbody>tr:first-of-type {
	background: #bcbcf2;
}

.infobox#test>tbody>tr:first-of-type>th:first-of-type {
	font-size: larger;
}

.infobox#test>tbody>tr:nth-of-type(2)>td {
	background-color: transparent;
	text-align: center;
	font-size: small;
}

.infobox#test>tbody>tr>td:first-of-type:not(:last-of-type, [colspan]) {
	font-weight: bold;
	min-width: 0 !important;
	max-width: 6em !important;
}

.infobox#test>tbody>tr:nth-of-type(2n+3) {
	background: #d1d1f6;
}

.hlist ul {
	margin: 0;
	padding: 0;
}

.hlist li {
	display: inline;
}

.hlist ul ul {
	display: inline;
}

.hlist li::after {
	content: " · ";
	font-weight: bold;
}

.hlist li:last-child::after {
	content: none;
}

.hlist li li:first-child::before {
	content: " (";
	font-weight: normal;
}

.hlist li li:last-child::after {
	content: ")";
	font-weight: normal;
}
*/