Difference between revisions of "MediaWiki:Common.css"

From English Wiki
Jump to navigation Jump to search
m
m
 
(117 intermediate revisions by the same user not shown)
Line 8: Line 8:
  
 
.mw-content-text {
 
.mw-content-text {
   font-size: 1.35em; }
+
   font-size: 1.4em; }
 +
 
 +
/* hide regular http link icon after link
 +
/* #content a[href ^="http://"].external {background: center right no-repeat; padding-right: 18px; }
 +
/* hide all icons after external links
 +
#content a.external { background: none !important; padding: 0 !important; }
 +
 
 +
 
 +
/* --------  E x t e r n a l  l i n k s --------------------- */
 +
 
 +
 
 +
/* Disable printing URL links
 +
.mediawiki .mw-body a.external.text:after,
 +
.mediawiki .mw-body a.external.autonumber:after {}
 +
 
 +
#content a[href^="https://"].external
 +
  {background: center irght no-repeat; padding-right 0px; }
 +
#content a[href^="http://"].external
 +
  {background: center irght no-repeat; padding-right 0px; }
 +
 
  
  
 
/* --------  T A B L E S --------------------- */  
 
/* --------  T A B L E S --------------------- */  
  
 +
table.prettytable {
 +
  margin: 1em 1em 1em 0;
 +
  background: #f9f9f9;
 +
  border: 1px #aaaaaa solid;
 +
  border-collapse: collapse;
 +
}
 +
 +
table.prettytable th, table.prettytable td {
 +
  border: 1px #aaaaaa solid;
 +
  padding: 0.2em;
 +
}
 +
table.wikitable th,
 +
table.prettytable th {
 +
  background: #ccccff;
 +
  text-align: center;
 +
}
 +
 +
table.prettytable caption {
 +
  margin-left: inherit;
 +
  margin-right: inherit;
 +
}
 +
  
# 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 93: Line 136:
  
 
.glossary  {
 
.glossary  {
  width:95%; margin-left: 4px; padding-left: 5px;  
+
  margin:auto; width:95%; margin-left: 4px; padding-left: 4px;  
  border-top: 1px solid gray; border-bottom: 1px solid gray; border-left:0; border-right:0;  
+
  border-top: solid 1px gray; border-bottom: solid 1px gray; border-left:0; border-right:0;  
  vertical-align:top;  
+
  vertical-align:top; align:left;  
  background: white; background-color: white;}  
+
  background: white; background-color: white;
 +
} /* originally for Korean syllabary page */ 
  
.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;  
+
  text-align: justify; text-justify: auto; 
vertical-align:top;  
+
}
  text-align: left; width:100%; }  
+
 +
.glossary tr:nth-child(odd) {
 +
    background:gray;
 +
}
 +
 
 +
 
 +
 
 +
/*--------------  n e w  D I V  c l a s s e s ------------- */
 +
 
 +
/* Define a CSS class for extra-small text size */
 +
.xsmall {
 +
    font-size: 70%; 
 +
}
 +
 
 +
 
 +
.graybox {
 +
  background: #efefef;
 +
  padding: 1em;
 +
  border-radius: 8px;
 +
}
 +
 
 +
 
 +
.col4 {
 +
  column-count:4;-moz-column-count:4;-webkit-column-count:4;}
 +
 
 +
.col3 {
 +
  column-count:3;-moz-column-count:3;-webkit-column-count:3;}
 +
 
 +
.col2 {
 +
  column-count:2;-moz-column-count:2;-webkit-column-count:2;}
 +
 
 +
 
 +
 
 +
/*--- experimental, for syllabary page ---*/
 +
 
 +
.glossa {
 +
  display:table;
 +
  margin:auto; width:95%; margin-left: 4px; padding-left: 4px; 
 +
  background-color:#d2eeee border: 1px solid #1C6EA4;         
 +
  border-spacing: 5px; /*cellspacing:poor IE support for  this*/
 +
  column-count:2;-moz-column-count:2;-webkit-column-count:2;
 +
  }
 +
 
 +
