MediaWiki:Common.css

From Wiki-DIY
Jump to navigation Jump to search

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)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* CSS placed here will be applied to all skins */
/* Wiki-DIY enhancements        */
.mw-content-ltr p {
        padding-bottom: 8px;
}

table.diyTable {
        background-color: #f9f9f9;
        border: 1px solid #aaa;
        border-collapse: collapse;
        color: black;
}

table.diyTable > tr > th,
table.diyTable > tr > td,
table.diyTable > * > tr > th,
table.diyTable > * > tr > td {
        border: 1px solid #aaa;
        padding-left: 5px ;
        padding-right: 5px;
        padding-top: 0.2em;
        padding-bottom: 0.2em;
        vertical-align: top;
}

table.diyTable > tr > th,
table.diyTable > * > tr > th {
        background-color: #666666;
        color: #FFFFFF;
        text-align: center;
}

table.camSpec {
        border: 0px;
}

table.camSpec > tr > th,
table.camSpec > * > tr > th {
        border: 0px;
        background-color: #FFF;
        color: #0F0F0F;
        height: 200px;
}

/*table.camSpec > tr > th:nth-child(2),
table.camSpec > * > tr > th:nth-child(2) {
        -moz-transform: rotate(70deg); -ms-transform: rotate(70deg); -o-transform: rotate(70deg); -webkit-transform: rotate(70deg); transform: rotate(-90deg) translate(18px, 00px);
}
*/
th.rotate {
  /* Something you can count on */
  height: 140px;
  white-space: nowrap;
  text-align: left;
  padding-left: 0px;
}

th.rotate > div {
  transform:
    /* Magic Numbers */
    translate(30px, 160px)
    /* 45 is really 360 - 45 */
    rotate(335deg);
  width: 60px;
}
th.rotate > div > span {
  border-bottom: 1px solid #ccc;
  padding: 5px 10px;
}

table.diyTable > caption {
        font-weight: bold;
}

table.diyTable tr:nth-child(odd) {background: #F0F0F0;}
table.diyTable tr:nth-child(even) {background: #FFF}

table.bearingSpec td:nth-child(1) { width: 400px;}
table.bearingSpec td:nth-child(2) { width: 200px;}
table.bearingSpec td:nth-child(3) { width: 200px;}
table.bearingPNum td:nth-child(n) { padding-left: 10px; padding-right: 10px; text-align: left;}
table.bearingPNum td:nth-child(1) { width: 150px;}
table.bearingPNum td:nth-child(2) { width: 175px;}
table.bearingPNum td:nth-child(3) { padding-left: 10px; padding-right: 10px;  text-align: center;}
table.bearingPNum td:nth-child(5) { padding-left: 10px; padding-right: 10px;  text-align: center;}

table.bearingHist td:nth-child(n) { padding-left: 10px; padding-right: 10px; text-align: left;}
table.bearingHist td:nth-child(1) { width: 150px;}
table.bearingHist td:nth-child(2) { width: 175px;}
table.bearingHist td:nth-child(4) { padding-left: 10px; padding-right: 10px;  text-align: center;}

table.supportData td:nth-child(n) { padding-left: 10px; padding-right: 10px; text-align: center;}
table.supportData td:nth-child(1) { width: 100px; font-weight: bold; text-align: left}
table.supportDataW td:nth-child(n) { padding-left: 10px; padding-right: 10px; text-align: center;}
table.supportDataW td:nth-child(1) { width: 200px; font-weight: bold; text-align: left}
table.mainBearings td:nth-child(7) { width: 5px;}
table.mainBearings td:nth-child(13) { width: 5px;}

table.ecuFault { width: 80%;}
table.ecuFault td:nth-child(1) { white-space: nowrap; }

table.descTable { width: 60%;}
table.descTable td:nth-child(n) { padding-left: 10px; padding-right: 10px; text-align: left;}
table.descTable td:nth-child(1) { width: 150px;}

table.canbusTable> * > tr > th {
        vertical-align: bottom;
}

table.canbusTable td:nth-child(1) { width: 200px; text-align: left;}
table.canbusTable td:nth-child(2) { width: 200px; text-align: left;}
table.canbusTable td:nth-child(3) { width: 60px; text-align: center;}
table.canbusTable td:nth-child(4) { width: 40px; text-align: center;}
table.canbusTable td:nth-child(5) { width: 40px; text-align: center;}
table.canbusTable td:nth-child(6) { width: 40px; text-align: center;}
table.canbusTable td:nth-child(7) { width: 100px; text-align: left;}
table.canbusTable td:nth-child(8) { width: 120px; text-align: center;}
table.canbusTable td:nth-child(9) { width: 80px; text-align: right;}
table.canbusTable td:nth-child(10) { width: 80px; text-align: right;}
table.canbusTable td:nth-child(11) { width: 60px; text-align: right;}
table.canbusTable td:nth-child(12) { width: 60px; text-align: right;}
table.canbusTable td:nth-child(13) { width: 60px; text-align: center;}


table.canRegister td:nth-child(1) { width: 50px; text-align: left;}
table.canRegister td:nth-child(2) { width: 100px; text-align: center;}
table.canRegister td:nth-child(3) { width: 100px; text-align: center;}
table.canRegister td:nth-child(4) { width: 100px; text-align: center;}
table.canRegister td:nth-child(5) { width: 100px; text-align: center;}
table.canRegister td:nth-child(6) { width: 100px; text-align: center;}
table.canRegister td:nth-child(7) { width: 100px; text-align: center;}
table.canRegister td:nth-child(8) { width: 100px; text-align: center;}
table.canRegister td:nth-child(9) { width: 100px; text-align: center;}