Difference between revisions of "MediaWiki:Common.css"

From English Wiki
Jump to navigation Jump to search
m
m
Line 63: Line 63:
 
.schmal {padding-bottom: .2em; padding-top:.2em;
 
.schmal {padding-bottom: .2em; padding-top:.2em;
 
}
 
}
 +
 +
 +
/* MenuSidebar - /* this has to be overridden for every menu */
 +
#p-Menu, #p-Menu2, #p-Menu3 { overflow: visible; }
 +
#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 {list-style: none; margin: 2; padding: 0;} /* remove bullets and list indents */
 +
 +
/* 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 */

Revision as of 03:58, 16 September 2016

/* CSS placed here will be applied to all skins */
/* In tables, use single pipe between CSS invocation and cell contents, e.g., : | class="nerfhearder" | contents  */

.apatable {
 margin:auto; width:90%;  margin-left: 4px; padding-left: 10px; 
 border-top: solid 1px gray; border-bottom: solid 1px gray; border-left:0; border-right:0; 
 vertical-align:top; 
 background: white; background-color: white;} 

.apacell {
 margin-left: 4px; padding-left: 10px; 
 border-top: solid 1px gray; border-bottom: solid 1px gray; border-left:0; border-right:0; 
 vertical-align:top; 
 padding-right: 10px; 
 background: white; background-color: white;
 text-align: justify; text-justify: auto;
   } 

.superheader {
 margin-left: -8px; padding-left:2mm;
 margin-top: 2px; margin-bottom:5px; 
 border-top: solid 2px black; border-bottom: solid 2px black; border-left:none;border-right:none;
 padding-top:10px; padding-bottom:4px;padding-right:10px; 
 vertical-align:top; 
 background: #e8cfe8;
 font-size: 1.1em; 
 font-style: italic; font-weight: bold; 
  }

.header {
 margin-left: -8px; padding-left:2mm; 
 margin-top: 8px; margin-bottom:4px;
 border-top: solid 2px black; border-bottom: solid 2px black; border-left:none;border-right:none;
 padding-top:4px;padding-bottom:2px; padding-right:10px; 
 vertical-align:top; 
 background: #e6e6fa;
 margin-left: -4px;  
 font-weight: bold ; 
  }

.leftheader {
font-weight: bold;
vertical-align:top;
font-size: 1.0em;
padding-left:2mm;  margin-top: 8px; margin-bottom:4px;
} 

tr, td {vertical-align:top;background-color: white;}

.wikitable {vertical-align:top}

.wikitable tr, td {vertical-align:top}

.noborder {
 border: 0; padding-left: 10px;  padding-right: 10px;
 margin-left: 20px; 
 background: white; 
 vertical-align:top; 
 font-size: 1em; 
}


.schmal {padding-bottom: .2em; padding-top:.2em;
}


/* MenuSidebar - /* this has to be overridden for every menu */
#p-Menu, #p-Menu2, #p-Menu3 { overflow: visible; }
#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 {list-style: none; margin: 2; padding: 0;} /* remove bullets and list indents */

/* 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 */