Difference between revisions of "MediaWiki:Common.css"

From English Wiki
Jump to navigation Jump to search
m
m
(30 intermediate revisions by the same user not shown)
Line 14: Line 14:
  
  
# table row counter ?? #  
+
/* # table row counter ?? # */
.tcount li ol {counter-reset: section; list-style-type: none; margin-left: 3em;}
+
.tcount {counter-reset: rowNumber;}
.tcount ol::before {counter-increment: section; content: counter(section);}
+
.tcount th:not(:first-child) {counter-increment: rowNumber;}
 +
.tcount tr {counter-increment: rowNumber;}
 +
.tcount tr td:first-child::before {content: counter(rowNumber) "."; min-width: 1em; margin-right: 0.5em; margin-left: 0.5em;}
  
  
Line 298: Line 300:
 
     background: #fff;  
 
     background: #fff;  
 
     border: 1px solid #aaa;
 
     border: 1px solid #aaa;
     float: right;  align:right;  
+
     float: right;  xalign:right;  
     margin: 0 0 1em 1em;
+
     xmargin: 2em 4em 5em 1em;
 
     padding: 2px;  
 
     padding: 2px;  
     width: 35%;   
+
     width: 17em; xwidth: 35%;   
 
}
 
}
 
.calendarbox-title {
 
.calendarbox-title {
 
     font-size: 1em;
 
     font-size: 1em;
 
     text-align: center; align: center;  
 
     text-align: center; align: center;  
     background: #bac;  
+
     background: #deceee;  
 
     margin-bottom: 0em; padding-left: .5em; padding-top: 0em; padding-bottom: 0em;  
 
     margin-bottom: 0em; padding-left: .5em; padding-top: 0em; padding-bottom: 0em;  
 
}
 
}
Line 320: Line 322:
 
}
 
}
 
.calendarbox-date {
 
.calendarbox-date {
     vertical-align: top; align: center;  
+
     vertical-align: top; align: center;
 
     background: #E8FCFA;  
 
     background: #E8FCFA;  
     padding-left: 1em; padding-top: .1em;  
+
     padding-left: 1em; padding-top: .5em;  
     margin-top: 0em; margin-bottom: -3em;  
+
     margin-top: .1em; margin-bottom: -3em;  
     font-size: .88em;  line-height: 80%;
+
     font-size: .9em;  line-height: 80%;
 +
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 
 +
}
 +
.calendarbox-nodate {
 +
  vertical-align: top; 
 +
  background: #E8FCFA;
 +
  padding-left: 1em; padding-top: .5em;
 +
  margin-top: .1em; margin-bottom: -1em;
 +
  font-size: .9em;  line-height: 80%;
 +
  font-color: gray; color: gray; 
 +
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
 +
}
 +
span.nobreak {
 +
  overflow: hidden;
 +
  text-overflow: ellipsis;
 +
  white-space: nowrap;
 
}
 
}

Revision as of 05:31, 10 August 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 {counter-reset: rowNumber;}
.tcount th:not(:first-child) {counter-increment: rowNumber;}
.tcount tr {counter-increment: rowNumber;}
.tcount tr td:first-child::before {content: counter(rowNumber) "."; min-width: 1em; margin-right: 0.5em; margin-left: 0.5em;}


.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: 4px; 
 border-top: solid 1px gray; border-bottom: solid 1px gray; border-left:0; border-right:0; 
 vertical-align:top; align:left; 
 background: white; background-color: white;} 

.glossary td {
 margin-left: 2px; padding-left: 2px; padding-right: 2px; 
 text-align: justify; text-justify: auto;  
 } 
 
.glossary tr:nth-child(odd) {
    background:gray;
}



/*--------------  O T H E R  F I X E S ------------- */


.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): ?>



/*  <! --------------- C A L E N D A R  B O X   template for course pages ------------->  */


.calendarbox {
    background: #fff; 
    border: 1px solid #aaa;
    float: right;  xalign:right; 
    xmargin: 2em 4em 5em 1em;
    padding: 2px; 
    width: 17em; xwidth: 35%;  
}
.calendarbox-title {
    font-size: 1em;
    text-align: center; align: center; 
    background: #deceee; 
    margin-bottom: 0em; padding-left: .5em; padding-top: 0em; padding-bottom: 0em; 
}
.calendarbox-image {
    text-align: center;
}
.calendarbox-month {
    vertical-align: top; align:c enter; 
    font-size: .85em;  font-weight: bold;    
    background: #F7E8F7; 
    padding-top: 0em; padding-bottom: 0em; padding-left: .5em; 
    margin-bottom: -1em; margin-top: -1em; 
}
.calendarbox-date {
    vertical-align: top; align: center;  
    background: #E8FCFA; 
    padding-left: 1em; padding-top: .5em; 
    margin-top: .1em; margin-bottom: -3em;    
    font-size: .9em;  line-height: 80%; 
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;  
}
.calendarbox-nodate {
   vertical-align: top;  
   background: #E8FCFA; 
   padding-left: 1em; padding-top: .5em; 
   margin-top: .1em; margin-bottom: -1em; 
   font-size: .9em;  line-height: 80%;
   font-color: gray; color: gray;   
   white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
span.nobreak {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}