MediaWiki:Common.css

From Semantic Web Standards

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* CSS placed here will be applied to all skins */

h1.firstHeading { text-align: left }

/* Some browsers seem to have problems with clearing floats automatically */
.cleared { clear:both }

 /* from http://en.wikipedia.org/wiki/MediaWiki:Common.css */
 
 /* wikitable/prettytable class for skinning normal tables */
 table.wikitable,
 table.prettytable {
     margin: 1em 1em 1em 0;
     background: #f9f9f9;
     border: 1px #aaa solid;
     border-collapse: collapse;
 }
 .wikitable th, .wikitable td,
 .prettytable th, .prettytable td {
     border: 1px #aaa solid;
     padding: 0.2em;
 }
 .wikitable th,
 .prettytable th {
     background: #f2f2f2;
     text-align: center;
 }
 .wikitable caption,
 .prettytable caption {
     font-weight: bold;
 }


.zebra {
  border-collapse: collapse; 
  color:black; 
  background-color:#ffffff;
  border: 1px solid #777777;
  border-radius: 3px;
}

.zebra th {
  background-color:#9BAFF1;
  border: 1px solid #777777;
  color: #ffffff;
}

.zebra td {
  border: 1px solid #777777;
  padding: 0 0.5em 0 0.5em
}

.zebra tr:nth-child(2n+1) {
  background-color:#E8EDFF;
}

.zebra tr:hover {
  background-color:#eeeeee;
}

/* Some stuff from Sandro, used by OWL wiki pages */

table.open-data-table {
    font-size:0.9em; 
    color:black;
    border-style: none; 
    border-collapse:collapse;
 }
 
 /*
 table.open-data-table th:hover a {
    text-decoration: underline;		      
    color: blue;
 }
 */
 
 table.open-data-table th {
    background-color:#E8E8E8;
    font-weight:normal;
 }
 
 table.open-data-table th a {
    text-decoration: none;		      
    color: black;
 }
 
 #bodyContent table.open-data-table th a.external {
    text-decoration: none;		      
    color: black;
 }
 
 table.open-data-table th:hover {
    background-color:#F0F0F0;
    text-decoration: none;		      
    color: blue;
 }
 
 table.open-data-table th {
    border:1px solid #AAAAAA;
    padding-left:0.3em;
    padding-right:0.3em;
    text-align:center;
 }

 table.open-data-table td {
    border:1px solid #AAAAAA;
    padding-left:0.3em;
    padding-right:0.3em;
    text-align:left;
 }
 
 /*
    Make a few changes for add-on class "form-table"
 */
 
 table.form-table {
    border-collapse: separate;
    border-spacing: 0.2em;
 }
 
 table.form-table th {
    border: none;
    /* text-align: right;  */
 }
 
 table.form-table td {
    text-align: left;
 }

 /*
     Optionally add class "top-table" to vertically align table cell content to the top
  */

  table.top-table td {
    vertical-align: top;
  }