From WikiChip
MediaWiki:Common.css
Revision as of 23:01, 4 January 2017 by David (talk | contribs)

Note: After saving, 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: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/* hide the heading from the main page */
body.page-WikiChip.action-view h1.firstHeading,
body.page-WikiChip.action-submit h1.firstHeading {
    display: none;
}

/* CSS placed here will be applied to all skins */
div.portal {
    padding-bottom: .5em !important;
}


/* hide the title from table of contents */
.notoctitle #toctitle {
    display: none;
}
/* TOC horizontally */
.htoc li {
  display: inline;
}

/* When <div class="nonumtoc"> is used on the table of contents,
   the ToC will display without numbers */
.nonumtoc .tocnumber {
    display: none;
}
.nonumtoc #toc ul,
.nonumtoc .toc ul {
    line-height: 1.5em;
    list-style: none none;
    margin: .3em 0 0;
    padding: 0;
}
.hlist.nonumtoc #toc ul ul,
.hlist.nonumtoc .toc ul ul {
    /* @noflip */
    margin: 0;
}
/* Allow limiting of which header levels are shown in a TOC;
   <div class="toclimit-3">, for instance, will limit to
   showing ==headings== and ===headings=== but no further
   (as long as there are no =headings= on the page, which
   there shouldn't be according to the MoS). */
.toclimit-2 .toclevel-1 ul,
.toclimit-3 .toclevel-2 ul,
.toclimit-4 .toclevel-3 ul,
.toclimit-5 .toclevel-4 ul,
.toclimit-6 .toclevel-5 ul,
.toclimit-7 .toclevel-6 ul {
    display: none;
}


/* The following CSS adds left/right/center alignment to entire table columns.
 *
 * Just add the name to the table class list
 *
 */

.tr1 td:nth-child(1), .tr1 th:nth-child(1),
.tr2 td:nth-child(2), .tr2 th:nth-child(2),
.tr3 td:nth-child(3), .tr3 th:nth-child(3),
.tr4 td:nth-child(4), .tr4 th:nth-child(4),
.tr5 td:nth-child(5), .tr5 th:nth-child(5),
.tr6 td:nth-child(6), .tr6 th:nth-child(6),
.tr7 td:nth-child(7), .tr7 th:nth-child(7),
.tr8 td:nth-child(8), .tr8 th:nth-child(8),
.tr9 td:nth-child(9), .tr9 th:nth-child(9),
.tr10 td:nth-child(10), .tr10 th:nth-child(10),
.tr11 td:nth-child(11), .tr11 th:nth-child(11),
.tr12 td:nth-child(12), .tr12 th:nth-child(12),
.tr13 td:nth-child(13), .tr13 th:nth-child(13),
.tr14 td:nth-child(14), .tr14 th:nth-child(14),
.tr15 td:nth-child(15), .tr15 th:nth-child(15),
.tr16 td:nth-child(16), .tr16 th:nth-child(16),
.tr17 td:nth-child(17), .tr17 th:nth-child(17),
.tr18 td:nth-child(18), .tr18 th:nth-child(18),
.tr19 td:nth-child(19), .tr19 th:nth-child(19),
.tr20 td:nth-child(20), .tr20 th:nth-child(20) { text-align:right; }

