MediaWiki:Common.css: Difference between revisions
TeslaRaptor (talk | contribs) No edit summary |
(Initial styling for portable infoboxes) |
||
Line 178: | Line 178: | ||
} | } | ||
/ | //Start portable infobox styling | ||
.portable-infobox { | |||
background-color: #f9f9f9 !important; | |||
} | |||
.portable-infobox .portable-infobox-title { | |||
background-color: black !important; | |||
color: white !important; | |||
text-align: center !important; | |||
margin: -5px -20px -5px -10px !important; | |||
} | |||
.portable-infobox .portable-infobox-item-label { | |||
white-space: nowrap !important; | |||
} | |||
.portable-infobox .portable-infobox-header { | |||
text-align: center !important; | |||
} | |||
.portable-infobox-secondary-background { | |||
background-color: #dcdcdc !important; | |||
} |
Revision as of 14:52, 3 January 2024
/* **************************************************************** */ /* CSS for navboxes. */ /* Used in Template:Navbox, for example. */ /* **************************************************************** */ table.fallout_navbox_box { padding: 0px; border: 1px solid #aaa; text-align: center; border-collapse: separate; font-size: 100%; } table.nb_bottom + table.nb_bottom { border-top-style: none; border-top-style: hidden; } th.fallout_navbox_innertable_title, th.fallout_navbox_box_title { padding: 2px; font-weight: normal; color:white; font-size: 80%; } th.fallout_navbox_box_title { background: url(http://images3.wikia.nocookie.net/fallout/images//d/d1/WidgetBackground.jpg?1); background-color: #0D592F; border: 3px solid white; } th.fallout_navbox_innertable_title { background: url(http://images3.wikia.nocookie.net/fallout/images//d/d3/ConcreteBackground.jpg?1); background-color: #565B45; border-top: 0; border-bottom: 2px solid white; border-left: 3px solid white; border-right: 3px solid white; } th.fallout_navbox_box_title span.fallout_navbox_maintitle { font-weight: bold; font-size: 115%; } th.fallout_navbox_innertable_title span.fallout_navbox_maintitle { font-weight: bold; font-size: 125%; } td.fallout_navbox_cont { padding: 0px; border: 0px; } table.fallout_navbox_innertable, table.fallout_navbox { margin: 0px; padding: 0px; border-collapse:separate; empty-cells:show; } table.fallout_navbox { font-size: 85%; border-bottom: 1px solid white; } table.fallout_navbox_innertable { font-size: 100%; } td.fallout_navbox_header, td.fallout_navbox_footer, td.fallout_navbox_cell, td.fallout_navbox_groupcell, td.fallout_navbox_group, td.fallout_navbox_subgroup { border-top: 0; border-bottom: 2px solid white; border-left: 3px solid white; } td.fallout_navbox_header, td.fallout_navbox_footer, td.fallout_navbox_cell, td.fallout_navbox_groupcell { border-right: 3px solid white; } td.fallout_navbox_header, td.fallout_navbox_footer { padding: 2px; background: url(http://images3.wikia.nocookie.net/fallout/images//d/d3/ConcreteBackground.jpg?1); background-color: #565B45; color:white; text-align: center; } td.fallout_navbox_header { font-weight: bold; } td.fallout_navbox_footer { font-size: 90%; } td.fallout_navbox_subgroup, td.fallout_navbox_group { padding: 2px; text-align: center; white-space: nowrap; border-right: 0; font-weight: bold; } td.fallout_navbox_group { background: url(http://images2.wikia.nocookie.net/fallout/images/9/95/ConcreteBackgroundLight.jpg?1); background-color: #BAC29B; } td.fallout_navbox_subgroup { background-color: #DDDDDD; } td.fallout_navbox_groupcell, td.fallout_navbox_cell { padding: 2px; background-color: #DDDDDD; } td.fallout_navbox_groupcell { text-align: left; } td.fallout_navbox_cell { text-align: center; } /* do not wrap links in content fields if nowraplinks is set */ table.fallout_navbox_nowraplinks td.fallout_navbox_cell a, table.fallout_navbox_nowraplinks td.fallout_navbox_groupcell a { white-space:nowrap; } /* header bar needs brighter links */ table.fallout_navbox_box th a:link { color: #AFA000; } table.fallout_navbox_box th a:active { color: #fff; } table.fallout_navbox_box th a:visited { color: #B6A700; } table.fallout_navbox_box th a:hover { color: #fff; } table.fallout_navbox_box th a.new { color: #f11 !important; } /* headers and footer need brighter links */ td.fallout_navbox_header a:link, td.fallout_navbox_footer a:link { color: #cfc000; } td.fallout_navbox_header a:active , td.fallout_navbox_footer a:active { color: #fff; } td.fallout_navbox_header a:visited , td.fallout_navbox_footer a:visited { color: #B6A700; } td.fallout_navbox_header a:hover , td.fallout_navbox_footer a:hover { color: #fff; } @media print { table.fallout_navbox_box { display: none; } } //Start portable infobox styling .portable-infobox { background-color: #f9f9f9 !important; } .portable-infobox .portable-infobox-title { background-color: black !important; color: white !important; text-align: center !important; margin: -5px -20px -5px -10px !important; } .portable-infobox .portable-infobox-item-label { white-space: nowrap !important; } .portable-infobox .portable-infobox-header { text-align: center !important; } .portable-infobox-secondary-background { background-color: #dcdcdc !important; }