/**
 * (c) 2013 Rob Wu <rob@robwu.nl>
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

/**
 * Style sheet to support prettified CSS.
 * Syntax highlighting for prism.js.
 * Token coloring based on https://github.com/LukeAskew/prism-github
 * with modifications to minimize use of unnecessary expensive selectors.
 *
 * Additionally, this sheet provides the following:
 * - Line numbers always fit
 * - Light stripes
 * - Highlight on hover
 */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #969896;
}
.token.punctuation,
.token.string,
.token.atrule,
.token.attr-value {
  color: #183691;
}
.token.property,
.token.tag {
  color: #63a35c;
}
.token.boolean,
.token.number {
  color: #0086b3;
}
.token.selector,
.token.attr-name,
.token.keyword,
.token.regex,
.token.important {
  color: #a71d5d;
}
.token.operator,
.token.entity,
.token.url {
  color: #a71d5d;
}

.namespace {
  opacity: 0.7;
}

/*
 * Set the left margin depending on the total number of lines
 * Current set-up = <1ch space before> <linenumber> <dot> <1ch space after>
 */
.linenums     > ol { padding-left: 0; margin: 0; }
.linenumsltE1 > ol { padding-left: 2.2rem; }
.linenumsltE2 > ol { padding-left: 2.7rem; }
.linenumsltE3 > ol { padding-left: 3.2rem; }
.linenumsltE4 > ol { padding-left: 3.7rem; }
.linenumsltE5 > ol { padding-left: 4.2rem; }
.linenumsltE6 > ol { padding-left: 4.7rem; }
.linenumsltE7 > ol { padding-left: 5.2rem; }
.linenumsltE8 > ol { padding-left: 5.7rem; }
.linenumsltE9 > ol { padding-left: 6.2rem; }
/* 999,999,999 lines, want more...? */

.odd-code-line {
    background: #F7F7F7;
}
li:hover {
    background: #EEE;
}
