MediaWiki:Common.css
From ToxBankWiki
Common.css
Note: After saving, you may have to bypass your browser's cache to see the changes. Mozilla / Firefox / Safari: hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (Command-R on a Macintosh); Konqueror: click Reload or press F5; Opera: clear the cache in Tools → Preferences; Internet Explorer: hold Ctrl while clicking Refresh, or press Ctrl-F5.
/** make the list of references look smaller and highlight clicked reference in blue **/ body.page-Main_Page h1.firstHeading { display:none; } body.page-Main_Page div#contentSub { display:none; } ol.references { font-size: 95%; } .references-small { font-size: 80%;} ol.references> li:target { background-color: #ddeeff; } sup.reference:target { background-color: #ddeeff; } /** CSS style file for Semantic MediaWiki. */ span.smwbuiltin, span.smwttactiveinline span.smwbuiltin { /* highlighting for builtin elements */ font-style: italic; } div.smwpre { /* make divs look like <pre> */ white-space: pre; font-family: monospace; padding: 1em; border: 1px dashed #2f6fab; color: black; background-color: #f9f9f9; line-height: 1.1em; margin-bottom: 0.5em; margin-top: 0.5em; } #smwfootbr { /* terminate page contents when inserting stuff below a page, typically used in <br> */ clear: both; } /* tables for inline queries */ table.smwtable { background-color: #EEEEFF;/* Note: here and below, we use six digits, since some users had problems with the three digit short forms */ } table.smwtable th { background-color: #EEEEFF; text-align: left; } table.smwtable td { background-color: #FFFFFF; padding: 1px; padding-left: 5px; padding-right: 5px; text-align: left; vertical-align: top; } table.smwtable tr.smwfooter td { font-size: 90%; line-height: 1; background-color: #EEEEFF; padding: 0px; padding-left: 5px; padding-right: 5px; text-align: right; vertical-align: top; } /* hide keys for sorting table entries */ span.smwsortkey { display: none; } /* buttons for sort-arrows */ a.sortheader:hover { text-decoration: none; } /* "semantic" span classes for Timeline */ div.smwtimeline { border: 1px solid #AAAAAA; background-color: #F9F9F9; /*text-align: center;*/ /* After hours of debugging and frustration I now can safely say: IE sucks. (mak) You can support Semantic MediaWiki development by not using Internet Explorer. Thanks. (IE centers the Timeline *elements*, which messes up the whole layout) */ } span.smwtlevent, span.smwtlband, span.smwtlsize, span.smwtlposition { display: none; speak: none; } span.smwtlcomment { font-style: italic; padding: 5px; } /* Factbox */ div.smwfact { clear: left; float: left; width: 72%; background-color: #F9F9F9; padding: 5px; margin-top: 1em; border: 1px solid #AAAAAA; font-size: 95%; } div.smwfact td, div.smwfact tr, div.smwfact table { background-color: #F9F9F9; } span.smwfactboxhead { font-size: 110%; font-weight: bold; float: left; } table.smwfacttable { border-top: 1px dotted #AAAAAA; width: 100%; clear: both; } td.smwpropname, th.smwpropname, td.smwspecname { text-align: right; vertical-align: top; padding-right: 1em; } td.smwprops, td.smwspecs { vertical-align: top; width: 75%; } div.smwhr hr { background-color: #DDDDDD; color: #DDDDDD; } /* warning messages */ span.smwwarning { color: #888888; font-style: italic; font-size: 90%; } /* search, browse, RDF icons */ span.smwsearchicon { /*FIXME: this was only used for Factbox docu, should be removed from code*/ padding-right: 16px; margin-right: 2px; color: #888888; background: url(images/searchgray_iconsmall.png) center right no-repeat; } #bodyContent span.smwsearch a { padding-right: 16px; margin-right: 2px; color: #888888; background: url(images/searchgray_iconsmall.png) center right no-repeat; } #bodyContent span.smwsearch a:hover { text-decoration: none; color: #0000FF; padding-right: 18px; margin-right: 0px; background: url(images/search_icon.png) center right no-repeat; } #bodyContent span.swmfactboxheadbrowse a { padding-right: 16px; margin-right: 2px; color: #000000; background: url(images/browse_iconsmall.png) center right no-repeat; } #bodyContent span.swmfactboxheadbrowse a:hover { text-decoration: none; color: #0000FF; padding-right: 18px; margin-right: 0px; background: url(images/browse_icon.png) center right no-repeat; } #bodyContent span.smwbrowse a { padding-right: 16px; margin-right: 2px; color: #888888; background: url(images/browse_iconsmall.png) center right no-repeat; } #bodyContent span.smwbrowse a:hover { text-decoration: none; color: #0000FF; padding-right: 18px; margin-right: 0px; background: url(images/browse_icon.png) center right no-repeat; } #bodyContent span.smwmap a { padding-right: 20px; color: #888888; background: url(images/world.png) center right no-repeat; } #bodyContent span.smwmap a:hover { padding-right: 20px; color: #0000FF; background: url(images/world.png) center right no-repeat; } #bodyContent span.rdflink { float: right; } #bodyContent span.rdflink a { padding-right: 20px; color: #888888; background: url(images/rdf_flyer.18.gif) center right no-repeat; } #bodyContent span.rdflink a:hover { text-decoration: none; color: #0000FF; padding-right: 20px; margin-right: 0px; background: url(images/rdf_flyer.18.gif) center right no-repeat; } /* Tooltips */ div.smwtt { /* style for content of the bubble */ color: #000000; } span.smwttpersist span.smwttcontent { /* show persistent tooltips for non-JavaScript clients */ color: #888888; font-style: italic; font-size: 90%; } span.smwttinline span.smwttcontent { /* hide inline tooltips for non-JavaScript clients */ display: none; speak: none; } span.smwtticon { /* style for image anchor for persistent tooltips */ display: none; } span.smwttactivepersist { /* colored anchors? */ cursor: help; color: #0000C8; } span.smwttactiveinline { /* colored anchors */ color: #BB7700; text-decoration: none; } img.smwttimg { /* images for tooltip icons */ padding-right: 5px; padding-left: 4px; } /* CSS style file for Semantic MediaWiki Special Browse. */ table.smwb-factbox { border-left: 8px solid #DDDDDD; width: 100% } tr.smwb-title { font-size: 200%; background-color: #DDDDDD; line-height: 1.5; } tr.smwb-title td { padding-left: 5px; border-bottom: 2px solid white; } tr.smwb-propvalue { width: 100%; background-color: #EEEEEE; } tr.smwb-propvalue th { text-align: right; vertical-align: top; font-weight: bold; font-size: 120%; background-color: #DDDDDD; padding: 0.2em 0.6em; border-bottom: 2px solid white; border-top: 2px solid white; } tr.smwb-propvalue td { padding-left:0.4em; background-color: #EEEEEE; border: 0px solid white; border-bottom: 2px solid white; border-top: 2px solid white; width: 90%; } tr.smwb-center { background-color: #DDDDDD; } span.smwb-value { } /* Inverse factbox */ table.smwb-ifactbox { border-right: 8px solid #DDDDDD; width: 100% } tr.smwb-ititle { font-size: 200%; background-color: #DDDDDD; line-height: 1.5; } tr.smwb-ititle td { padding-left: 5px; border-bottom: 2px solid white; } tr.smwb-ipropvalue { width: 100%; background-color: #EEEEEE; text-align: right; } tr.smwb-ipropvalue th { text-align: left; font-weight: bold; font-size: 120%; background-color: #DDDDDD; padding: 0.2em 0.6em; border-bottom: 3px solid white; border-top: 3px solid white; } tr.smwb-ipropvalue td { background-color: #EEEEEE; border-bottom: 3px solid white; border-top: 3px solid white; padding-right: 1em; width: 90%; } span.smwb-ivalue { } /* CSS style file for Collapsible Items. */ table.collapsed tr.collapsible { display: none; } .collapseButton { /* 'show'/'hide' buttons created dynamically by the */ float: right; /* CollapsibleTables JavaScript in [[MediaWiki:Common.js]] */ font-weight: normal; /* are styled here so they can be customised. */ text-align: right; width: auto; } /* Added 20110531 to Hide the Discussion Tabs */ /* #ca-talk { display: none !important; } */ /*--------------------------------------------------| | dTree 2.05 | www.destroydrop.com/javascript/tree/ | |---------------------------------------------------| | Copyright (c) 2002-2003 Geir Landr | |--------------------------------------------------*/ .dtree { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 11px; color: #666; white-space: nowrap; } .dtree img { border: 0px; vertical-align: middle; } .dtree a { color: #333; text-decoration: none; } .dtree a.node, .dtree a.nodeSel { white-space: nowrap; padding: 1px 2px 1px 2px; } .dtree a.node:hover, .dtree a.nodeSel:hover { color: #333; text-decoration: underline; } .dtree a.nodeSel { background-color: #c0d2ec; } .dtree .clip { overflow: hidden; padding-bottom: 1px; } /* * Dynamic menus */ .dmenu { width: 180px } .dmenu, .dmenu ul { /* all lists */ padding: 0; margin: 0; list-style: none; } .dmenu .selflink { font-weight: normal; } .dmenu li { /* all list items */ position: relative; float: left; width: 172px; padding: 4px; z-index: 100; } .dmenu li, .dmenu li.even a, .dmenu li.odd a, .dmenu li li, .dmenu li li a, .dmenu li li li, .dmenu li li li a { color: black; } .dmenu li li { margin: 0; } .dmenu li ul { /* second-level lists */ position: absolute; left: -999em; z-index: 101; border: 1px solid #ccc; } .dmenu li ul ul { /* third-and-above-level lists */ position: absolute; left: -999em; margin: 0 0 0 0; z-index: 102; } .dmenu li.odd .submenu { width: 12px; height: 15px; float: right; background: url(/common/images/rarr-lt.png) 0 3px no-repeat; } .dmenu li.even .submenu { width: 12px; height: 15px; float: right; background: url(/common/images/rarr-dk.png) 0 3px no-repeat; } .dmenu li.odd { background: #E9EDF4; border: 2px solid #E9EDF4; } .dmenu li.even { background: #D0D8E8; border: 2px solid #D0D8E8; } .dmenu li:hover, .dmenu li.sfhover { border: 2px solid #385D8A; } .dmenu li:hover ul ul, .dmenu li:hover ul ul ul, .dmenu li.sfhover ul ul, .dmenu li.sfhover ul ul ul { left: -999em; } .dmenu li:hover ul, .dmenu li li:hover ul, .dmenu li li li:hover ul, .dmenu li.sfhover ul, .dmenu li li.sfhover ul, .dmenu li li li.sfhover ul { /* lists nested under hovered list items */ left: 182px; top: -3px; } /* #p-navigation, #p-tb h5, #p-tb .pBody { display:none } */ #t-smwbrowselink {display:none} /* * MenuSidebar */ /* this has to be overridden for every menu */ #p-Menu, #p-Menu2, #p-Menu3 { overflow: visible; } /* this has to be overridden for every menu */ #p-Menu div, #p-Menu2 div, #p-Menu3 div { margin: 0; padding: 0; } /* this is an example to make the list of the second entry bigger e.g. when ther is a longer text in a list item #p-Menu ul li.item2 ul { width: 16em; } */ /* this an example to change the background color of every second list item li.even { background-color: #eeeeee; } */ .menuSidebar ul { /* remove bullets and list indents */ list-style: none; margin: 0; padding: 0; } /* this div is only for better handling and navigation ... could also be done in inner ul*/ .menuSidebar ul div { position: absolute; top: -6px; left: 100%; /* to position them to the right of their containing block */ width: 100%; /* width is based on the containing block */ z-index: 100; /* show ul on top */ } .menuSidebar ul ul { background-color: white; border: 1px solid #aaaaaa; margin-top: 5px; /* make navigation easier*/ margin-bottom: 5px; /* make navigation easier*/ z-index: 101; /* show on top; Needed for IE 7 */ width: 12em; /* width of inner menu, Needed for IE 7 */ } .menuSidebar li { position: relative; /* make li a container for inner elements */ margin: 1px; z-index: 102; /* show on top; Needed for IE 7 */ } /* style, color and size links and headings to suit */ .menuSidebar a { font-weight: bold; display: block; border-width: 0px 0px 1px 0px; border-style: solid; border-color: #aaaaaa; margin: 0px; padding: 1px; padding-left: 5px; color: #000000; text-decoration: none; } /* move the > to the right */ .menuSidebar a em { position: absolute; right: 4px; } .menuSidebar li:hover, /* Needed for IE 7 */ .menuSidebar a:hover { background: #ccccff; } .menuSidebar li.separator a:hover { background: white; } /* Needed for IE 7 */ .menuSidebar li.separator a, .menuSidebar li.separator { line-height: 0px; height: 0px; font-size: 0px; } .menuSidebar ul li:last-Child a { border-width: 0px 0px 0px 0px; // remove the last bottom line padding-bottom: 0px; } /* hides the first level */ .menuSidebar ul li div { display: none; } /* shows the first level and hide the second */ .menuSidebar ul li:hover div, .menuSidebar ul li div:hover { display: block; } /* div is again used for easier navigation*/ .menuSidebar ul li:hover ul li div { display: none; } /* hide the next level */ /* second level*/ .menuSidebar ul li ul li:hover div, .menuSidebar ul li ul li div:hover { display: block; } /* div is again used for easier navigation*/ .menuSidebar ul li ul li:hover ul li div { display: none; } /* hide the next level */ /* third level */ .menuSidebar ul li ul li ul li:hover div, .menuSidebar ul li ul li ul li div:hover { display: block; } /* div is again used for easier navigation*/ .menuSidebar ul li ul li ul li:hover ul li div { display: none; } /* hide the next level */