Difference between revisions of "MediaWiki:Common.css"
From Glen Canyon Dam AMP
(19 intermediate revisions by the same user not shown) | |||
Line 15: | Line 15: | ||
div#siteNotice { | div#siteNotice { | ||
width:100%; /* makes the entire box full width */ | width:100%; /* makes the entire box full width */ | ||
− | float:left; | + | /*float:left; makes the entire box enclose the list */ |
font-size:1.3em; /* SET FONT-SIZE HERE */ | font-size:1.3em; /* SET FONT-SIZE HERE */ | ||
− | background-color:# | + | background-color:#FFFFFF; /* colors the background behind the box*/ |
− | + | background:#ffffff; /* BACKGROUND COLORS FOR ENTIRE BOX 930B00 = DARK RED */ | |
− | background:# | + | margin:-20px 0px 20px 0px; |
− | margin: | + | padding:0 0 15px 0; |
− | padding:0; | + | clear:both; |
− | } | + | } |
div#siteNotice li { | div#siteNotice li { | ||
float:left; /* Causes the list to align horizontally instead of stack */ | float:left; /* Causes the list to align horizontally instead of stack */ | ||
position:relative; /* positioning context for the absolutely positioned drop-down */ | position:relative; /* positioning context for the absolutely positioned drop-down */ | ||
list-style-type:none; /* removes the bullet off each list item */ | list-style-type:none; /* removes the bullet off each list item */ | ||
− | background-color:# | + | background-color:#FFFFFF; /*sets the background of the menu items */ |
− | + | ||
margin: -4px 0 0 0; /*Brings the menu items up */ | margin: -4px 0 0 0; /*Brings the menu items up */ | ||
− | padding:0 6px; /*creates space each side of menu item's text */ | + | padding:0 16px 0 6px; /*creates space each side of menu item's text */ |
− | + | border-left: 2px solid #000000; | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
+ | |||
div#siteNotice li:hover { | div#siteNotice li:hover { | ||
− | background-color:# | + | background-color:#cedff2; /*Background of the menu items when hovered over #202020 = DARK GRAY */ |
} | } | ||
div#siteNotice a { | div#siteNotice a { | ||
display:block; /*makes list items in drop down highlight and wrapped lines indent correctly */ | display:block; /*makes list items in drop down highlight and wrapped lines indent correctly */ | ||
− | color:# | + | color:#000000; /* LINK TEXT color #FFF = WHITE */ |
text-decoration: none; /* removes underline */ | text-decoration: none; /* removes underline */ | ||
} | } | ||
Line 57: | Line 48: | ||
position:absolute; /* positions the drop-down ul in relation to its relatively positioned li parent */ | 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*/ | width:10em; /*sets the width of the menu - in combo with the li's 100% width, makes the menu stack*/ | ||
− | left:- | + | left:-2px; /*aligns the drop exactly under the menu */ |
+ | |||
} | } | ||
div#siteNotice ul li ul li { | div#siteNotice ul li ul li { | ||
Line 66: | Line 58: | ||
list-style-image:none; /* removes the bullet off each list item */ | list-style-image:none; /* removes the bullet off each list item */ | ||
padding:0 0 1px; | padding:0 0 1px; | ||
− | - | + | background-color:#eeeeee; |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
/* make the drop-down display as the menu is rolled over */ | /* make the drop-down display as the menu is rolled over */ | ||
Latest revision as of 09:58, 18 July 2014
/** CSS placed here will be applied to all skins */ /*Ensure that the Sitenotice is above the body content*/ #bodyContent { z-index: 98; } #siteNotice { z-index: 99; } /* START DROP DOWN MENUS */ /* http://www.mediawiki.org/wiki/Extension:CSS_Dropdowns#Adding_it_to_your_site */ div#siteNotice { width:100%; /* makes the entire box full width */ /*float:left; makes the entire box enclose the list */ font-size:1.3em; /* SET FONT-SIZE HERE */ background-color:#FFFFFF; /* colors the background behind the box*/ background:#ffffff; /* BACKGROUND COLORS FOR ENTIRE BOX 930B00 = DARK RED */ margin:-20px 0px 20px 0px; padding:0 0 15px 0; clear:both; } 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 */ background-color:#FFFFFF; /*sets the background of the menu items */ margin: -4px 0 0 0; /*Brings the menu items up */ padding:0 16px 0 6px; /*creates space each side of menu item's text */ border-left: 2px solid #000000; } div#siteNotice li:hover { background-color:#cedff2; /*Background of the menu items when hovered over #202020 = DARK GRAY */ } div#siteNotice a { display:block; /*makes list items in drop down highlight and wrapped lines indent correctly */ color:#000000; /* LINK TEXT color #FFF = WHITE */ text-decoration: none; /* removes underline */ } /* the horizontal menu ends here */ /* the drop-down starts here */ div#siteNotice ul li ul { margin:0; /* prevents the TEMP value inheriting from the horizontal 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:-2px; /*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) */ 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; background-color:#eeeeee; } /* 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#siteNoticeul li ul li:hover ul {visibility:visible;} /* same effect as display:block in this situation */ /* second level popouts start here*/ div#siteNotice ul li ul li:hover ul li ul {visibility:hidden;} div#siteNotice ul li ul li ul li:hover ul {visibility:visible;} /* same effect as display:block in this situation */ /* third level popouts start here I haven't tested this */ 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;} /* same effect as display:block in this situation */ /* 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 */ } /* add a top line to drops and pops in IE browsers - can't read :first-child */ * html div#siteNotice ul li ul { border-left:0px; /* stops the drop inheriting the ul border */ } /* the Tantek hack to feed IE Win 5.5-5.0 a lower value to get the pop-out to touch the drop-down */ * html div#siteNotice ul li ul li ul { left:9.85em; voice-family: "\"}\""; voice-family:inherit; left:10em; } /* 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 */ /* end of hack zone */ /* END OF LIST-BASED MENU */ /* Infobox template style */ .infobox { border: 1px solid #aaa; background-color: #f9f9f9; color: black; margin: 0.5em 0 0.5em 1em; padding: 0.2em; float: right; clear: right; } .infobox td, .infobox th { vertical-align: top; } .infobox caption { font-size: larger; margin-left: inherit; } .infobox.bordered { border-collapse: collapse; } .infobox.bordered td, .infobox.bordered th { border: 1px solid #aaa; } .infobox.bordered .borderless td, .infobox.bordered .borderless th { border: 0; } .infobox.sisterproject { width: 20em; font-size: 90%; } .infobox.standard-talk { border: 1px solid #c0c090; background-color: #f8eaba; } .infobox.standard-talk.bordered td, .infobox.standard-talk.bordered th { border: 1px solid #c0c090; } /* styles for bordered infobox with merged rows */ .infobox.bordered .mergedtoprow td, .infobox.bordered .mergedtoprow th { border: 0; border-top: 1px solid #aaa; border-right: 1px solid #aaa; } .infobox.bordered .mergedrow td, .infobox.bordered .mergedrow th { border: 0; border-right: 1px solid #aaa; } /* Styles for geography infoboxes, e.g. countries, country subdivisions, cities, etc. */ .infobox.geography { text-align: left; border-collapse: collapse; line-height: 1.2em; font-size: 90%; } .infobox.geography td, .infobox.geography th { border-top: solid 1px #aaa; padding: 0.4em 0.6em 0.4em 0.6em; } .infobox.geography .mergedtoprow td, .infobox.geography .mergedtoprow th { border-top: solid 1px #aaa; padding: 0.4em 0.6em 0.2em 0.6em; } .infobox.geography .mergedrow td, .infobox.geography .mergedrow th { border: 0; padding: 0 0.6em 0.2em 0.6em; } .infobox.geography .mergedbottomrow td, .infobox.geography .mergedbottomrow th { border-top: 0; border-bottom: solid 1px #aaa; padding: 0 0.6em 0.4em 0.6em; } .infobox.geography .maptable td, .infobox.geography .maptable th { border: 0; padding: 0; } img { max-width:100%; height:auto; width:auto; }