MediaWiki:Common.css: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(Die Seite wurde neu angelegt: →CSS an dieser Stelle wirkt sich auf alle Skins aus: div#siteNotice { width:100%; →makes the div full width: float:left; →makes the div enclose the list: ...) |
|||
Zeile 127: | Zeile 127: | ||
@import("/wiki/skins/common/dropdown/ie51_menu_hack.css"); | @import("/wiki/skins/common/dropdown/ie51_menu_hack.css"); | ||
/* END OF DROP DOWN MENUS */ | /* END OF DROP DOWN MENUS */ | ||
+ | |||
+ | /* Stylesheet-Ergänzung zu Standard-[[Wikipedia:Navigationsleisten|Navigationsleisten]] */ | ||
+ | |||
+ | div.BoxenVerschmelzen, | ||
+ | div.NavFrame { | ||
+ | margin: 0px; | ||
+ | padding: 2px; | ||
+ | border: 1px solid #aaaaaa; | ||
+ | text-align: center; | ||
+ | border-collapse: collapse; | ||
+ | font-size: 95%; | ||
+ | clear:both; | ||
+ | } | ||
+ | div.BoxenVerschmelzen div.NavFrame { | ||
+ | border-style: none; | ||
+ | border-style: hidden; | ||
+ | } | ||
+ | div.NavFrame + div.NavFrame { | ||
+ | border-top-style: none; | ||
+ | border-top-style: hidden; | ||
+ | } | ||
+ | div.NavPic { | ||
+ | background-color: #ffffff; | ||
+ | margin: 0px; | ||
+ | padding: 2px; | ||
+ | float: left; | ||
+ | } | ||
+ | div.NavFrame div.NavHead { | ||
+ | font-weight: bold; | ||
+ | font-size: 100%; | ||
+ | background-color: #efefef; | ||
+ | } | ||
+ | div.NavFrame p { | ||
+ | font-size: 100%; | ||
+ | } | ||
+ | div.NavFrame div.NavContent { | ||
+ | font-size: 100%; | ||
+ | } | ||
+ | div.NavFrame div.NavContent p { | ||
+ | font-size: 100%; | ||
+ | } | ||
+ | div.NavEnd { | ||
+ | margin: 0px; | ||
+ | padding: 0px; | ||
+ | line-height: 1px; | ||
+ | clear: both; | ||
+ | } | ||
+ | |||
+ | /* Stylesheet fuer den 'Ausklappen'-Button an Navileisten, der in [[MediaWiki:Common.js]] implementiert wird */ | ||
+ | .NavToggle { | ||
+ | font-size: x-small; | ||
+ | float:right; | ||
+ | } | ||
+ | |||
+ | /* Workaround für Internet Explorer 6 */ | ||
+ | div.NavFrame, div.NavPic, .NavToggle { | ||
+ | position:relative; | ||
+ | } | ||
+ | |||
+ | /* Abstand vor Navigationsleisten */ | ||
+ | |||
+ | div.BoxenVerschmelzen, | ||
+ | div.NavFrame { | ||
+ | margin-top: 1.5em; | ||
+ | } | ||
+ | div.BoxenVerschmelzen div.NavFrame { | ||
+ | margin-top: 0; | ||
+ | } | ||
+ | div.NavFrame + div.NavFrame { | ||
+ | margin-top: 0; | ||
+ | } | ||
+ | |||
+ | /* Stylesheet-Ergänzung zu SideBoxen (ehedem [[Wikipedia:TownBox|TownBox]]) */ | ||
+ | |||
+ | div.sideBox { | ||
+ | position: relative; | ||
+ | float: right; | ||
+ | background: white; | ||
+ | margin-left: 1em; | ||
+ | border: 1px solid gray; | ||
+ | padding: 0.3em; | ||
+ | width: 200px; | ||
+ | overflow: hidden; | ||
+ | clear: right; | ||
+ | } | ||
+ | div.sideBox dl { | ||
+ | padding: 0; | ||
+ | margin: 0 0 0.3em 0; | ||
+ | font-size: 96%; | ||
+ | } | ||
+ | div.sideBox dl dt { | ||
+ | background: none; | ||
+ | margin: 0.4em 0 0 0; | ||
+ | } | ||
+ | div.sideBox dl dd { | ||
+ | margin: 0.1em 0 0 1.1em; | ||
+ | background-color: #f3f3f3; | ||
+ | } | ||
+ | |||
+ | /* Stylesheet-Ergänzung zu [[Wikipedia:Taxoboxen|Taxoboxen]] */ | ||
+ | |||
+ | table.taxobox { | ||
+ | border-collapse: collapse; | ||
+ | border: 1px solid gray; | ||
+ | float: right; | ||
+ | clear: right; | ||
+ | margin-left: 0.5em; | ||
+ | background-color:white; | ||
+ | } | ||
+ | table.taxobox th { | ||
+ | background-color: #9BCD9B; | ||
+ | border: solid 1px gray; | ||
+ | text-align: center; | ||
+ | font-weight: bold; | ||
+ | } | ||
+ | table.taxobox td { | ||
+ | vertical-align:top; | ||
+ | } | ||
+ | table.taxobox .Person { | ||
+ | font-style: normal; | ||
+ | } | ||
+ | table.taxobox div.thumb, | ||
+ | table.taxobox div.thumb * { | ||
+ | margin: auto; | ||
+ | padding: 0; | ||
+ | float: none; | ||
+ | border: none; | ||
+ | background-color:#F9F9F9; | ||
+ | } | ||
+ | table.taxobox div.magnify { | ||
+ | display: none; | ||
+ | } | ||
+ | table.taxobox tr td div.thumb div div.thumbcaption { | ||
+ | text-align:center; | ||
+ | } | ||
+ | table.taxobox td.Person { | ||
+ | text-align:center; | ||
+ | display:block; | ||
+ | } | ||
+ | table.taxobox td.taxo-name { | ||
+ | text-align:center; | ||
+ | } | ||
+ | table.taxobox td.taxo-bild { | ||
+ | text-align:center; | ||
+ | } | ||
+ | |||
+ | /* Stylesheet-Ergänzung zu [[Wikipedia:Paläoboxen|Paläoboxen]] */ | ||
+ | |||
+ | table.palaeobox { | ||
+ | border-collapse: collapse; | ||
+ | border: 1px solid gray; | ||
+ | float: right; | ||
+ | clear: right; | ||
+ | margin-left: 0.5em; | ||
+ | background-color:white; | ||
+ | } | ||
+ | table.palaeobox th { | ||
+ | background-color: #e7dcc3; | ||
+ | border: solid 1px gray; | ||
+ | text-align: center; | ||
+ | font-weight: bold; | ||
+ | } | ||
+ | table.palaeobox td { | ||
+ | vertical-align:top; | ||
+ | } | ||
+ | table.palaeobox .Person { | ||
+ | font-style: normal; | ||
+ | } | ||
+ | table.palaeobox div.thumb, | ||
+ | table.palaeobox div.thumb * { | ||
+ | margin: 0; | ||
+ | padding: 0; | ||
+ | float: none; | ||
+ | border: none; | ||
+ | } | ||
+ | table.palaeobox div.magnify { | ||
+ | display:none; | ||
+ | } | ||
+ | table.palaeobox tr td div.thumb div div.thumbcaption { | ||
+ | text-align:left; | ||
+ | } | ||
+ | table.palaeobox td.Person { | ||
+ | text-align:center; | ||
+ | display:block; | ||
+ | } | ||
+ | table.palaeobox td.taxo-name { | ||
+ | text-align:center; | ||
+ | } | ||
+ | table.palaeobox td.taxo-bild { | ||
+ | text-align:center; | ||
+ | } | ||
+ | table.palaeobox td.taxo-zeit { | ||
+ | text-align:center; | ||
+ | } | ||
+ | table.palaeobox td.taxo-ort { | ||
+ | text-align:left; | ||
+ | } | ||
+ | |||
+ | /* aus Vorlage zur Entlastung, skinabhängigen Darstellung und Kombinierbarkeit hierher ausgelagert */ | ||
+ | .wikitable, | ||
+ | .prettytable { | ||
+ | margin: 1em 1em 1em 0; | ||
+ | background: #f9f9f9; | ||
+ | border: 1px #AAA solid; | ||
+ | border-collapse: collapse; | ||
+ | empty-cells:show; | ||
+ | } | ||
+ | |||
+ | .wikitable th, .wikitable td, | ||
+ | .prettytable th, .prettytable td { | ||
+ | border: 1px #AAA solid; | ||
+ | padding: 0.3em; | ||
+ | } | ||
+ | |||
+ | .wikitable caption, | ||
+ | .prettytable caption { | ||
+ | margin-left: inherit; | ||
+ | margin-right: inherit; | ||
+ | font-weight: bold; | ||
+ | } | ||
+ | |||
+ | .nogrid th, .nogrid td {border: none;} | ||
+ | .float-left { float: left; clear: left; } | ||
+ | .float-right { float: right; clear: right; margin: 1em 0 1em 1em; } | ||
+ | .centered { margin-left: auto; margin-right: auto; } | ||
+ | .toptextcells td { vertical-align: top; } |
Version vom 23. Mai 2009, 19:47 Uhr
/* CSS an dieser Stelle wirkt sich auf alle Skins aus */ div#siteNotice { width:100%; /* makes the div full width */ float:left; /*makes the div enclose the list */ font-size:.8em; /* SET FONT-SIZE HERE */ margin:1px 0 1em 0; padding:0; } div#siteNotice ul { margin-left:0px; /* reset */ } div#siteNotice li { float:left; /* causes the list to align horizontally instead of stack */ position:relative; /* positioning context for the absolutely positioned drop-down */ list-style-type:none; /* removes the bullet off each list item */ list-style-image: none; background-color:#F1F1CB; /*sets the background of the menu items */ border-right:1px solid #002bb8; /* creates dividing lines between the li elements */ border-top:1px solid #002bb8; border-bottom:1px solid #002bb8; margin: -4px 0 -5px 0; /*Brings the menu items up */ padding:0 6px; /*creates space each side of menu item's text */ } div#siteNotice li:first-child { -moz-border-radius-topleft: .5em; padding-bottom:0px; /*to fix from rounded edge */ border-left:1px solid #002bb8; /*the first vertical line on the menu */ } div#siteNotice li:last-child { -moz-border-radius-topright: .5em; padding-bottom:0px; /*to fix from rounded edge */ } div#siteNotice li:hover { background-color:#FFF; /*sets the background of the menu items */ } div#siteNotice a { display:block; /*makes list items in drop down highlight and wrapped lines indent correctly */ color:#002bb8; /* sets the font color */ } /* the horizontal menu ends here */ /* the drop-down starts here */ div#siteNotice ul li ul { margin:0; /* prevents the TEMP value inheriting from the horiz menu */ position:absolute; /* positions the drop-down ul in relation to its relatively positioned li parent */ width:10em; /*sets the width of the menu - in combo with the li's 100% width, makes the menu stack*/ left:-1px; /*aligns the drop exactly under the menu */ } div#siteNotice ul li ul li { margin: -1px 0 0 0; /* prevents the margin value inheriting from the horiz menu + bring menu items up */ width:100%; /* makes the list items fill the list container (ul) */ border-left:1px solid #069; /* three sides of each drop-down item */ list-style-type:none; /* removes the bullet off each list item */ list-style-image:none; /* removes the bullet off each list item */ padding:0 0 1px; } div#siteNotice ul li ul li:first-child { -moz-border-radius-topleft: 0; /* needed to hide curve */ } div#siteNotice ul li ul li:last-child { -moz-border-radius-bottomright: 1em; -moz-border-radius-bottomleft: 1em; -moz-border-radius-topright: 0; padding-right:1px; /*to move over right side rounded edge */ } /* make the drop-down display as the menu is rolled over */ div#siteNotice ul li ul {display:none;} /* conceals the drop-down when menu not hovered */ div#siteNotice ul li:hover ul {display:block; } /* shows the drop-down when the menu is hovered */ /* pop-out starts here */ body div#siteNotice ul li ul li ul { visibility:hidden; /* same effect as display:none in this situation */ top:-1px; left:10em; } div#siteNotice ul li ul li:hover ul {visibility:visible; } /* same effect as display:block in this situation */ div#siteNotice ul li ul li:hover ul li {padding-right:1px; -moz-border-radius-topright: 0;} div#siteNotice ul li ul li:hover ul li:last-child {-moz-border-radius-topright: 0;} /* second level popouts */ div#siteNotice ul li ul li:hover ul li ul {visibility:hidden;} div#siteNotice ul li ul li ul li:hover ul {visibility:visible; margin-top:1px} /* same effect as display:block in this situation */ div#siteNotice ul li ul li ul li:hover ul li:last-child {-moz-border-radius-topright: 0;} /* third level popouts */ div#siteNotice ul li ul li ul li:hover ul li ul {visibility:hidden;} div#siteNotice ul li ul li ul li ul li:hover ul {visibility:visible; margin-top:1px} /* same effect as display:block in this situation */ div#siteNotice ul li ul li ul li ul li:hover ul li:last-child {-moz-border-radius-topright: 0;} /* THE HACK ZONE - */ /* hack for IE (all flavors) so the menu has a vertical line on the left */ * html div#siteNotice ul { float:left; /* makes the ul wrap the li's */ border-left:1px solid #069; /* adds the rightmost menu vertical line to the ul */ } /* and the "be nice to Opera" rule */ html>body div#siteNotice ul li ul li ul { left:10em; } /* an Opera-only hack to fix a redraw problem by invisibly extending the ul */ /* the first-level drop stays open for 100px below the bottom but at least it works */ /* this can be reduced to as little as 22px if you don't have pop-outs */ /* the pop-out menu stays open for 22px below the bottom but at least it works Not Tested!! */ @media all and (min-width: 0px){ body div#siteNotice ul li ul {padding-bottom:200px;} body div#siteNotice ul li ul li ul {padding-bottom:22px;} body div#siteNotice ul li ul li ul li ul li:hover {visibility:visible;} /* same effect as display:block in this situation */ } /*end Opera hack */ /* finally after feeding values to all others, we deal with MAc5 IE */ /* IE5 Mac can't do drop-downs so we need to present the info in a different way*/ /* we present the drop down choices in a row and never show any second-level drops */ /* this stylesheet is read by IE5 Mac only - hack omits 'url' and leave no space between @import and (" Not Tested!!*/ @import("/wiki/skins/common/dropdown/ie51_menu_hack.css"); /* END OF DROP DOWN MENUS */ /* Stylesheet-Ergänzung zu Standard-[[Wikipedia:Navigationsleisten|Navigationsleisten]] */ div.BoxenVerschmelzen, div.NavFrame { margin: 0px; padding: 2px; border: 1px solid #aaaaaa; text-align: center; border-collapse: collapse; font-size: 95%; clear:both; } div.BoxenVerschmelzen div.NavFrame { border-style: none; border-style: hidden; } div.NavFrame + div.NavFrame { border-top-style: none; border-top-style: hidden; } div.NavPic { background-color: #ffffff; margin: 0px; padding: 2px; float: left; } div.NavFrame div.NavHead { font-weight: bold; font-size: 100%; background-color: #efefef; } div.NavFrame p { font-size: 100%; } div.NavFrame div.NavContent { font-size: 100%; } div.NavFrame div.NavContent p { font-size: 100%; } div.NavEnd { margin: 0px; padding: 0px; line-height: 1px; clear: both; } /* Stylesheet fuer den 'Ausklappen'-Button an Navileisten, der in [[MediaWiki:Common.js]] implementiert wird */ .NavToggle { font-size: x-small; float:right; } /* Workaround für Internet Explorer 6 */ div.NavFrame, div.NavPic, .NavToggle { position:relative; } /* Abstand vor Navigationsleisten */ div.BoxenVerschmelzen, div.NavFrame { margin-top: 1.5em; } div.BoxenVerschmelzen div.NavFrame { margin-top: 0; } div.NavFrame + div.NavFrame { margin-top: 0; } /* Stylesheet-Ergänzung zu SideBoxen (ehedem [[Wikipedia:TownBox|TownBox]]) */ div.sideBox { position: relative; float: right; background: white; margin-left: 1em; border: 1px solid gray; padding: 0.3em; width: 200px; overflow: hidden; clear: right; } div.sideBox dl { padding: 0; margin: 0 0 0.3em 0; font-size: 96%; } div.sideBox dl dt { background: none; margin: 0.4em 0 0 0; } div.sideBox dl dd { margin: 0.1em 0 0 1.1em; background-color: #f3f3f3; } /* Stylesheet-Ergänzung zu [[Wikipedia:Taxoboxen|Taxoboxen]] */ table.taxobox { border-collapse: collapse; border: 1px solid gray; float: right; clear: right; margin-left: 0.5em; background-color:white; } table.taxobox th { background-color: #9BCD9B; border: solid 1px gray; text-align: center; font-weight: bold; } table.taxobox td { vertical-align:top; } table.taxobox .Person { font-style: normal; } table.taxobox div.thumb, table.taxobox div.thumb * { margin: auto; padding: 0; float: none; border: none; background-color:#F9F9F9; } table.taxobox div.magnify { display: none; } table.taxobox tr td div.thumb div div.thumbcaption { text-align:center; } table.taxobox td.Person { text-align:center; display:block; } table.taxobox td.taxo-name { text-align:center; } table.taxobox td.taxo-bild { text-align:center; } /* Stylesheet-Ergänzung zu [[Wikipedia:Paläoboxen|Paläoboxen]] */ table.palaeobox { border-collapse: collapse; border: 1px solid gray; float: right; clear: right; margin-left: 0.5em; background-color:white; } table.palaeobox th { background-color: #e7dcc3; border: solid 1px gray; text-align: center; font-weight: bold; } table.palaeobox td { vertical-align:top; } table.palaeobox .Person { font-style: normal; } table.palaeobox div.thumb, table.palaeobox div.thumb * { margin: 0; padding: 0; float: none; border: none; } table.palaeobox div.magnify { display:none; } table.palaeobox tr td div.thumb div div.thumbcaption { text-align:left; } table.palaeobox td.Person { text-align:center; display:block; } table.palaeobox td.taxo-name { text-align:center; } table.palaeobox td.taxo-bild { text-align:center; } table.palaeobox td.taxo-zeit { text-align:center; } table.palaeobox td.taxo-ort { text-align:left; } /* aus Vorlage zur Entlastung, skinabhängigen Darstellung und Kombinierbarkeit hierher ausgelagert */ .wikitable, .prettytable { margin: 1em 1em 1em 0; background: #f9f9f9; border: 1px #AAA solid; border-collapse: collapse; empty-cells:show; } .wikitable th, .wikitable td, .prettytable th, .prettytable td { border: 1px #AAA solid; padding: 0.3em; } .wikitable caption, .prettytable caption { margin-left: inherit; margin-right: inherit; font-weight: bold; } .nogrid th, .nogrid td {border: none;} .float-left { float: left; clear: left; } .float-right { float: right; clear: right; margin: 1em 0 1em 1em; } .centered { margin-left: auto; margin-right: auto; } .toptextcells td { vertical-align: top; }