User:Nikenpelle/common.css: Difference between revisions
From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
Nikenpelle (talk | contribs) ((by SublimeText.Mediawiker)) |
Nikenpelle (talk | contribs) No edit summary |
||
(35 intermediate revisions by the same user not shown) | |||
Line 11: | Line 11: | ||
#dbe8f4 bg alt | #dbe8f4 bg alt | ||
#eef4fa bg | #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 { | #mariotable.wikitable { | ||
Line 47: | Line 67: | ||
#e7e7fa bg | #e7e7fa bg | ||
#fcfcfe | #fcfcfe | ||
.infobox#test { | .infobox#test { | ||
Line 86: | Line 104: | ||
background: #d1d1f6; | background: #d1d1f6; | ||
} | } | ||
.hlist ul { | .hlist ul { | ||
Line 120: | Line 136: | ||
font-weight: normal; | font-weight: normal; | ||
} | } | ||
*/ | |||
Latest revision as of 06:20, March 26, 2024
/* 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;
}
*/