/* place per web site customizations here */

/* test results should show tests' output left aligned */
.Test-Result-Line-content .center{
  text-align: left;
}

/* highlightjs */
.hljs {
    display: block;
    overflow-x: auto;
    background: #F0F0F0
}
.hljs,
.hljs-subst {
    color: #444
}
.hljs-comment {
    color: #888888
}
.hljs-keyword,
.hljs-attribute,
.hljs-selector-tag,
.hljs-meta-keyword,
.hljs-doctag,
.hljs-name {
    font-weight: bold
}
.hljs-type,
.hljs-string,
.hljs-number,
.hljs-selector-id,
.hljs-selector-class,
.hljs-quote,
.hljs-template-tag,
.hljs-deletion {
    color: #880000
}
.hljs-title,
.hljs-section {
    color: #880000;
    font-weight: bold
}
.hljs-regexp,
.hljs-symbol,
.hljs-variable,
.hljs-template-variable,
.hljs-link,
.hljs-selector-attr,
.hljs-selector-pseudo {
    color: #BC6060
}
.hljs-literal {
    color: #78A960
}
.hljs-built_in,
.hljs-bullet,
.hljs-code,
.hljs-addition {
    color: #397300
}
.hljs-meta {
    color: #1f7199
}
.hljs-meta-string {
    color: #4d99bf
}
.hljs-emphasis {
    font-style: italic
}
.hljs-strong {
    font-weight: bold
}
/* line numbers from experimental branch: https://github.com/isagalaev/highlight.js/compare/line-numbers */
/* line numbers */
pre {
  counter-reset: lines;
}
pre .line {
  counter-increment: lines;
}
pre .line::before {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;

  -o-user-select: none;
  user-select: none;
  
  content: counter(lines);
  text-align: right;
  display: inline-block;
  width: 2em;
  padding-right: 0.5em; 
  margin-right: 0.5em;
  color: #BBB;
  border-right: solid 1px;
}
/* hanging indent */
pre .line {
  padding-left: 1.5em;
  text-indent: -2em;
  display: block;
}
pre {
  white-space: pre-wrap;       /* css-3 */
  white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
  white-space: -pre-wrap;      /* Opera 4-6 */
  white-space: -o-pre-wrap;    /* Opera 7 */
  word-wrap: break-word;       /* Internet Explorer 5.5+ */
}
/* customized colors */
/* coloring from prismjs */
.hljs-comment,
.hljs-doctag,
.hljs-meta,
.hljs-meta-string {
  color: slategray;
}
.hljs-keyword {
  color: #07a;
}
.hljs-attribute,
.hljs-string,
.hljs-selector-tag,
.hljs-selector-id,
.hljs-selector-class,
.hljs-selector-attr,
.hljs-selector-pseudo {
  color: #690;
}
.hljs-number,
.hljs-deletion,
.hljs-symbol,
.hljs-code {
  color: #905;
}
.hljs-regexp,
.hljs-variable,
.hljs-template-variable,
.hljs-strong {
  color: #e90;
}
.hljs-link {
  color: #a67f59;
}
 /* don't exist */
.hljs-name,
.hljs-type,
.hljs-quote,
.hljs-template-tag,
.hljs-title,
.hljs-section,
.hljs-literal,
.hljs-built_in,
.hljs-addition,
.hljs-bullet {
  color: inherit;
  font-weight: normal;
}

/* table-of-content numbering (numbering x.x.x.x) */
/* toc */ 
.custom-table-of-contents + ul {
  padding-left: 0;
}
.custom-table-of-contents + ul,
.custom-table-of-contents + ul ul {
  counter-reset: item;
  list-style: none;
  margin: 0;
}
.custom-table-of-contents + ul > li,
.custom-table-of-contents + ul ul > li {
   counter-increment: item;
}
.custom-table-of-contents + ul > li:before,
.custom-table-of-contents + ul ul > li:before {
  content: counters(item, ".") ". ";
  padding-right: 0.5em;
}
.custom-table-of-contents + ul li ul li:before {
  content: counters(item, ".") " ";
}

.custom-table-of-contents ~ h1 {

}
.custom-table-of-contents ~ h1 ~ ul > li:before, 
.custom-table-of-contents ~ h1 ~ ul ul > li:before,
.custom-table-of-contents ~ h2 ~ ul > li:before, 
.custom-table-of-contents ~ h2 ~ ul ul > li:before,
.custom-table-of-contents ~ h3 ~ ul > li:before, 
.custom-table-of-contents ~ h3 ~ ul ul > li:before,
.custom-table-of-contents ~ h4 ~ ul > li:before, 
.custom-table-of-contents ~ h4 ~ ul ul > li:before {
 counter-increment: initial;
 content: none;
}
/* adjacent headers */
/* header auto-numbering 1.2.3.4. */
body {
  counter-reset: h1;
}
.custom-table-of-contents ~ h1 {
  counter-reset: h2;
}
.custom-table-of-contents ~ h2 {
  counter-reset: h3;
}
.custom-table-of-contents ~ h3 {
  counter-reset: h4;
}
.custom-table-of-contents ~ h4 {
  counter-reset: h5;
}
.custom-table-of-contents ~ h5 {
  counter-reset: h6;
}
.custom-table-of-contents ~ h1:before {
  counter-increment: h1;
  content: counter(h1) ". ";
}
.custom-table-of-contents ~ h2:before {
  counter-increment: h2;
  content: counter(h1) "." counter(h2) ". ";
}
.custom-table-of-contents ~ h3:before {
  counter-increment: h3;
  content: counter(h1) "." counter(h2) "." counter(h3) ". ";
}
.custom-table-of-contents ~ h4:before {
  counter-increment: h4;
  content: counter(h1) "." counter(h2) "." counter(h3) "." counter(h4) ". ";
}
.custom-table-of-contents ~ h5:before {
  counter-increment: h5;
  content: counter(h1) "." counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) ". ";
}
.custom-table-of-contents ~ h6:before {
  counter-increment: h6;
  content: counter(h1) "." counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) "." counter(h6) ". ";
}



