Difference between revisions of "MediaWiki:Common.css"
From CrowdSociety
Line 88: | Line 88: | ||
/* Sidebar Modifications */ | /* Sidebar Modifications */ | ||
/*-----------------------------------------------------------------------------*/ | /*-----------------------------------------------------------------------------*/ | ||
− | + | /* | |
− | + | * MenuSidebar | |
− | * this has to be overridden for every menu */ | + | */ |
+ | /* this has to be overridden for every menu */ | ||
#p-Menu, | #p-Menu, | ||
#p-Menu2, | #p-Menu2, | ||
Line 104: | Line 105: | ||
padding: 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 { | .menuSidebar ul div { | ||
position: absolute; | position: absolute; | ||
− | top: - | + | top: -6px; |
left: 100%; /* to position them to the right of their containing block */ | left: 100%; /* to position them to the right of their containing block */ | ||
width: 100%; /* width is based on the containing block */ | width: 100%; /* width is based on the containing block */ | ||
Line 117: | Line 134: | ||
.menuSidebar ul ul { | .menuSidebar ul ul { | ||
− | background-color: # | + | 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 */ | ||
} | } | ||
Line 126: | Line 147: | ||
z-index: 102; /* show on top; Needed for IE 7 */ | z-index: 102; /* show on top; Needed for IE 7 */ | ||
} | } | ||
− | |||
− | |||
− | |||
− | + | /* style, color and size links and headings to suit */ | |
− | margin: | + | .menuSidebar a { |
− | padding: | + | 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 */ | ||
Revision as of 13:25, 25 February 2015
/*-----------------------------------------------------------------------------*/ /* To change the BACKGROUND COLOR of the globalWrapper */ /*-----------------------------------------------------------------------------*/ #globalWrapper { Background-color: #F5F5F5; Background-image:none; width: 100%; margin: 0; padding: 0;} div#content, #p-cactions li.selected a { background-color: #F5F5F5; } /*-----------------------------------------------------------------------------*/ /* Table of Content */ /*-----------------------------------------------------------------------------*/ #toc { font: 1 em Times, "Times New Roman", "Palatino", "Georgia", serif; float: right; margin: 0 0 1em 1em; border: solid 1px #aaaaaa; text-color: #282828; color: #F5F5F5; background-color:#F5F5F5; } #toc td { padding: 0.7em; } #toc .tocindent { margin-left: 10em; } #toc .tocline { margin-bottom: 0px; } #toc p { margin: 0; } #toc .editsection { margin-top: 2em;} /*-----------------------------------------------------------------------------*/ /* TOP Menue (second line) edits */ /*-----------------------------------------------------------------------------*/ #p-cactions { padding-right: 0px; margin-right: 0px; background-color: #F5F5F5; width: 100%; top: 19px; } /* this is the bar behind the top menue */ #p-cactions ul { margin: 0; padding: 0; list-style: none; font-size: 85%; margin-left: 10px; } #p-cactions li { float:left; margin:18; padding:18 /*left spacing of top bar */; text-indent:30 /*spacing between words in the top bar */ ; border-width: 0px /*vertical seperation in the top menue*/; } #p-cactions li a { display:block; color:#000000; font-weight: regular; background-color: #F5F5F5; border:none; border-width: 0px; border-left-width:0px; text-decoration:none; white-space:nowrap;} #p-cactions li a:hover { background-color: #F5F5F5; color: #000000; text-decoration: line-through;} #p-cactions li.selected a { background: #F5F5F5; border:none;} #p-cactions li.selected a:hover { color: #000000; text-decoration: line-through; } #p-cactions { left: 0px; } #p-cactions ul { margin-left: 195px; } /*distance from left border of the whole page */ /*-----------------------------------------------------------------------------*/ /* user's personal TOP menue */ /*-----------------------------------------------------------------------------*/ #p-personal .pBody { background: #F5F5F5 no-repeat top right;} #p-personal li a, #p-personal li a.new { color: #5b5b5b; text-decoration: none; } #p-personal li a:hover { color: #000000; background-color: transparent; text-decoration: line-through; } /*-----------------------------------------------------------------------------*/ /* LOGO position */ /*-----------------------------------------------------------------------------*/ #p-logo, #p-logo a, #p-logo a:hover { width:192px; height: 150px; } #p-logo { margin-left: 0px; margin-top: 10px; margin-bottom: 30px; } /*-----------------------------------------------------------------------------*/ /* Sidebar Modifications */ /*-----------------------------------------------------------------------------*/ /* * 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 */ /*-----------------------------------------------------------------------------*/ /* To change the BACKGROUND COLORS of only the text areas of all the pages */ /*-----------------------------------------------------------------------------*/ /*body {background-image:none; color: #F5F5F5} /*.portlet { background-color: #F5F5F5} /*.same-bg { background: none } /*-----------------------------------------------------------------------------*/ /* changes the background of pre areas */ /*-----------------------------------------------------------------------------*/ /*pre { background-color: #F5F5F5} /*-----------------------------------------------------------------------------*/ /* To change the BACKGROUND COLORS of articles */ /*-----------------------------------------------------------------------------*/ /*#article {background-color:#F5F5F5} /*#articleFooter {background-color:#F5F5F5} /*-----------------------------------------------------------------------------*/ /* Tabellenhintergründe transparent machen */ /*-----------------------------------------------------------------------------*/ table.diff { background-color: transparent; } /*-----------------------------------------------------------------------------*/ /* To change the size of the whitespace abouve an article's title (between top menue and the article's title */ /*-----------------------------------------------------------------------------*/ #siteNotice { margin-top: 86px; margin-bottom: 0em;} /*-----------------------------------------------------------------------------*/ /* Erase borders */ /*-----------------------------------------------------------------------------*/ #content { border-width: 0px; } .portlet .pBody { border-width: 0px; } #footer {width: 100%; border-top: 0px; border-bottom-width: 0px; Background-color: #F5F5F5;} /*-----------------------------------------------------------------------------*/ /* CHANGES OF LINKS COLORS */ /*-----------------------------------------------------------------------------*/ a:link { color: #77aaff; text-decoration: none; } a:hover { color: #6ABCFA; text-decoration: line-through; } a:visited { color: #6ABCFA; text-decoration: line-through; } a:active {color: #000000; text-decoration: line-through; } /* selected link */ a.new:link { color: #ff77aa; text-decoration: none; } a.new:hover { color: #FF6E9E; text-decoration: line-through; } a.external { color: #77aaff !important; } /* external link */ a.external:hover { color: #6ABCFA; text-decoration: line-through; } a.external:visited { color: #6ABCFA; text-decoration: line-through; } /*-----------------------------------------------------------------------------*/ /* Headlines and Body - Styling */ /*-----------------------------------------------------------------------------*/ html,body,p,td,a,li { font: 0.87em Times, "Times New Roman", "Palatino", "Georgia", serif; } h1 { font: bold 1.55em Helvetica, Arial, Roboto, "DejaVu Sans", sans-serif; color: #000000; letter-spacing: 0.25em; text-transform: uppercase; border-bottom: none; padding-bottom: 2em; } /*inserst and edit "0px line #000000; line-height: 1.1em" after "border-bottom:" to see a line, and I erased "margin: 3em 0 0.25em 0;" after "uppercase" */ h2 { font: 1.13em Helvetica, Arial, Roboto, "DejaVu Sans",sans-serif; color: #000000; letter-spacing: 0.13em; text-transform: uppercase; text-decoration: underline; margin: 2em 0 0 0; border-bottom: none; padding-bottom: 2em; } /* inserst and edit "0px line #000000; line-height: 1.1em" after "border-bottom:" to see a line */ h3 { font: 1em Helvetica, Arial, Roboto, "DejaVu Sans",sans-serif; color: #000000; letter-spacing: 0.06em; text-transform: uppercase; padding-top: 0.7em; padding-bottom: 0.2em;} h4 { font: 0.92em Helvetica, Arial, Roboto, "DejaVu Sans",sans-serif; color: #000000; letter-spacing: 0.06em; text-transform: uppercase; padding-top: 0.5em; padding-bottom: 0.2em;} h5 { font: 0.91em Helvetica, Arial, Roboto, "DejaVu Sans",sans-serif; color: #000000; letter-spacing: 0.06em; text-transform: uppercase; padding-top: 0.3em; padding-bottom: 0.1em;} h6 { font: 0.91em Helvetica, Arial, Roboto, "DejaVu Sans",sans-serif; color: #000000; letter-spacing: 0.06em; text-transform: uppercase; padding-top: 0.1em; padding-bottom: 0.05em;} /*-----------------------------------------------------------------------------*/ /* FOOTER */ /*-----------------------------------------------------------------------------*/ #f-poweredbyico { display: none; } /* Erases the mediawiki logo */ #f-copyrightico { display: none; } /*-----------------------------------------------------------------------------*/ /* Additional things */ /*-----------------------------------------------------------------------------*/ #footer { color: #b7b7b7; font-size: 85% } /* reduce footer */ #bodyContent a[href ^="http://"] { background:inherit !important; padding-right:inherit !important} /* Remove the annoying arrow that occurs after external links */ li#pt-userpage { background: none; } /* no login logo at the user-login button */ /*-----------------------------------------------------------------------------*/ /*Change the color of the user message notice box */ /*-----------------------------------------------------------------------------*/ .usermessage { background-color: none; border-color: #000000; color: black; margin: 2em 0em 1em 0em; padding: 0.5em 1em; vertical-align: middle; text-align: center; } /*-----------------------------------------------------------------------------*/ /*Change the color of the user message notice box */ /*-----------------------------------------------------------------------------*/