Difference between revisions of "MediaWiki:Common.css"

From English Wiki
Jump to: navigation, search
m
m
Line 93: Line 93:
  
 
.glossary  {
 
.glossary  {
  width:95%; margin-left: 4px; padding-left: 5px;  
+
  margin:auto; width:95%; margin-left: 4px; padding-left: 5px;  
 
  border-top: 1px solid gray; border-bottom:  1px solid gray; border-left:0; border-right:0;  
 
  border-top: 1px solid gray; border-bottom:  1px solid gray; border-left:0; border-right:0;  
 
  vertical-align:top;  
 
  vertical-align:top;  
 
  background: white; background-color: white;}  
 
  background: white; background-color: white;}  
  
.glossary td {
+
.glossary td {
 
  margin-left: 2px; padding-left: 2px; padding-right: 2px;  
 
  margin-left: 2px; padding-left: 2px; padding-right: 2px;  
 
  border-top: 2px groove white; border-bottom: 2px groove white; border-left:0; border-right:0;  
 
  border-top: 2px groove white; border-bottom: 2px groove white; border-left:0; border-right:0;  

Revision as of 18:24, 9 July 2019

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

/* .mw-content-text {font-size: 0.88em;} */ 

/* hide edit links */ 
.mw-editsection { display:none!important; }

.mw-content-text {
  font-size: 1.35em; }


/* --------  T A B L E S --------------------- */ 


# table row counter ?? # 
.tcount li ol {counter-reset: section; list-style-type: none; margin-left: 3em;}
.tcount ol::before {counter-increment: section; content: counter(section);}


.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;
   } 

div.aparef, .aparef {
 margin-left: 2.5em ;
 text-indent: -2.5em ; 
 font-family: Georgia, "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

.hilite {
 background: #f9fbfb; background-color: #f9fbfb;
 padding-left: .4em; padding-right: .4em; 
 padding-top: .2em; padding-bottom: .2em; 
 margin-top: 0em; 
 font-family: Georgia, "Palatino Linotype", "Book Antiqua", Palatino, serif;
} 

.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; 
}


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

.glossary td {
 margin-left: 2px; padding-left: 2px; padding-right: 2px; 
 border-top: 2px groove white; border-bottom: 2px groove white; border-left:0; border-right:0; 
 vertical-align:top; 
 text-align: left; width:100%; } 

.gloss-entry {
 width: 8em; text-align:center; vertical-align:top;  }



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


/* Remove annoying underlining from hyperlinks */

a:link, a:visited, a:hover, a:active {
    text-decoration: none;
}


/* unnumbered list */
.none ul, .none ol {list-style-type:none;}

/* regular ordered list - fixes problem with numerals not appearing */
/* ol {list-style-type: decimal;}  */ 



/* hanging indent; start at 22px */ 
.hindent {
padding-left: 22px ;
  text-indent: -22px ;
}

/* table hanging indent for bibliographies; for use with Template:Biblio */
.biblio ul, .biblio ol { 
 line-height: 150%;
 list-style: none none;
 margin: 0;
}

/* margin-left: 40px ;*/ 
.biblio ol li, .biblio ul li {
 padding-left: 20px;  
 margin-left: 20px;
 text-indent: -30px ; 
 margin-bottom: 0;
 list-style-type: none;
}



/* Create red X and blue ✔️ for unordered lists ; does not work  */ 

/* .error ul { list-style-type: none;  }  */
/* .error ul li:before { content: 'X '; color: red; display: inline-block;   width: 1em; margin-left: -0.9em;}  */

/* .richtig ul {list-style-type: none;}  */
/* .richtig ul li:before {content: "\2713";}; color: blue; display: inline-block;   width: 1em; margin-left: -0.9em;}  */



 




<!---------- M e n u  S i d e b a r -------------->


/* 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 &gt; 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 */



   <div id="page">
 
-    <?php if ($sidebar_first): ?>
-      <div id="sidebar-first" class="sidebar">
-        <?php if ($logo): ?>
-          <img id="logo" src="<?php print $logo ?>" alt="<?php print $site_name ?>" />
-        <?php endif; ?>
+    <div id="sidebar-first" class="sidebar">
+      <?php if ($logo): ?>
+        <img id="logo" src="<?php print $logo ?>" alt="<?php print $site_name ?>" />
+      <?php endif; ?>
+      <?php if (!empty($sidebar_first)): ?>
         <?php print $sidebar_first ?>
-      </div>
-    <?php endif; ?>
+      <?php endif; ?>
+    </div>
 
     <div id="content" class="clearfix">
       <?php if ($messages): ?>