.th {
 +
  display:table-header-group; background-color: #1c6ea4; font-weight:bold; border-radius: 5px; font-size: 2em;
 +
  width: 100%;
 +
  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; }
 +
 
 +
.glossa div {
 +
  display: table-row; padding: 1em; width: auto;  
 +
  empty-cells: show;
 +
  width: 100%;}
 +
 
 +
.c1 {
 +
  display: table-cell; width: 3em; font-weight: bold; font-size: 1.5em;}
 +
.c2 {
 +
  display: table-cell; padding: 1em;}
 +
 
 +
 
 +
 
 +
.glossa div::first-letter {
 +
  font-weight: bold; font-size: 1.5em; width: 3em; padding-right: 2em; margin-right:5px;
 +
}
 +
 +
 
 +
 
 +
 
  
.gloss-entry {
 
width: 8em; text-align:center; vertical-align:top;  }
 
  
 +
/*--------------  O T H E R  F I X E S ------------- */
  
  
Line 167: Line 278:
  
  
<!---------- M e n u  S i d e b a r -------------->
+
/* <!---------- M e n u  S i d e b a r --------------> */
  
  
Line 286: Line 397:
 
     <div id="content" class="clearfix">
 
     <div id="content" class="clearfix">
 
       <?php if ($messages): ?>
 
       <?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;
 +
}

Latest revision as of 12:34, 7 October 2023

/* 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.4em; }

/* hide regular http link icon after link 
/* #content a[href ^="http://"].external {background: center right no-repeat; padding-right: 18px; }
/* hide all icons after external links 
#content a.external { background: none !important; padding: 0 !important; }


/* --------  E x t e r n a l   l i n k s --------------------- */ 


/* Disable printing URL links
.mediawiki .mw-body a.external.text:after, 
.mediawiki .mw-body a.external.autonumber:after {} 

#content a[href^="https://"].external 
  {background: center irght no-repeat; padding-right 0px; }
#content a[href^="http://"].external 
  {background: center irght no-repeat; padding-right 0px; }



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

table.prettytable {
   margin: 1em 1em 1em 0;
   background: #f9f9f9;
   border: 1px #aaaaaa solid;
   border-collapse: collapse;
 }

table.prettytable th, table.prettytable td {
   border: 1px #aaaaaa solid;
   padding: 0.2em;
 }
 table.wikitable th,
 table.prettytable th {
   background: #ccccff;
   text-align: center;
 }

table.prettytable caption {
   margin-left: inherit;
   margin-right: inherit;
 }
 

/* # 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;
 } /* originally for Korean syllabary page */  

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



/*--------------  n e w   D I V  c l a s s e s ------------- */

/* Define a CSS class for extra-small text size */
.xsmall {
    font-size: 70%;  
}


.graybox {
   background: #efefef;
   padding: 1em; 
   border-radius: 8px; 
}


.col4 {
  column-count:4;-moz-column-count:4;-webkit-column-count:4;}

.col3 {
  column-count:3;-moz-column-count:3;-webkit-column-count:3;}

.col2 {
  column-count:2;-moz-column-count:2;-webkit-column-count:2;}



/*--- experimental, for syllabary page ---*/ 

.glossa {
  display:table; 
  margin:auto; width:95%; margin-left: 4px; padding-left: 4px;  
  background-color:#d2eeee border: 1px solid #1C6EA4;           
  border-spacing: 5px; /*cellspacing:poor IE support for  this*/
  column-count:2;-moz-column-count:2;-webkit-column-count:2;
  }

.th {
  display:table-header-group; background-color: #1c6ea4; font-weight:bold; border-radius: 5px; font-size: 2em; 
  width: 100%;
  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; } 

.glossa div {
  display: table-row; padding: 1em; width: auto;  
  empty-cells: show;
  width: 100%;}

.c1 {
  display: table-cell; width: 3em; font-weight: bold; font-size: 1.5em;}
.c2 {
  display: table-cell; padding: 1em;}



.glossa div::first-letter {
  font-weight: bold; font-size: 1.5em; width: 3em; padding-right: 2em; margin-right:5px; 
 } 
 





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