MediaWiki:Common.css
From Etrian Odyssey Wiki
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)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* CSS placed here will be applied to all skins */
/* If CodeEditor complains about lines being "overqualified", ignore it, it's probably necessary to make it work because of how the skin is coded*/
/* Neuton font, as used in EO4/EOU/EO2U */
@import url('https://fonts.googleapis.com/css?family=Neuton:400,400i,700&subset=latin-ext');
/* Tabs borrows from https://fireemblemwiki.org/w/index.php?title=MediaWiki:Common.css&oldid=223358*/
.tab_tab {
background-color: #265;
border: 2px solid #e0e0e0;
padding: 3px 5px;
margin: 0;
cursor: pointer;
}
.tabcontainer {
text-align: center;
padding-bottom: 1px;
}
.tabselected {
background-color: #222;
color: #e0e0e0;
border-bottom-color: #222;
}
.tabcontents {
padding-top: 3px;
}
/* Main page */
.mp-header {
border: 2px solid #e0e0e0;
border-radius: 20px / 50%;
background-color: #043;
font-family: Neuton, serif;
margin-bottom: 10px;
display: flex;
justify-content: center;
flex-wrap: wrap;
}
.mp-header a, .mp-footer a {
color: #09f;
}
.mp-header-1 {
text-align: center;
font-size: 90%;
flex-basis: 100%;
}
.mp-header-2 {
flex-basis: 100%;
}
.mp-header-2 ul {
font-size: 120%;
display: flex;
justify-content: center;
flex-wrap: wrap;
}
.mp-header-2 li {
flex-basis: 30%;
}
.mp-footer {
border: 2px solid #e0e0e0;
display: flex;
flex-wrap: wrap;
}
.mp-footer-section {
margin: 5px;
padding: 5px;
border: 2px solid #e0e0e0;
box-sizing: border-box;
/*shut up CodeEditor this is 2019 nobody cares about IE6/7 any more*/
background-color: #043;
flex-basis: 100%;
}
.mp-section-heading {
font-family: Neuton, serif;
font-size: 150%;
text-align: center;
}
@media (min-width: 768px) {
.mp-header-1, .mp-header-2 {
flex-basis: 45%;
}
.mp-footer-section {
flex: 1 1 30%;
}
}
@media (max-width: 500px) {
.mp-header {
border-radius: 10px;
}
}
/* Main page game grid */
.mp-game-grid {
width: 100%;
margin: 0 auto;
display: flex;
flex-wrap: wrap;
justify-content: center;
}
.mp-game-box {
border: 2px solid #e0e0e0;
height: 150px;
width: 250px;
flex: 0 0 auto;
margin: 5px;
}
.mp-game-box a {
color: #e0e0e0;
display: flex;
flex-direction: column;
text-align: center;
font-size: 180%;
height: 150px;
width: 250px;
background: rgba(0, 0, 0, 0.5);
font-family: Neuton, serif;
font-style: normal;
text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}
.mp-game-box a:visited, .mp-game-box a.new:visited {
color: #e0e0e0;
}
/* CodeEditor doesn't recognise this and will yell at you when saving, but it does work;
makes this appear in Firefox only, until more browsers support it */
@supports (-moz-appearance: none) {
.mp-game-box a {
stroke: 5px black;
paint-order: stroke fill;
text-shadow: none;
}
}
.mp-game-box a:hover {
background: transparent;
color: #E0E0E0;
text-decoration: none !important;
}
.mp-game-eo1 {
background-image: url(/w/skins/EOWiki/mainpage/EO1-mainpage.png);
}
.mp-game-eo2 {
background-image: url(/w/skins/EOWiki/mainpage/EO2-mainpage.png);
}
.mp-game-eo3 {
background-image: url(/w/skins/EOWiki/mainpage/EO3-mainpage.png);
}
.mp-game-eo4 {
background-image: url(/w/skins/EOWiki/mainpage/EO4-mainpage.png);
}
.mp-game-eou {
background-image: url(/w/skins/EOWiki/mainpage/EOU-mainpage.png);
}
.mp-game-eo2u {
background-image: url(/w/skins/EOWiki/mainpage/EO2U-mainpage.png);
}
.mp-game-eo5 {
background-image: url(/w/skins/EOWiki/mainpage/EO5-mainpage.png);
}
.mp-game-eox {
background-image: url(/w/skins/EOWiki/mainpage/EOX-mainpage.png);
}
.mp-game-emd {
background-image: url(/w/skins/EOWiki/mainpage/EMD-mainpage.png);
}
.mp-game-emd2 {
background-image: url(/w/skins/EOWiki/mainpage/EMD2-mainpage.png);
}
.mp-game-pq1 {
background-image: url(/w/skins/EOWiki/mainpage/PQ1-mainpage.png);
}
.mp-game-pq2 {
background-image: url(/w/skins/EOWiki/mainpage/PQ2-mainpage.png);
}
.mp-game-tabs .tab_tab {
border: 3px solid #396;
border-radius: 10px / 50%;
font-size: 150%;
font-family: Neuton, serif;
}
.mp-game-tabs .tabcontent {
margin-top: 10px;
}
/* Plain lists */
.plainlist ol, .plainlist ul {
line-height: inherit;
list-style: none none;
margin: 0;
}
.plainlist ol li, .plainlist ul li {
margin-bottom: 0;
}
/* Column system (based on Bootstrap) */
.row {
--bs-gutter-x: .25rem;
--bs-gutter-y: 0;
display: flex;
flex-wrap: wrap;
margin-top: calc(var(--bs-gutter-y) * -1);
margin-right: calc(var(--bs-gutter-x) / -2);
margin-left: calc(var(--bs-gutter-x) / -2);
}
.row > * {
box-sizing: border-box;
flex-shrink: 0;
width: 100%;
max-width: 100%;
padding-right: calc(var(--bs-gutter-x) / 2);
padding-left: calc(var(--bs-gutter-x) / 2);
margin-top: var(--bs-gutter-y);
}
.col {
flex: 1 0 0%;
}
/* -- Columns for any size (especially small) -- */
@media (min-width: 576px) {
.col-sm {
flex: 1 0 0%;
}
.col-sm-1 {
flex: 0 0 auto;
width: 8.3333333333%;
}
.col-sm-2 {
flex: 0 0 auto;
width: 16.6666666667%;
}
.col-sm-3 {
flex: 0 0 auto;
width: 25%;
}
.col-sm-4 {
flex: 0 0 auto;
width: 33.3333333333%;
}
.col-sm-5 {
flex: 0 0 auto;
width: 41.6666666667%;
}
.col-sm-6 {
flex: 0 0 auto;
width: 50%;
}
.col-sm-7 {
flex: 0 0 auto;
width: 58.3333333333%;
}
.col-sm-8 {
flex: 0 0 auto;
width: 66.6666666667%;
}
.col-sm-9 {
flex: 0 0 auto;
width: 75%;
}
.col-sm-10 {
flex: 0 0 auto;
width: 83.3333333333%;
}
.col-sm-11 {
flex: 0 0 auto;
width: 91.6666666667%;
}
.col-sm-12 {
flex: 0 0 auto;
width: 100%;
}
/* ---- Floats ---- */
.float-sm-left {
float: left!important;
}
.float-sm-right {
float: right!important;
}
.float-sm-none {
float: none!important;
}
}
/* -- Columns for medium sizes or larger -- */
@media (min-width: 768px) {
.col-md {
flex: 1 0 0%;
}
.col-md-auto {
flex: 0 0 auto;
width: auto;
}
.col-md-1 {
flex: 0 0 auto;
width: 8.3333333333%;
}
.col-md-2 {
flex: 0 0 auto;
width: 16.6666666667%;
}
.col-md-3 {
flex: 0 0 auto;
width: 25%;
}
.col-md-4 {
flex: 0 0 auto;
width: 33.3333333333%;
}
.col-md-5 {
flex: 0 0 auto;
width: 41.6666666667%;
}
.col-md-6 {
flex: 0 0 auto;
width: 50%;
}
.col-md-7 {
flex: 0 0 auto;
width: 58.3333333333%;
}
.col-md-8 {
flex: 0 0 auto;
width: 66.6666666667%;
}
.col-md-9 {
flex: 0 0 auto;
width: 75%;
}
.col-md-10 {
flex: 0 0 auto;
width: 83.3333333333%;
}
.col-md-11 {
flex: 0 0 auto;
width: 91.6666666667%;
}
.col-md-12 {
flex: 0 0 auto;
width: 100%;
}
/* ---- Floats ---- */
.float-md-left {
float: left !important;
}
.float-md-right {
float: right !important;
}
.float-md-none {
float: none !important;
}
}
/* -- Columns for larger sizer -- */
@media (min-width: 992px) {
.col-lg {
flex: 1 0 0%;
}
.col-lg-auto {
flex: 0 0 auto;
width: auto;
}
.col-lg-1 {
flex: 0 0 auto;
width: 8.3333333333%;
}
.col-lg-2 {
flex: 0 0 auto;
width: 16.6666666667%;
}
.col-lg-3 {
flex: 0 0 auto;
width: 25%;
}
.col-lg-4 {
flex: 0 0 auto;
width: 33.3333333333%;
}
.col-lg-5 {
flex: 0 0 auto;
width: 41.6666666667%;
}
.col-lg-6 {
flex: 0 0 auto;
width: 50%;
}
.col-lg-7 {
flex: 0 0 auto;
width: 58.3333333333%;
}
.col-lg-8 {
flex: 0 0 auto;
width: 66.6666666667%;
}
.col-lg-9 {
flex: 0 0 auto;
width: 75%;
}
.col-lg-10 {
flex: 0 0 auto;
width: 83.3333333333%;
}
.col-lg-11 {
flex: 0 0 auto;
width: 91.6666666667%;
}
.col-lg-12 {
flex: 0 0 auto;
width: 100%;
}
/* ---- Floats ---- */
.float-lg-left {
float: left !important;
}
.float-lg-right {
float: right !important;
}
.float-lg-none {
float: none !important;
}
}
/* Consistent size for <small>, <sub> and <sup> */
small {
font-size: 85%;
}
.mw-body-content sub,.mw-body-content sup,span.reference /* for Parsoid */
{
font-size: 80%;
}
/* Highlight linked elements (such as clicked references) in blue */
body.action-info .mw-body-content :target,.citation:target {
background-color: #def;
/* Fallback */
background-color: rgba(0, 127, 255, 0.133);
}
/* Style for horizontal lists (separator following item).@source mediawiki.org/wiki/Snippets/Horizontal_lists@revision 8 (2016-05-21)@author [[User:Edokter]]*/
.hlist dl,.hlist ol,.hlist ul {
margin: 0;
padding: 0;
}
/* Display list items inline */
.hlist dd,.hlist dt,.hlist li {
margin: 0;
display: inline;
}
/* Display nested lists inline */
.hlist.inline,.hlist.inline dl,.hlist.inline ol,.hlist.inline ul,.hlist dl dl, .hlist dl ol, .hlist dl ul,.hlist ol dl, .hlist ol ol, .hlist ol ul,.hlist ul dl, .hlist ul ol, .hlist ul ul {
display: inline;
}
/* Hide empty list items */
.hlist .mw-empty-li {
display: none;
}
/* Generate interpuncts */
.hlist dt:after {
content: ": ";
}
/*** Note hlist style usage differd in* the Minerva skin. Remember .hlist is a class defined in core as well! Please check Minerva desktop (and Minerva.css) when changing* See https://phabricator.wikimedia.org/T213239*/
.hlist dd:after,.hlist li:after {
content: " · ";
font-weight: bold;
}
.hlist dd:last-child:after,.hlist dt:last-child:after,.hlist li:last-child:after {
content: none;
}
/* Add parentheses around nested lists */
.hlist dd dd:first-child:before, .hlist dd dt:first-child:before, .hlist dd li:first-child:before,.hlist dt dd:first-child:before, .hlist dt dt:first-child:before, .hlist dt li:first-child:before,.hlist li dd:first-child:before, .hlist li dt:first-child:before, .hlist li li:first-child:before {
content: " (";
font-weight: normal;
}
.hlist dd dd:last-child:after, .hlist dd dt:last-child:after, .hlist dd li:last-child:after,.hlist dt dd:last-child:after, .hlist dt dt:last-child:after, .hlist dt li:last-child:after,.hlist li dd:last-child:after, .hlist li dt:last-child:after, .hlist li li:last-child:after {
content: ")";
font-weight: normal;
}
/* Put ordinals in front of ordered list items */
.hlist ol {
counter-reset: listitem;
}
.hlist ol > li {
counter-increment: listitem;
}
.hlist ol > li:before {
content: " " counter(listitem) "\a0";
}
.hlist dd ol > li:first-child:before,.hlist dt ol > li:first-child:before,.hlist li ol > li:first-child:before {
content: " (" counter(listitem) "\a0";
}
/* Unbulleted lists */
.plainlist ol,.plainlist ul {
line-height: inherit;
list-style: none none;
margin: 0;
}
.plainlist ol li,.plainlist ul li {
margin-bottom: 0;
}
/* Default style for navigation boxes */
.navbox {
/* Navbox container style */
box-sizing: border-box;
border: 1px solid #a2a9b1;
width: 100%;
clear: both;
font-size: 88%;
text-align: center;
padding: 1px;
margin: 1em auto 0;
/* Prevent preceding content from clinging to navboxes */
background: #043219;
}
.navbox .navbox {
margin-top: 0;
/* No top margin for nested navboxes */
}
.navbox + .navbox {
margin-top: -1px;
/* Single pixel border between adjacent navboxes */
}
.navbox-inner,.navbox-subgroup {
width: 100%;
}
.navbox-group,.navbox-title,.navbox-abovebelow {
padding: 0.25em 1em;
/* Title, group and above/below styles */
line-height: 1.5em;
text-align: center;
}
th.navbox-group {
/* Group style */
white-space: nowrap;
/* @noflip */
text-align: right;
}
.navbox,.navbox-subgroup {
background-color: #fdfdfd;
/* Background color */
}
.navbox-list {
line-height: 1.5em;
border-color: #fdfdfd;
/* Must match background color */
}
/* cell spacing for navbox cells */
tr + tr > .navbox-abovebelow,tr + tr > .navbox-group,tr + tr > .navbox-image,tr + tr > .navbox-list {
/* Borders above 2nd, 3rd, etc. rows */
border-top: 2px solid #fdfdfd;
/* Must match background color */
}
.navbox th,.navbox-title {
background-color: #ccccff;
/* Level 1 color */
}
.navbox-abovebelow,th.navbox-group,.navbox-subgroup .navbox-title {
background-color: #ddddff;
/* Level 2 color */
}
.navbox-subgroup .navbox-group,.navbox-subgroup .navbox-abovebelow {
background-color: #e6e6ff;
/* Level 3 color */
}
.navbox-even {
background-color: #f7f7f7;
/* Even row striping */
}
.navbox-odd {
background-color: transparent;
/* Odd row striping */
}
.navbox .hlist td dl,.navbox .hlist td ol,.navbox .hlist td ul,.navbox td.hlist dl,.navbox td.hlist ol,.navbox td.hlist ul {
padding: 0.125em 0;
/* Adjust hlist padding in navboxes */
}
/* Default styling for Navbar template */
.navbar {
display: inline;
font-size: 88%;
font-weight: normal;
}
.navbar ul {
display: inline-block;
white-space: nowrap;
}
.mw-body-content .navbar ul {
line-height: inherit;
}
.navbar li {
word-spacing: -0.125em;
}
.navbar.mini li abbr[title] {
font-variant: small-caps;
border-bottom: none;
text-decoration: none;
cursor: inherit;
}
/* Navbar styling when nested in infobox and navbox */
.infobox .navbar {
font-size: 100%;
}
.navbox .navbar {
display: block;
font-size: 100%;
}
.navbox-title .navbar {
/* @noflip */
float: left;
/* @noflip */
text-align: left;
/* @noflip */
margin-right: 0.5em;
}
/* Standard Navigationsleisten, aka box hiding thingyfrom .de. Documentation at [[Wikipedia:NavFrame]]. */
div.NavFrame {
margin: 0;
padding: 4px;
border: 1px solid #a2a9b1;
text-align: center;
border-collapse: collapse;
font-size: 95%;
}
div.NavFrame + div.NavFrame {
border-top-style: none;
border-top-style: hidden;
}
div.NavFrame div.NavHead {
line-height: 1.6em;
font-weight: bold;
background-color: #ccf;
position: relative;
}
div.NavFrame p,div.NavFrame div.NavContent,div.NavFrame div.NavContent p {
font-size: 100%;
}
a.NavToggle {
position: absolute;
top: 0;
/* @noflip */
right: 3px;
font-weight: normal;
font-size: 90%;
}
/* Hatnotes and disambiguation notices */
.hatnote {
font-style: italic;
}
.hatnote i {
font-style: normal;
}
div.hatnote {
/* @noflip */
padding-left: 1.6em;
margin-bottom: 0.5em;
}
div.hatnote + div.hatnote {
margin-top: -0.5em;
}
/* Prevent line breaks in silly places:1) Where desired2) Links when we don't want them to3) Bold "links" to the page itself */
.nowrap,.nowraplinks a,.nowraplinks .selflink {
white-space: nowrap;
}
.nowrap pre {
white-space: pre;
}
/* But allow wrapping where desired: */
.wrap,.wraplinks a {
white-space: normal;
}
/* Infobox template style */
.infobox {
border: 1px solid #a2a9b1;
border-spacing: 3px;
background-color: #f8f9fa;
color: black;
/* @noflip */
margin: 0.5em 0 0.5em 1em;
padding: 0.2em;
/* @noflip */
font-size: 88%;
line-height: 1.5em;
}
.infobox caption {
font-size: 125%;
font-weight: bold;
padding: 0.2em;
text-align: center;
}
.infobox td,.infobox th {
vertical-align: top;
/* @noflip */
text-align: left;
}
.infobox.bordered {
border-collapse: collapse;
}
.infobox.bordered td,.infobox.bordered th {
border: 1px solid #a2a9b1;
}
.infobox.bordered .borderless td,.infobox.bordered .borderless th {
border: 0;
}
/* Minimum thumb width */
.thumbinner {
min-width: 100px;
}
.navbox-abovebelow, th.navbox-group, .navbox-subgroup .navbox-title {
color: #000;
}
.navbox {
background: #043219;
}
tr + tr > .navbox-abovebelow, tr + tr > .navbox-group, tr + tr > .navbox-image, tr + tr > .navbox-list {
border-color: #a0a0a0;
}
.navbox-inner, .navbox-subgroup, .navbox-even, .navbox-odd {
background-color: #000d00!important
}
.navbox-abovebelow, th.navbox-group, .navbox-subgroup .navbox-title, .navbox-title {
background-color: #075129!important;
}
td.navbox-image {
background: #222222;
}