Navigation menu
MediaWiki:Common.css: Difference between revisions
From Metroid Wiki
(move colouring styles to skin-specific page) |
m (needs a bit more padding) |
||
(11 intermediate revisions by the same user not shown) | |||
Line 49: | Line 49: | ||
.client-js .NavFrame.collapsed > .NavContent { | .client-js .NavFrame.collapsed > .NavContent { | ||
display: none; | display: none; | ||
} | |||
/* Standard layout */ | |||
.outer-box { | |||
border-radius: 20px; | |||
border: 2px solid; | |||
margin-bottom: 10px; | |||
} | |||
.content-box { | |||
border-radius: 15px; | |||
border: 1px solid; | |||
margin: 3px; | |||
padding: 0.4em 0.4em 1.2em; | |||
} | |||
/* Template:Notice */ | |||
.notice.outer-box { | |||
width: 50%; | |||
margin-left: 10%; | |||
} | |||
.notice .content-box { | |||
text-align: center; | |||
} | |||
/* Infobox styles */ | |||
.infobox { | |||
float: right; | |||
width: 300px; | |||
font-family: arial, sans-serif; | |||
font-size: 11px; | |||
margin: 0 0 1em 1em; | |||
border: 1px solid #a2a9b1; | |||
} | |||
.infobox-sub { | |||
width: 100%; | |||
margin-left: auto; | |||
margin-right: auto; | |||
border-spacing: 0; | |||
} | |||
.infobox-sub th, | |||
.infobox-sub td { | |||
border: 1px solid #a2a9b1; | |||
padding: 0.4em; | |||
} | |||
.infobox-sub th { | |||
width: 30%; | |||
text-align: right; | |||
} | |||
.infobox-sub td > p { | |||
margin: 0; | |||
} | } |
Latest revision as of 21:57, 14 April 2023
/* CSS placed here will be applied to all skins */ /* Standard Navigationsleisten, aka box hiding thingy from .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.NavPic { background-color: #fff; margin: 0; padding: 2px; /* @noflip */ float: left; } 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%; } div.NavEnd { margin: 0; padding: 0; line-height: 1px; clear: both; } a.NavToggle { position: absolute; top: 0; /* @noflip */ right: 3px; font-weight: normal; font-size: 90%; } .client-js .NavFrame.collapsed > .NavContent { display: none; } /* Standard layout */ .outer-box { border-radius: 20px; border: 2px solid; margin-bottom: 10px; } .content-box { border-radius: 15px; border: 1px solid; margin: 3px; padding: 0.4em 0.4em 1.2em; } /* Template:Notice */ .notice.outer-box { width: 50%; margin-left: 10%; } .notice .content-box { text-align: center; } /* Infobox styles */ .infobox { float: right; width: 300px; font-family: arial, sans-serif; font-size: 11px; margin: 0 0 1em 1em; border: 1px solid #a2a9b1; } .infobox-sub { width: 100%; margin-left: auto; margin-right: auto; border-spacing: 0; } .infobox-sub th, .infobox-sub td { border: 1px solid #a2a9b1; padding: 0.4em; } .infobox-sub th { width: 30%; text-align: right; } .infobox-sub td > p { margin: 0; }