.tc1 td:nth-child(1), .tc1 th:nth-child(1),
.tc2 td:nth-child(2), .tc2 th:nth-child(2),
.tc3 td:nth-child(3), .tc3 th:nth-child(3),
.tc4 td:nth-child(4), .tc4 th:nth-child(4),
.tc5 td:nth-child(5), .tc5 th:nth-child(5),
.tc6 td:nth-child(6), .tc6 th:nth-child(6),
.tc7 td:nth-child(7), .tc7 th:nth-child(7),
.tc8 td:nth-child(8), .tc8 th:nth-child(8),
.tc9 td:nth-child(9), .tc9 th:nth-child(9),
.tc10 td:nth-child(10), .tc10 th:nth-child(10),
.tc11 td:nth-child(11), .tc11 th:nth-child(11),
.tc12 td:nth-child(12), .tc12 th:nth-child(12),
.tc13 td:nth-child(13), .tc13 th:nth-child(13),
.tc14 td:nth-child(14), .tc14 th:nth-child(14),
.tc15 td:nth-child(15), .tc15 th:nth-child(15),
.tc16 td:nth-child(16), .tc16 th:nth-child(16),
.tc17 td:nth-child(17), .tc17 th:nth-child(17),
.tc18 td:nth-child(18), .tc18 th:nth-child(18),
.tc19 td:nth-child(19), .tc19 th:nth-child(19),
.tc20 td:nth-child(20), .tc20 th:nth-child(20) { text-align:center; }

.tl1 td:nth-child(1), .tl1 th:nth-child(1),
.tl2 td:nth-child(2), .tl2 th:nth-child(2),
.tl3 td:nth-child(3), .tl3 th:nth-child(3),
.tl4 td:nth-child(4), .tl4 th:nth-child(4),
.tl5 td:nth-child(5), .tl5 th:nth-child(5),
.tl6 td:nth-child(6), .tl6 th:nth-child(6),
.tl7 td:nth-child(7), .tl7 th:nth-child(7),
.tl8 td:nth-child(8), .tl8 th:nth-child(8),
.tl9 td:nth-child(9), .tl9 th:nth-child(9),
.tl10 td:nth-child(10), .tl10 th:nth-child(10),
.tl11 td:nth-child(11), .tl11 th:nth-child(11),
.tl12 td:nth-child(12), .tl12 th:nth-child(12),
.tl13 td:nth-child(13), .tl13 th:nth-child(13),
.tl14 td:nth-child(14), .tl14 th:nth-child(14),
.tl15 td:nth-child(15), .tl15 th:nth-child(15),
.tl16 td:nth-child(16), .tl16 th:nth-child(16),
.tl17 td:nth-child(17), .tl17 th:nth-child(17),
.tl18 td:nth-child(18), .tl18 th:nth-child(18),
.tl19 td:nth-child(19), .tl19 th:nth-child(19),
.tl20 td:nth-child(20), .tl20 th:nth-child(20) { text-align:left; }

.graph_paper_bg_1 {
  background-image: url('/w/resources/assets/graph_paper_bg_1.svg');
  background-size: 100% auto;
}

.graph_paper_bg_2 {
  background-image: url('/w/resources/assets/graph_paper_bg_2.svg');
  background-size: 100% auto;
}

/*
 * Infobox related styles
 */
.chip-infobox {
  background-color: #FFF;
  border: 1px solid #709fea;
  width: 350px;
  float: right;
  margin: 0 10px 10px 10px;
  font-size: 12px;
  border-collapse: collapse;
}
.chip-infobox-header {
  text-align: center;
  background-color: #e6e6e6;
  font-size: 16px;
  font-weight: bold;
}
.chip-infobox-pic {
  text-align: center;
}
.chip-infobox-pic-caption {
  text-align: center;
}
.chip-infobox-sep {
  text-align: center;
  background-color: #F0F0F0;
  font-weight: bold;
  font-size: 1.2em;
  border-top: 1px #cccccc solid;
}
.chip-infobox th {
  width: 100px;
  text-align: right;
  padding-right: 10px;
}

/****************************************************************/
/****************************************************************/

/* comp table */
.comptable_wrap {
  overflow-x:scroll;  
  margin-left: 100px; 
  overflow-y:visible;
  padding-bottom:1px;
}
.comptable  {
  background-color: #f9f9f9;
  border-collapse:separate;
}
.comptable th {
  background-color: #f2f2f2;
  text-align: center;
}
.comptable_side_header {
  position:absolute; 
  width: 100px; 
  left:0;
  top:auto;
  border-right: 0 none black; 
  border-top-width:3px;
  margin-top:-3px;
}