From 5cda8c6ae69e502bba2c3f2e346b84ed7c9806f3 Mon Sep 17 00:00:00 2001 From: Pascal Hertleif Date: Tue, 24 Mar 2015 15:44:06 +0100 Subject: [PATCH] Add 'One' Style --- package.json | 2 +- styles/one/Readme.md | 12 + styles/one/assets/css/_flex-box.scss | 262 ++++++++++++++++++ styles/one/assets/css/_helpers.scss | 149 ++++++++++ .../one/assets/css/_highlight-tomorrow.scss | 96 +++++++ styles/one/assets/css/style.scss | 223 +++++++++++++++ styles/one/assets/template.html | 60 ++++ styles/one/compile.coffee | 48 ++++ styles/one/compiled/behavior.js | 7 + styles/one/compiled/libs.js | 2 + styles/one/compiled/style.css | 1 + styles/one/compiled/template.js | 75 +++++ styles/one/copy.coffee | 15 + styles/one/index.coffee | 8 + styles/solarized/compiled/style.css | 2 +- styles/thin/compiled/style.css | 2 +- 16 files changed, 961 insertions(+), 3 deletions(-) create mode 100644 styles/one/Readme.md create mode 100644 styles/one/assets/css/_flex-box.scss create mode 100644 styles/one/assets/css/_helpers.scss create mode 100644 styles/one/assets/css/_highlight-tomorrow.scss create mode 100644 styles/one/assets/css/style.scss create mode 100644 styles/one/assets/template.html create mode 100644 styles/one/compile.coffee create mode 100644 styles/one/compiled/behavior.js create mode 100644 styles/one/compiled/libs.js create mode 100644 styles/one/compiled/style.css create mode 100644 styles/one/compiled/template.js create mode 100644 styles/one/copy.coffee create mode 100644 styles/one/index.coffee diff --git a/package.json b/package.json index 9e2acb8..65e26d0 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "coffeelint": "~1.8.1", "gulp-coffee": "~2.2.0", "gulp-concat": "~2.4.3", - "gulp-sass": "~1.2.4", + "gulp-sass": "~1.3.3", "gulp-uglify": "~1.0.2", "gulp-util": "~3.0.2", "chai": "~1.10.0", diff --git a/styles/one/Readme.md b/styles/one/Readme.md new file mode 100644 index 0000000..63f3387 --- /dev/null +++ b/styles/one/Readme.md @@ -0,0 +1,12 @@ +# One Style + +Code based on _Solarized_ style. + +## Uses + +- Color scheme based on Tomorrow +- Fonts: Adobe's [Source Code Pro](https://github.com/adobe/source-code-pro) and [Source Sans Pro](https://github.com/adobe/source-sans-pro) from Google Fonts + +## Features + +- One column: code and comments are interspersed diff --git a/styles/one/assets/css/_flex-box.scss b/styles/one/assets/css/_flex-box.scss new file mode 100644 index 0000000..a94cf2e --- /dev/null +++ b/styles/one/assets/css/_flex-box.scss @@ -0,0 +1,262 @@ +// CSS3 Flexible Box Model and property defaults +// Unified attributes for 2009, 2011, and 2012 flavours. + +// 2009 - display (box | inline-box) +// 2011 - display (flexbox | inline-flexbox) +// 2012 - display (flex | inline-flex) +@mixin display($value) { +// flex | inline-flex + @if $value == "flex" { + // 2009 + display: -webkit-box; + display: -moz-box; + display: box; + + // 2012 + display: -webkit-flex; + display: -moz-flex; + display: -ms-flexbox; // 2011 (IE 10) + display: flex; + } + + @elseif $value == "inline-flex" { + display: -webkit-inline-box; + display: -moz-inline-box; + display: inline-box; + + display: -webkit-inline-flex; + display: -moz-inline-flex; + display: -ms-inline-flexbox; + display: inline-flex; + } + + @else { + display: $value; + } +} + +// 2009 - box-flex (integer) +// 2011 - flex (decimal | width decimal) +// 2012 - flex (integer integer width) +@mixin flex($value) { + + // Grab flex-grow for older browsers. + $flex-grow: nth($value, 1); + + // 2009 + @include prefixer(box-flex, $flex-grow, webkit moz spec); + + // 2011 (IE 10), 2012 + @include prefixer(flex, $value, webkit moz ms spec); +} + +// 2009 - box-orient ( horizontal | vertical | inline-axis | block-axis) +// - box-direction (normal | reverse) +// 2011 - flex-direction (row | row-reverse | column | column-reverse) +// 2012 - flex-direction (row | row-reverse | column | column-reverse) +@mixin flex-direction($value: row) { + + // Alt values. + $value-2009: $value; + $value-2011: $value; + $direction: "normal"; + + @if $value == row { + $value-2009: horizontal; + } + + @elseif $value == "row-reverse" { + $value-2009: horizontal; + $direction: reverse; + } + + @elseif $value == column { + $value-2009: vertical; + } + + @elseif $value == "column-reverse" { + $value-2009: vertical; + $direction: reverse; + } + + // 2009 + @include prefixer(box-orient, $value-2009, webkit moz spec); + @if $direction == "reverse" { + @include prefixer(box-direction, $direction, webkit moz spec); + } + + // 2012 + @include prefixer(flex-direction, $value, webkit moz spec); + + // 2011 (IE 10) + -ms-flex-direction: $value; +} + +// 2009 - box-lines (single | multiple) +// 2011 - flex-wrap (nowrap | wrap | wrap-reverse) +// 2012 - flex-wrap (nowrap | wrap | wrap-reverse) +@mixin flex-wrap($value: nowrap) { + + // Alt values. + $alt-value: $value; + @if $value == nowrap { + $alt-value: single; + } + + @elseif $value == wrap { + $alt-value: multiple; + } + + @elseif $value == "wrap-reverse" { + $alt-value: multiple; + } + + @include prefixer(box-lines, $alt-value, webkit moz spec); + @include prefixer(flex-wrap, $value, webkit moz ms spec); +} + +// 2009 - TODO: parse values into flex-direction/flex-wrap +// 2011 - TODO: parse values into flex-direction/flex-wrap +// 2012 - flex-flow (flex-direction || flex-wrap) +@mixin flex-flow($value) { + @include prefixer(flex-flow, $value, webkit moz spec); +} + +// 2009 - box-ordinal-group (integer) +// 2011 - flex-order (integer) +// 2012 - order (integer) +@mixin order($int: 0) { + // 2009 + @include prefixer(box-ordinal-group, $int, webkit moz spec); + + // 2012 + @include prefixer(order, $int, webkit moz spec); + + // 2011 (IE 10) + -ms-flex-order: $int; +} + +// 2012 - flex-grow (number) +@mixin flex-grow($number: 0) { + @include prefixer(flex-grow, $number, webkit moz spec); + -ms-flex-positive: $number; +} + +// 2012 - flex-shrink (number) +@mixin flex-shrink($number: 1) { + @include prefixer(flex-shrink, $number, webkit moz spec); + -ms-flex-negative: $number; +} + +// 2012 - flex-basis (number) +@mixin flex-basis($width: auto) { + @include prefixer(flex-basis, $width, webkit moz spec); + -ms-flex-preferred-size: $width; +} + +// 2009 - box-pack (start | end | center | justify) +// 2011 - flex-pack (start | end | center | justify) +// 2012 - justify-content (flex-start | flex-end | center | space-between | space-around) +@mixin justify-content ($value: flex-start) { + + // Alt values. + $alt-value: $value; + @if $value == "flex-start" { + $alt-value: start; + } + + @elseif $value == "flex-end" { + $alt-value: end; + } + + @elseif $value == "space-between" { + $alt-value: justify; + } + + @elseif $value == "space-around" { + $alt-value: center; + } + + // 2009 + @include prefixer(box-pack, $alt-value, webkit moz spec); + + // 2012 + @include prefixer(justify-content, $value, webkit moz ms o spec); + + // 2011 (IE 10) + -ms-flex-pack: $alt-value; +} + +// 2009 - box-align (start | end | center | baseline | stretch) +// 2011 - flex-align (start | end | center | baseline | stretch) +// 2012 - align-items (flex-start | flex-end | center | baseline | stretch) +@mixin align-items($value: stretch) { + + $alt-value: $value; + + @if $value == "flex-start" { + $alt-value: start; + } + + @elseif $value == "flex-end" { + $alt-value: end; + } + + // 2009 + @include prefixer(box-align, $alt-value, webkit moz spec); + + // 2012 + @include prefixer(align-items, $value, webkit moz ms o spec); + + // 2011 (IE 10) + -ms-flex-align: $alt-value; +} + +// 2011 - flex-item-align (auto | start | end | center | baseline | stretch) +// 2012 - align-self (auto | flex-start | flex-end | center | baseline | stretch) +@mixin align-self($value: auto) { + + $value-2011: $value; + @if $value == "flex-start" { + $value-2011: start; + } + + @elseif $value == "flex-end" { + $value-2011: end; + } + + // 2012 + @include prefixer(align-self, $value, webkit moz spec); + + // 2011 (IE 10) + -ms-flex-item-align: $value-2011; +} + +// 2011 - flex-line-pack (start | end | center | justify | distribute | stretch) +// 2012 - align-content (flex-start | flex-end | center | space-between | space-around | stretch) +@mixin align-content($value: stretch) { + + $value-2011: $value; + @if $value == "flex-start" { + $value-2011: start; + } + + @elseif $value == "flex-end" { + $value-2011: end; + } + + @elseif $value == "space-between" { + $value-2011: justify; + } + + @elseif $value == "space-around" { + $value-2011: distribute; + } + + // 2012 + @include prefixer(align-content, $value, webkit moz spec); + + // 2011 (IE 10) + -ms-flex-line-pack: $value-2011; +} + diff --git a/styles/one/assets/css/_helpers.scss b/styles/one/assets/css/_helpers.scss new file mode 100644 index 0000000..f3936df --- /dev/null +++ b/styles/one/assets/css/_helpers.scss @@ -0,0 +1,149 @@ +/**! + * Thanks, bourbon.io! + */ + +@function _linear-positions-parser($pos) { + $type: type-of(nth($pos, 1)); + $spec: null; + $degree: null; + $side: null; + $corner: null; + $length: length($pos); + // Parse Side and corner positions + @if ($length > 1) { + @if nth($pos, 1) == "to" { // Newer syntax + $side: nth($pos, 2); + + @if $length == 2 { // eg. to top + // Swap for backwards compatability + $degree: _position-flipper(nth($pos, 2)); + } + @else if $length == 3 { // eg. to top left + $corner: nth($pos, 3); + } + } + @else if $length == 2 { // Older syntax ("top left") + $side: _position-flipper(nth($pos, 1)); + $corner: _position-flipper(nth($pos, 2)); + } + + @if ("#{$side} #{$corner}" == "left top") or ("#{$side} #{$corner}" == "top left") { + $degree: _position-flipper(#{$side}) _position-flipper(#{$corner}); + } + @else if ("#{$side} #{$corner}" == "right top") or ("#{$side} #{$corner}" == "top right") { + $degree: _position-flipper(#{$side}) _position-flipper(#{$corner}); + } + @else if ("#{$side} #{$corner}" == "right bottom") or ("#{$side} #{$corner}" == "bottom right") { + $degree: _position-flipper(#{$side}) _position-flipper(#{$corner}); + } + @else if ("#{$side} #{$corner}" == "left bottom") or ("#{$side} #{$corner}" == "bottom left") { + $degree: _position-flipper(#{$side}) _position-flipper(#{$corner}); + } + $spec: to $side $corner; + } + @else if $length == 1 { + // Swap for backwards compatability + @if $type == string { + $degree: $pos; + $spec: to _position-flipper($pos); + } + @else { + $degree: -270 - $pos; //rotate the gradient opposite from spec + $spec: $pos; + } + } + $degree: unquote($degree + ","); + $spec: unquote($spec + ","); + @return $degree $spec; +} + +@function _position-flipper($pos) { + @return if($pos == left, right, null) + if($pos == right, left, null) + if($pos == top, bottom, null) + if($pos == bottom, top, null); +} + +@mixin linear-gradient($pos, $G1, $G2: null, + $G3: null, $G4: null, + $G5: null, $G6: null, + $G7: null, $G8: null, + $G9: null, $G10: null, + $fallback: null) { + // Detect what type of value exists in $pos + $pos-type: type-of(nth($pos, 1)); + $pos-spec: null; + $pos-degree: null; + + // If $pos is missing from mixin, reassign vars and add default position + @if ($pos-type == color) or (nth($pos, 1) == "transparent") { + $G10: $G9; $G9: $G8; $G8: $G7; $G7: $G6; $G6: $G5; + $G5: $G4; $G4: $G3; $G3: $G2; $G2: $G1; $G1: $pos; + $pos: null; + } + + @if $pos { + $positions: _linear-positions-parser($pos); + $pos-degree: nth($positions, 1); + $pos-spec: nth($positions, 2); + } + + $full: $G1, $G2, $G3, $G4, $G5, $G6, $G7, $G8, $G9, $G10; + + // Set $G1 as the default fallback color + $fallback-color: nth($G1, 1); + + // If $fallback is a color use that color as the fallback color + @if (type-of($fallback) == color) or ($fallback == "transparent") { + $fallback-color: $fallback; + } + + background-color: $fallback-color; + background-image: -webkit-linear-gradient($pos-degree $full); // Safari 5.1+, Chrome + background-image: unquote("linear-gradient(#{$pos-spec}#{$full})"); +} + +// Variable settings for /addons/prefixer.scss +$prefix-for-webkit: true !default; +$prefix-for-mozilla: true !default; +$prefix-for-microsoft: true !default; +$prefix-for-opera: true !default; +$prefix-for-spec: true !default; // required for keyframe mixin + +@mixin prefixer ($property, $value, $prefixes) { + @each $prefix in $prefixes { + @if $prefix == webkit { + @if $prefix-for-webkit { + -webkit-#{$property}: $value; + } + } + @else if $prefix == moz { + @if $prefix-for-mozilla { + -moz-#{$property}: $value; + } + } + @else if $prefix == ms { + @if $prefix-for-microsoft { + -ms-#{$property}: $value; + } + } + @else if $prefix == o { + @if $prefix-for-opera { + -o-#{$property}: $value; + } + } + @else if $prefix == spec { + @if $prefix-for-spec { + #{$property}: $value; + } + } + @else { + @warn "Unrecognized prefix: #{$prefix}"; + } + } +} + +@mixin box-sizing ($box) { + // content-box | border-box | inherit + @include prefixer(box-sizing, $box, webkit moz spec); +} \ No newline at end of file diff --git a/styles/one/assets/css/_highlight-tomorrow.scss b/styles/one/assets/css/_highlight-tomorrow.scss new file mode 100644 index 0000000..e1b1adf --- /dev/null +++ b/styles/one/assets/css/_highlight-tomorrow.scss @@ -0,0 +1,96 @@ +@mixin highlightjs-tomorrow($wrapper:'.wrapper') { + /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */ + $prefix: "hljs-"; + + .#{$prefix}, + #{$wrapper} { + display: block; + // background: #fff; + color: #4d4d4c; + padding: 0.5em; + } + + /* Tomorrow Comment */ + .#{$prefix}comment, + .#{$prefix}title { + color: #8e908c; + } + + /* Tomorrow Red */ + .#{$prefix}variable, + .#{$prefix}attribute, + .#{$prefix}tag, + .#{$prefix}regexp, + .ruby .#{$prefix}constant, + .xml .#{$prefix}tag .#{$prefix}title, + .xml .#{$prefix}pi, + .xml .#{$prefix}doctype, + .html .#{$prefix}doctype, + .css .#{$prefix}id, + .css .#{$prefix}class, + .css .#{$prefix}pseudo { + color: #c82829; + } + + /* Tomorrow Orange */ + .#{$prefix}number, + .#{$prefix}preprocessor, + .#{$prefix}pragma, + .#{$prefix}built_in, + .#{$prefix}literal, + .#{$prefix}params, + .#{$prefix}constant { + color: #f5871f; + } + + /* Tomorrow Yellow */ + .ruby .#{$prefix}class .#{$prefix}title, + .css .#{$prefix}rules .#{$prefix}attribute { + color: #eab700; + } + + /* Tomorrow Green */ + .#{$prefix}string, + .#{$prefix}value, + .#{$prefix}inheritance, + .#{$prefix}header, + .ruby .#{$prefix}symbol, + .xml .#{$prefix}cdata { + color: #718c00; + } + + /* Tomorrow Aqua */ + .css .#{$prefix}hexcolor { + color: #3e999f; + } + + /* Tomorrow Blue */ + .#{$prefix}function, + .python .#{$prefix}decorator, + .python .#{$prefix}title, + .ruby .#{$prefix}function .#{$prefix}title, + .ruby .#{$prefix}title .#{$prefix}keyword, + .perl .#{$prefix}sub, + .javascript .#{$prefix}title, + .coffeescript .#{$prefix}title { + color: #4271ae; + font-weight: 500; + } + + /* Tomorrow Purple */ + .#{$prefix}keyword, + .javascript .#{$prefix}function { + color: #8959a8; + font-weight: 500; + } + + .coffeescript .javascript, + .javascript .xml, + .tex .#{$prefix}formula, + .xml .javascript, + .xml .vbscript, + .xml .css, + .xml .#{$prefix}cdata { + opacity: 0.5; + } +} \ No newline at end of file diff --git a/styles/one/assets/css/style.scss b/styles/one/assets/css/style.scss new file mode 100644 index 0000000..c1e37b0 --- /dev/null +++ b/styles/one/assets/css/style.scss @@ -0,0 +1,223 @@ +// # Grock Solarized Stylesheet + +@import "helpers"; +@import "highlight-tomorrow"; + +// ## Normalize +header, footer, nav, section, article, aside, summary, details { + display: block; +} + +// ## Fonts +@import url('http://fonts.googleapis.com/css?family=Source+Code+Pro:300,500'); +@import url('http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400italic,500'); + +%font { + font-size: 16px; + font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif; + font-weight: 400; + line-height: 1.4; +} + +%code-font { + font-size: 14px; + font-family: 'Source Code Pro', monospace; + font-weight: 300; + line-height: 1.4 * 16px; +} + +%bold { + font-weight: 500; +} + +%heading { + font-weight: 400; +} + +%italic { + font-weight: 400; +} + +body { + @extend %font; +} + +strong, b { + @extend %bold; +} + +em, i { + @extend %italic; +} + +h1, h2, h3, h4, h5, h6 { + @extend %heading; +} + +h1 { font-size: 2em; } +h2 { font-size: 1.5em; } +h3, h4 { font-size: 1.2em; } + +code, pre { + @extend %code-font; +} + +.sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + border: 0; +} + +.doc-section-header { + @extend %heading; + &, code { + font-size: 1.4 * 16px; + } +} + +// ## Vars +$color-dark: #002b36; +$color-light: #fff; +$color-text: #4d4d4c; +$color-light-bg: #f0f0f0; +$color-accent: #3e999f; +$color-accent2: #f5871f; + +$body-background: $color-light; +$text-background: $color-light-bg; +$text-color: $color-text; +$text-link-color: $color-accent; +$color-selected: $color-accent2; + +$nav-width: 14em; +$left-width: 30em; +$side-padding: 1em; + +// ## Layout + +@mixin scroll-box { + @include box-sizing(border-box); + max-width: 100%; + display: block; + overflow-x: auto; + overflow-y: hidden; +} + +body { + margin: 0; + padding: 0; + overflow: auto; + clear: both; +} + +ul, ol { + margin: 0 0.5em; + padding: 0 0 0 1em; +} + +#meta { + padding: 0.5em; + + .toggle-menu { + @extend %font; + padding: 0.2em 1em; + border: 0; + display: inline-block; + margin-right: 0.5em; + } +} + +#document { + max-width: 40em; + @include box-sizing(border-box); + margin: 1em auto; + padding: 0 1em; +} + +.segment { + clear: both; + @include box-sizing(border-box); + padding: 0 0 1em; + white-space: nowrap; +} + +.comments { + white-space: normal; + word-break: break-word; + color: $color-text; + + :target { + a.anchor { + color: $color-selected; + } + } + + a.anchor { + $ancor-size: 1em; + + opacity: 0.3; + min-width: $ancor-size; + margin-left: -1 * $ancor-size; + display: inline-block; + + &:before { + content: "#"; + display: inline-block; + padding-right: 0.2em; + } + + &:hover { + opacity: 1; + } + } + + img { + max-width: 100%; + } + + pre { + word-break: normal; + @extend %code-font; + @include highlightjs-tomorrow('code'); + background: $color-light-bg; + + code { + @include scroll-box; + } + } +} + +.code { + white-space: pre; + border-left: 3px solid $text-background; + padding-left: 0.2em; + + @extend %code-font; + @include highlightjs-tomorrow(); + background: $color-light; +} + +// ## Color +body, +#file-area { + background: $body-background; + color: $color-text; +} + +a { + color: $text-link-color; +} + +#meta { + word-wrap: break-word; + + .toggle-menu { + background: $text-background; + color: $body-background; + } +} diff --git a/styles/one/assets/template.html b/styles/one/assets/template.html new file mode 100644 index 0000000..e699761 --- /dev/null +++ b/styles/one/assets/template.html @@ -0,0 +1,60 @@ + + + + + <%= data.pageHeadline %> - <%- data.pageTitle %> + + + <% if (data.externals && data.externals.styles) { %> + <% data.externals.styles.forEach(function(content) { %> + + <% }) %> + <% } %> + + + + + <% if (data.repositoryUrl) { %> + + <% } %> + + +
+ +
+ <% data.segments.forEach(function(segment) { %> +
+ <% if (segment.comments != '') { %> +
+
<%= segment.comments %>
+
+ <% } %> + <% if (segment.code != '') { %> +
<%= segment.code %>
+ <% } %> +
+ <% }) %> +
+
+ + + + <% if (data.externals && data.externals.scripts) { %> + <% data.externals.scripts.forEach(function(content) { %> + + <% }) %> + <% } %> + + diff --git a/styles/one/compile.coffee b/styles/one/compile.coffee new file mode 100644 index 0000000..d679b19 --- /dev/null +++ b/styles/one/compile.coffee @@ -0,0 +1,48 @@ +# # Compile Solarized Assets + +path = require 'path' +fs = require 'fs' +vfs = require 'vinyl-fs' +Q = require 'q' +_ = require 'lodash' + +es = require('event-stream') + +coffee = require 'gulp-coffee' +concat = require 'gulp-concat' +uglify = require 'gulp-uglify' +scss = require 'gulp-sass' + +module.exports = (options={}) -> + finalDest = options.dest or path.join(__dirname, 'compiled') + + deferLibs = Q.defer() + deferScripts = Q.when(true) + deferStyles = Q.defer() + deferTemplates = Q.defer() + + # Jade + templateFile = fs.readFileSync path.join(__dirname, 'assets', 'template.html') + render = _.template templateFile, null, variable: 'data' + + fs.writeFile path.join(finalDest, 'template.js'), + "var _ = require('lodash');\nmodule.exports = #{render.source};", + deferTemplates.makeNodeResolver() + + # SCSS + vfs.src("#{__dirname}/assets/css/style.scss") + .pipe(scss + includePaths: ["#{__dirname}/assets/css"] + outputStyle: 'compressed' + sourceComments: 'none' + ) + .pipe(vfs.dest(finalDest)) + .on 'error', deferStyles.reject + .on 'end', deferStyles.resolve + + return Q.allSettled [ + deferLibs.promise + deferScripts.promise + deferStyles.promise, + deferTemplates.promise + ] diff --git a/styles/one/compiled/behavior.js b/styles/one/compiled/behavior.js new file mode 100644 index 0000000..138260f --- /dev/null +++ b/styles/one/compiled/behavior.js @@ -0,0 +1,7 @@ +/* + * # Grock: Style One + * + * @copyright 2015 Pascal Hertleif + * @license MIT + */ +(function(){}).call(this); \ No newline at end of file diff --git a/styles/one/compiled/libs.js b/styles/one/compiled/libs.js new file mode 100644 index 0000000..3b5d7ea --- /dev/null +++ b/styles/one/compiled/libs.js @@ -0,0 +1,2 @@ +/*! Zepto v1.1.2 - zepto event ajax form ie - zeptojs.com/license */ +var Zepto=function(){function G(a){return a==null?String(a):z[A.call(a)]||"object"}function H(a){return G(a)=="function"}function I(a){return a!=null&&a==a.window}function J(a){return a!=null&&a.nodeType==a.DOCUMENT_NODE}function K(a){return G(a)=="object"}function L(a){return K(a)&&!I(a)&&Object.getPrototypeOf(a)==Object.prototype}function M(a){return a instanceof Array}function N(a){return typeof a.length=="number"}function O(a){return g.call(a,function(a){return a!=null})}function P(a){return a.length>0?c.fn.concat.apply([],a):a}function Q(a){return a.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function R(a){return a in j?j[a]:j[a]=new RegExp("(^|\\s)"+a+"(\\s|$)")}function S(a,b){return typeof b=="number"&&!k[Q(a)]?b+"px":b}function T(a){var b,c;return i[a]||(b=h.createElement(a),h.body.appendChild(b),c=getComputedStyle(b,"").getPropertyValue("display"),b.parentNode.removeChild(b),c=="none"&&(c="block"),i[a]=c),i[a]}function U(a){return"children"in a?f.call(a.children):c.map(a.childNodes,function(a){if(a.nodeType==1)return a})}function V(c,d,e){for(b in d)e&&(L(d[b])||M(d[b]))?(L(d[b])&&!L(c[b])&&(c[b]={}),M(d[b])&&!M(c[b])&&(c[b]=[]),V(c[b],d[b],e)):d[b]!==a&&(c[b]=d[b])}function W(a,b){return b==null?c(a):c(a).filter(b)}function X(a,b,c,d){return H(b)?b.call(a,c,d):b}function Y(a,b,c){c==null?a.removeAttribute(b):a.setAttribute(b,c)}function Z(b,c){var d=b.className,e=d&&d.baseVal!==a;if(c===a)return e?d.baseVal:d;e?d.baseVal=c:b.className=c}function $(a){var b;try{return a?a=="true"||(a=="false"?!1:a=="null"?null:!/^0/.test(a)&&!isNaN(b=Number(a))?b:/^[\[\{]/.test(a)?c.parseJSON(a):a):a}catch(d){return a}}function _(a,b){b(a);for(var c in a.childNodes)_(a.childNodes[c],b)}var a,b,c,d,e=[],f=e.slice,g=e.filter,h=window.document,i={},j={},k={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},l=/^\s*<(\w+|!)[^>]*>/,m=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,n=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,o=/^(?:body|html)$/i,p=/([A-Z])/g,q=["val","css","html","text","data","width","height","offset"],r=["after","prepend","before","append"],s=h.createElement("table"),t=h.createElement("tr"),u={tr:h.createElement("tbody"),tbody:s,thead:s,tfoot:s,td:t,th:t,"*":h.createElement("div")},v=/complete|loaded|interactive/,w=/^\.([\w-]+)$/,x=/^#([\w-]*)$/,y=/^[\w-]*$/,z={},A=z.toString,B={},C,D,E=h.createElement("div"),F={tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"};return B.matches=function(a,b){if(!b||!a||a.nodeType!==1)return!1;var c=a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.matchesSelector;if(c)return c.call(a,b);var d,e=a.parentNode,f=!e;return f&&(e=E).appendChild(a),d=~B.qsa(e,b).indexOf(a),f&&E.removeChild(a),d},C=function(a){return a.replace(/-+(.)?/g,function(a,b){return b?b.toUpperCase():""})},D=function(a){return g.call(a,function(b,c){return a.indexOf(b)==c})},B.fragment=function(b,d,e){var g,i,j;return m.test(b)&&(g=c(h.createElement(RegExp.$1))),g||(b.replace&&(b=b.replace(n,"<$1>")),d===a&&(d=l.test(b)&&RegExp.$1),d in u||(d="*"),j=u[d],j.innerHTML=""+b,g=c.each(f.call(j.childNodes),function(){j.removeChild(this)})),L(e)&&(i=c(g),c.each(e,function(a,b){q.indexOf(a)>-1?i[a](b):i.attr(a,b)})),g},B.Z=function(a,b){return a=a||[],a.__proto__=c.fn,a.selector=b||"",a},B.isZ=function(a){return a instanceof B.Z},B.init=function(b,d){var e;if(!b)return B.Z();if(typeof b=="string"){b=b.trim();if(b[0]=="<"&&l.test(b))e=B.fragment(b,RegExp.$1,d),b=null;else{if(d!==a)return c(d).find(b);e=B.qsa(h,b)}}else{if(H(b))return c(h).ready(b);if(B.isZ(b))return b;if(M(b))e=O(b);else if(K(b))e=[b],b=null;else if(l.test(b))e=B.fragment(b.trim(),RegExp.$1,d),b=null;else{if(d!==a)return c(d).find(b);e=B.qsa(h,b)}}return B.Z(e,b)},c=function(a,b){return B.init(a,b)},c.extend=function(a){var b,c=f.call(arguments,1);return typeof a=="boolean"&&(b=a,a=c.shift()),c.forEach(function(c){V(a,c,b)}),a},B.qsa=function(a,b){var c,d=b[0]=="#",e=!d&&b[0]==".",g=d||e?b.slice(1):b,h=y.test(g);return J(a)&&h&&d?(c=a.getElementById(g))?[c]:[]:a.nodeType!==1&&a.nodeType!==9?[]:f.call(h&&!d?e?a.getElementsByClassName(g):a.getElementsByTagName(b):a.querySelectorAll(b))},c.contains=function(a,b){return a!==b&&a.contains(b)},c.type=G,c.isFunction=H,c.isWindow=I,c.isArray=M,c.isPlainObject=L,c.isEmptyObject=function(a){var b;for(b in a)return!1;return!0},c.inArray=function(a,b,c){return e.indexOf.call(b,a,c)},c.camelCase=C,c.trim=function(a){return a==null?"":String.prototype.trim.call(a)},c.uuid=0,c.support={},c.expr={},c.map=function(a,b){var c,d=[],e,f;if(N(a))for(e=0;e=0?b:b+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){this.parentNode!=null&&this.parentNode.removeChild(this)})},each:function(a){return e.every.call(this,function(b,c){return a.call(b,c,b)!==!1}),this},filter:function(a){return H(a)?this.not(this.not(a)):c(g.call(this,function(b){return B.matches(b,a)}))},add:function(a,b){return c(D(this.concat(c(a,b))))},is:function(a){return this.length>0&&B.matches(this[0],a)},not:function(b){var d=[];if(H(b)&&b.call!==a)this.each(function(a){b.call(this,a)||d.push(this)});else{var e=typeof b=="string"?this.filter(b):N(b)&&H(b.item)?f.call(b):c(b);this.forEach(function(a){e.indexOf(a)<0&&d.push(a)})}return c(d)},has:function(a){return this.filter(function(){return K(a)?c.contains(this,a):c(this).find(a).size()})},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){var a=this[0];return a&&!K(a)?a:c(a)},last:function(){var a=this[this.length-1];return a&&!K(a)?a:c(a)},find:function(a){var b,d=this;return typeof a=="object"?b=c(a).filter(function(){var a=this;return e.some.call(d,function(b){return c.contains(b,a)})}):this.length==1?b=c(B.qsa(this[0],a)):b=this.map(function(){return B.qsa(this,a)}),b},closest:function(a,b){var d=this[0],e=!1;typeof a=="object"&&(e=c(a));while(d&&!(e?e.indexOf(d)>=0:B.matches(d,a)))d=d!==b&&!J(d)&&d.parentNode;return c(d)},parents:function(a){var b=[],d=this;while(d.length>0)d=c.map(d,function(a){if((a=a.parentNode)&&!J(a)&&b.indexOf(a)<0)return b.push(a),a});return W(b,a)},parent:function(a){return W(D(this.pluck("parentNode")),a)},children:function(a){return W(this.map(function(){return U(this)}),a)},contents:function(){return this.map(function(){return f.call(this.childNodes)})},siblings:function(a){return W(this.map(function(a,b){return g.call(U(b.parentNode),function(a){return a!==b})}),a)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(a){return c.map(this,function(b){return b[a]})},show:function(){return this.each(function(){this.style.display=="none"&&(this.style.display=""),getComputedStyle(this,"").getPropertyValue("display")=="none"&&(this.style.display=T(this.nodeName))})},replaceWith:function(a){return this.before(a).remove()},wrap:function(a){var b=H(a);if(this[0]&&!b)var d=c(a).get(0),e=d.parentNode||this.length>1;return this.each(function(f){c(this).wrapAll(b?a.call(this,f):e?d.cloneNode(!0):d)})},wrapAll:function(a){if(this[0]){c(this[0]).before(a=c(a));var b;while((b=a.children()).length)a=b.first();c(a).append(this)}return this},wrapInner:function(a){var b=H(a);return this.each(function(d){var e=c(this),f=e.contents(),g=b?a.call(this,d):a;f.length?f.wrapAll(g):e.append(g)})},unwrap:function(){return this.parent().each(function(){c(this).replaceWith(c(this).children())}),this},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css("display","none")},toggle:function(b){return this.each(function(){var d=c(this);(b===a?d.css("display")=="none":b)?d.show():d.hide()})},prev:function(a){return c(this.pluck("previousElementSibling")).filter(a||"*")},next:function(a){return c(this.pluck("nextElementSibling")).filter(a||"*")},html:function(a){return arguments.length===0?this.length>0?this[0].innerHTML:null:this.each(function(b){var d=this.innerHTML;c(this).empty().append(X(this,a,b,d))})},text:function(b){return arguments.length===0?this.length>0?this[0].textContent:null:this.each(function(){this.textContent=b===a?"":""+b})},attr:function(c,d){var e;return typeof c=="string"&&d===a?this.length==0||this[0].nodeType!==1?a:c=="value"&&this[0].nodeName=="INPUT"?this.val():!(e=this[0].getAttribute(c))&&c in this[0]?this[0][c]:e:this.each(function(a){if(this.nodeType!==1)return;if(K(c))for(b in c)Y(this,b,c[b]);else Y(this,c,X(this,d,a,this.getAttribute(c)))})},removeAttr:function(a){return this.each(function(){this.nodeType===1&&Y(this,a)})},prop:function(b,c){return b=F[b]||b,c===a?this[0]&&this[0][b]:this.each(function(a){this[b]=X(this,c,a,this[b])})},data:function(b,c){var d=this.attr("data-"+b.replace(p,"-$1").toLowerCase(),c);return d!==null?$(d):a},val:function(a){return arguments.length===0?this[0]&&(this[0].multiple?c(this[0]).find("option").filter(function(){return this.selected}).pluck("value"):this[0].value):this.each(function(b){this.value=X(this,a,b,this.value)})},offset:function(a){if(a)return this.each(function(b){var d=c(this),e=X(this,a,b,d.offset()),f=d.offsetParent().offset(),g={top:e.top-f.top,left:e.left-f.left};d.css("position")=="static"&&(g.position="relative"),d.css(g)});if(this.length==0)return null;var b=this[0].getBoundingClientRect();return{left:b.left+window.pageXOffset,top:b.top+window.pageYOffset,width:Math.round(b.width),height:Math.round(b.height)}},css:function(a,d){if(arguments.length<2){var e=this[0],f=getComputedStyle(e,"");if(!e)return;if(typeof a=="string")return e.style[C(a)]||f.getPropertyValue(a);if(M(a)){var g={};return c.each(M(a)?a:[a],function(a,b){g[b]=e.style[C(b)]||f.getPropertyValue(b)}),g}}var h="";if(G(a)=="string")!d&&d!==0?this.each(function(){this.style.removeProperty(Q(a))}):h=Q(a)+":"+S(a,d);else for(b in a)!a[b]&&a[b]!==0?this.each(function(){this.style.removeProperty(Q(b))}):h+=Q(b)+":"+S(b,a[b])+";";return this.each(function(){this.style.cssText+=";"+h})},index:function(a){return a?this.indexOf(c(a)[0]):this.parent().children().indexOf(this[0])},hasClass:function(a){return a?e.some.call(this,function(a){return this.test(Z(a))},R(a)):!1},addClass:function(a){return a?this.each(function(b){d=[];var e=Z(this),f=X(this,a,b,e);f.split(/\s+/g).forEach(function(a){c(this).hasClass(a)||d.push(a)},this),d.length&&Z(this,e+(e?" ":"")+d.join(" "))}):this},removeClass:function(b){return this.each(function(c){if(b===a)return Z(this,"");d=Z(this),X(this,b,c,d).split(/\s+/g).forEach(function(a){d=d.replace(R(a)," ")}),Z(this,d.trim())})},toggleClass:function(b,d){return b?this.each(function(e){var f=c(this),g=X(this,b,e,Z(this));g.split(/\s+/g).forEach(function(b){(d===a?!f.hasClass(b):d)?f.addClass(b):f.removeClass(b)})}):this},scrollTop:function(b){if(!this.length)return;var c="scrollTop"in this[0];return b===a?c?this[0].scrollTop:this[0].pageYOffset:this.each(c?function(){this.scrollTop=b}:function(){this.scrollTo(this.scrollX,b)})},scrollLeft:function(b){if(!this.length)return;var c="scrollLeft"in this[0];return b===a?c?this[0].scrollLeft:this[0].pageXOffset:this.each(c?function(){this.scrollLeft=b}:function(){this.scrollTo(b,this.scrollY)})},position:function(){if(!this.length)return;var a=this[0],b=this.offsetParent(),d=this.offset(),e=o.test(b[0].nodeName)?{top:0,left:0}:b.offset();return d.top-=parseFloat(c(a).css("margin-top"))||0,d.left-=parseFloat(c(a).css("margin-left"))||0,e.top+=parseFloat(c(b[0]).css("border-top-width"))||0,e.left+=parseFloat(c(b[0]).css("border-left-width"))||0,{top:d.top-e.top,left:d.left-e.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||h.body;while(a&&!o.test(a.nodeName)&&c(a).css("position")=="static")a=a.offsetParent;return a})}},c.fn.detach=c.fn.remove,["width","height"].forEach(function(b){var d=b.replace(/./,function(a){return a[0].toUpperCase()});c.fn[b]=function(e){var f,g=this[0];return e===a?I(g)?g["inner"+d]:J(g)?g.documentElement["scroll"+d]:(f=this.offset())&&f[b]:this.each(function(a){g=c(this),g.css(b,X(this,e,a,g[b]()))})}}),r.forEach(function(a,b){var d=b%2;c.fn[a]=function(){var a,e=c.map(arguments,function(b){return a=G(b),a=="object"||a=="array"||b==null?b:B.fragment(b)}),f,g=this.length>1;return e.length<1?this:this.each(function(a,h){f=d?h:h.parentNode,h=b==0?h.nextSibling:b==1?h.firstChild:b==2?h:null,e.forEach(function(a){if(g)a=a.cloneNode(!0);else if(!f)return c(a).remove();_(f.insertBefore(a,h),function(a){a.nodeName!=null&&a.nodeName.toUpperCase()==="SCRIPT"&&(!a.type||a.type==="text/javascript")&&!a.src&&window.eval.call(window,a.innerHTML)})})})},c.fn[d?a+"To":"insert"+(b?"Before":"After")]=function(b){return c(b)[a](this),this}}),B.Z.prototype=c.fn,B.uniq=D,B.deserializeValue=$,c.zepto=B,c}();window.Zepto=Zepto,window.$===undefined&&(window.$=Zepto),function(a){function m(a){return a._zid||(a._zid=c++)}function n(a,b,c,d){b=o(b);if(b.ns)var e=p(b.ns);return(h[m(a)]||[]).filter(function(a){return a&&(!b.e||a.e==b.e)&&(!b.ns||e.test(a.ns))&&(!c||m(a.fn)===m(c))&&(!d||a.sel==d)})}function o(a){var b=(""+a).split(".");return{e:b[0],ns:b.slice(1).sort().join(" ")}}function p(a){return new RegExp("(?:^| )"+a.replace(" "," .* ?")+"(?: |$)")}function q(a,b){return a.del&&!j&&a.e in k||!!b}function r(a){return l[a]||j&&k[a]||a}function s(b,c,e,f,g,i,j){var k=m(b),n=h[k]||(h[k]=[]);c.split(/\s/).forEach(function(c){if(c=="ready")return a(document).ready(e);var h=o(c);h.fn=e,h.sel=g,h.e in l&&(e=function(b){var c=b.relatedTarget;if(!c||c!==this&&!a.contains(this,c))return h.fn.apply(this,arguments)}),h.del=i;var k=i||e;h.proxy=function(a){a=y(a);if(a.isImmediatePropagationStopped())return;a.data=f;var c=k.apply(b,a._args==d?[a]:[a].concat(a._args));return c===!1&&(a.preventDefault(),a.stopPropagation()),c},h.i=n.length,n.push(h),"addEventListener"in b&&b.addEventListener(r(h.e),h.proxy,q(h,j))})}function t(a,b,c,d,e){var f=m(a);(b||"").split(/\s/).forEach(function(b){n(a,b,c,d).forEach(function(b){delete h[f][b.i],"removeEventListener"in a&&a.removeEventListener(r(b.e),b.proxy,q(b,e))})})}function y(b,c){if(c||!b.isDefaultPrevented){c||(c=b),a.each(x,function(a,d){var e=c[a];b[a]=function(){return this[d]=u,e&&e.apply(c,arguments)},b[d]=v});if(c.defaultPrevented!==d?c.defaultPrevented:"returnValue"in c?c.returnValue===!1:c.getPreventDefault&&c.getPreventDefault())b.isDefaultPrevented=u}return b}function z(a){var b,c={originalEvent:a};for(b in a)!w.test(b)&&a[b]!==d&&(c[b]=a[b]);return y(c,a)}var b=a.zepto.qsa,c=1,d,e=Array.prototype.slice,f=a.isFunction,g=function(a){return typeof a=="string"},h={},i={},j="onfocusin"in window,k={focus:"focusin",blur:"focusout"},l={mouseenter:"mouseover",mouseleave:"mouseout"};i.click=i.mousedown=i.mouseup=i.mousemove="MouseEvents",a.event={add:s,remove:t},a.proxy=function(b,c){if(f(b)){var d=function(){return b.apply(c,arguments)};return d._zid=m(b),d}if(g(c))return a.proxy(b[c],b);throw new TypeError("expected function")},a.fn.bind=function(a,b,c){return this.on(a,b,c)},a.fn.unbind=function(a,b){return this.off(a,b)},a.fn.one=function(a,b,c,d){return this.on(a,b,c,d,1)};var u=function(){return!0},v=function(){return!1},w=/^([A-Z]|returnValue$|layer[XY]$)/,x={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};a.fn.delegate=function(a,b,c){return this.on(b,a,c)},a.fn.undelegate=function(a,b,c){return this.off(b,a,c)},a.fn.live=function(b,c){return a(document.body).delegate(this.selector,b,c),this},a.fn.die=function(b,c){return a(document.body).undelegate(this.selector,b,c),this},a.fn.on=function(b,c,h,i,j){var k,l,m=this;if(b&&!g(b))return a.each(b,function(a,b){m.on(a,c,h,b,j)}),m;!g(c)&&!f(i)&&i!==!1&&(i=h,h=c,c=d);if(f(h)||h===!1)i=h,h=d;return i===!1&&(i=v),m.each(function(d,f){j&&(k=function(a){return t(f,a.type,i),i.apply(this,arguments)}),c&&(l=function(b){var d,g=a(b.target).closest(c,f).get(0);if(g&&g!==f)return d=a.extend(z(b),{currentTarget:g,liveFired:f}),(k||i).apply(g,[d].concat(e.call(arguments,1)))}),s(f,b,i,h,c,l||k)})},a.fn.off=function(b,c,e){var h=this;return b&&!g(b)?(a.each(b,function(a,b){h.off(a,c,b)}),h):(!g(c)&&!f(e)&&e!==!1&&(e=c,c=d),e===!1&&(e=v),h.each(function(){t(this,b,e,c)}))},a.fn.trigger=function(b,c){return b=g(b)||a.isPlainObject(b)?a.Event(b):y(b),b._args=c,this.each(function(){"dispatchEvent"in this?this.dispatchEvent(b):a(this).triggerHandler(b,c)})},a.fn.triggerHandler=function(b,c){var d,e;return this.each(function(f,h){d=z(g(b)?a.Event(b):b),d._args=c,d.target=h,a.each(n(h,b.type||b),function(a,b){e=b.proxy(d);if(d.isImmediatePropagationStopped())return!1})}),e},"focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach(function(b){a.fn[b]=function(a){return a?this.bind(b,a):this.trigger(b)}}),["focus","blur"].forEach(function(b){a.fn[b]=function(a){return a?this.bind(b,a):this.each(function(){try{this[b]()}catch(a){}}),this}}),a.Event=function(a,b){g(a)||(b=a,a=b.type);var c=document.createEvent(i[a]||"Events"),d=!0;if(b)for(var e in b)e=="bubbles"?d=!!b[e]:c[e]=b[e];return c.initEvent(a,d,!0),y(c)}}(Zepto),function($){function triggerAndReturn(a,b,c){var d=$.Event(b);return $(a).trigger(d,c),!d.isDefaultPrevented()}function triggerGlobal(a,b,c,d){if(a.global)return triggerAndReturn(b||document,c,d)}function ajaxStart(a){a.global&&$.active++===0&&triggerGlobal(a,null,"ajaxStart")}function ajaxStop(a){a.global&&!--$.active&&triggerGlobal(a,null,"ajaxStop")}function ajaxBeforeSend(a,b){var c=b.context;if(b.beforeSend.call(c,a,b)===!1||triggerGlobal(b,c,"ajaxBeforeSend",[a,b])===!1)return!1;triggerGlobal(b,c,"ajaxSend",[a,b])}function ajaxSuccess(a,b,c,d){var e=c.context,f="success";c.success.call(e,a,f,b),d&&d.resolveWith(e,[a,f,b]),triggerGlobal(c,e,"ajaxSuccess",[b,c,a]),ajaxComplete(f,b,c)}function ajaxError(a,b,c,d,e){var f=d.context;d.error.call(f,c,b,a),e&&e.rejectWith(f,[c,b,a]),triggerGlobal(d,f,"ajaxError",[c,d,a||b]),ajaxComplete(b,c,d)}function ajaxComplete(a,b,c){var d=c.context;c.complete.call(d,b,a),triggerGlobal(c,d,"ajaxComplete",[b,c]),ajaxStop(c)}function empty(){}function mimeToDataType(a){return a&&(a=a.split(";",2)[0]),a&&(a==htmlType?"html":a==jsonType?"json":scriptTypeRE.test(a)?"script":xmlTypeRE.test(a)&&"xml")||"text"}function appendQuery(a,b){return b==""?a:(a+"&"+b).replace(/[&?]{1,2}/,"?")}function serializeData(a){a.processData&&a.data&&$.type(a.data)!="string"&&(a.data=$.param(a.data,a.traditional)),a.data&&(!a.type||a.type.toUpperCase()=="GET")&&(a.url=appendQuery(a.url,a.data),a.data=undefined)}function parseArguments(a,b,c,d){var e=!$.isFunction(b);return{url:a,data:e?b:undefined,success:e?$.isFunction(c)?c:undefined:b,dataType:e?d||c:c}}function serialize(a,b,c,d){var e,f=$.isArray(b),g=$.isPlainObject(b);$.each(b,function(b,h){e=$.type(h),d&&(b=c?d:d+"["+(g||e=="object"||e=="array"?b:"")+"]"),!d&&f?a.add(h.name,h.value):e=="array"||!c&&e=="object"?serialize(a,h,c,b):a.add(b,h)})}var jsonpID=0,document=window.document,key,name,rscript=/)<[^<]*)*<\/script>/gi,scriptTypeRE=/^(?:text|application)\/javascript/i,xmlTypeRE=/^(?:text|application)\/xml/i,jsonType="application/json",htmlType="text/html",blankRE=/^\s*$/;$.active=0,$.ajaxJSONP=function(a,b){if("type"in a){var c=a.jsonpCallback,d=($.isFunction(c)?c():c)||"jsonp"+ ++jsonpID,e=document.createElement("script"),f=window[d],g,h=function(a){$(e).triggerHandler("error",a||"abort")},i={abort:h},j;return b&&b.promise(i),$(e).on("load error",function(c,h){clearTimeout(j),$(e).off().remove(),c.type=="error"||!g?ajaxError(null,h||"error",i,a,b):ajaxSuccess(g[0],i,a,b),window[d]=f,g&&$.isFunction(f)&&f(g[0]),f=g=undefined}),ajaxBeforeSend(i,a)===!1?(h("abort"),i):(window[d]=function(){g=arguments},e.src=a.url.replace(/=\?/,"="+d),document.head.appendChild(e),a.timeout>0&&(j=setTimeout(function(){h("timeout")},a.timeout)),i)}return $.ajax(a)},$.ajaxSettings={type:"GET",beforeSend:empty,success:empty,error:empty,complete:empty,context:null,global:!0,xhr:function(){return new window.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript, application/x-javascript",json:jsonType,xml:"application/xml, text/xml",html:htmlType,text:"text/plain"},crossDomain:!1,timeout:0,processData:!0,cache:!0},$.ajax=function(options){var settings=$.extend({},options||{}),deferred=$.Deferred&&$.Deferred();for(key in $.ajaxSettings)settings[key]===undefined&&(settings[key]=$.ajaxSettings[key]);ajaxStart(settings),settings.crossDomain||(settings.crossDomain=/^([\w-]+:)?\/\/([^\/]+)/.test(settings.url)&&RegExp.$2!=window.location.host),settings.url||(settings.url=window.location.toString()),serializeData(settings),settings.cache===!1&&(settings.url=appendQuery(settings.url,"_="+Date.now()));var dataType=settings.dataType,hasPlaceholder=/=\?/.test(settings.url);if(dataType=="jsonp"||hasPlaceholder)return hasPlaceholder||(settings.url=appendQuery(settings.url,settings.jsonp?settings.jsonp+"=?":settings.jsonp===!1?"":"callback=?")),$.ajaxJSONP(settings,deferred);var mime=settings.accepts[dataType],headers={},setHeader=function(a,b){headers[a.toLowerCase()]=[a,b]},protocol=/^([\w-]+:)\/\//.test(settings.url)?RegExp.$1:window.location.protocol,xhr=settings.xhr(),nativeSetHeader=xhr.setRequestHeader,abortTimeout;deferred&&deferred.promise(xhr),settings.crossDomain||setHeader("X-Requested-With","XMLHttpRequest"),setHeader("Accept",mime||"*/*");if(mime=settings.mimeType||mime)mime.indexOf(",")>-1&&(mime=mime.split(",",2)[0]),xhr.overrideMimeType&&xhr.overrideMimeType(mime);(settings.contentType||settings.contentType!==!1&&settings.data&&settings.type.toUpperCase()!="GET")&&setHeader("Content-Type",settings.contentType||"application/x-www-form-urlencoded");if(settings.headers)for(name in settings.headers)setHeader(name,settings.headers[name]);xhr.setRequestHeader=setHeader,xhr.onreadystatechange=function(){if(xhr.readyState==4){xhr.onreadystatechange=empty,clearTimeout(abortTimeout);var result,error=!1;if(xhr.status>=200&&xhr.status<300||xhr.status==304||xhr.status==0&&protocol=="file:"){dataType=dataType||mimeToDataType(settings.mimeType||xhr.getResponseHeader("content-type")),result=xhr.responseText;try{dataType=="script"?(1,eval)(result):dataType=="xml"?result=xhr.responseXML:dataType=="json"&&(result=blankRE.test(result)?null:$.parseJSON(result))}catch(e){error=e}error?ajaxError(error,"parsererror",xhr,settings,deferred):ajaxSuccess(result,xhr,settings,deferred)}else ajaxError(xhr.statusText||null,xhr.status?"error":"abort",xhr,settings,deferred)}};if(ajaxBeforeSend(xhr,settings)===!1)return xhr.abort(),ajaxError(null,"abort",xhr,settings,deferred),xhr;if(settings.xhrFields)for(name in settings.xhrFields)xhr[name]=settings.xhrFields[name];var async="async"in settings?settings.async:!0;xhr.open(settings.type,settings.url,async,settings.username,settings.password);for(name in headers)nativeSetHeader.apply(xhr,headers[name]);return settings.timeout>0&&(abortTimeout=setTimeout(function(){xhr.onreadystatechange=empty,xhr.abort(),ajaxError(null,"timeout",xhr,settings,deferred)},settings.timeout)),xhr.send(settings.data?settings.data:null),xhr},$.get=function(a,b,c,d){return $.ajax(parseArguments.apply(null,arguments))},$.post=function(a,b,c,d){var e=parseArguments.apply(null,arguments);return e.type="POST",$.ajax(e)},$.getJSON=function(a,b,c){var d=parseArguments.apply(null,arguments);return d.dataType="json",$.ajax(d)},$.fn.load=function(a,b,c){if(!this.length)return this;var d=this,e=a.split(/\s/),f,g=parseArguments(a,b,c),h=g.success;return e.length>1&&(g.url=e[0],f=e[1]),g.success=function(a){d.html(f?$("
").html(a.replace(rscript,"")).find(f):a),h&&h.apply(d,arguments)},$.ajax(g),this};var escape=encodeURIComponent;$.param=function(a,b){var c=[];return c.add=function(a,b){this.push(escape(a)+"="+escape(b))},serialize(c,a,b),c.join("&").replace(/%20/g,"+")}}(Zepto),function(a){a.fn.serializeArray=function(){var b=[],c;return a([].slice.call(this.get(0).elements)).each(function(){c=a(this);var d=c.attr("type");this.nodeName.toLowerCase()!="fieldset"&&!this.disabled&&d!="submit"&&d!="reset"&&d!="button"&&(d!="radio"&&d!="checkbox"||this.checked)&&b.push({name:c.attr("name"),value:c.val()})}),b},a.fn.serialize=function(){var a=[];return this.serializeArray().forEach(function(b){a.push(encodeURIComponent(b.name)+"="+encodeURIComponent(b.value))}),a.join("&")},a.fn.submit=function(b){if(b)this.bind("submit",b);else if(this.length){var c=a.Event("submit");this.eq(0).trigger(c),c.isDefaultPrevented()||this.get(0).submit()}return this}}(Zepto),function(a){"__proto__"in{}||a.extend(a.zepto,{Z:function(b,c){return b=b||[],a.extend(b,a.fn),b.selector=c||"",b.__Z=!0,b},isZ:function(b){return a.type(b)==="array"&&"__Z"in b}});try{getComputedStyle(undefined)}catch(b){var c=getComputedStyle;window.getComputedStyle=function(a){try{return c(a)}catch(b){return null}}}}(Zepto); \ No newline at end of file diff --git a/styles/one/compiled/style.css b/styles/one/compiled/style.css new file mode 100644 index 0000000..e26449d --- /dev/null +++ b/styles/one/compiled/style.css @@ -0,0 +1 @@ +@import url('http://fonts.googleapis.com/css?family=Source+Code+Pro:300,500');@import url('http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400italic,500');header,footer,nav,section,article,aside,summary,details{display:block}body,#meta .toggle-menu{font-size:16px;font-family:'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;font-weight:400;line-height:1.4}code,pre,.comments pre,.code{font-size:14px;font-family:'Source Code Pro', monospace;font-weight:300;line-height:22.4px}strong,b{font-weight:500}h1,h2,h3,h4,h5,h6,.doc-section-header{font-weight:400}em,i{font-weight:400}h1{font-size:2em}h2{font-size:1.5em}h3,h4{font-size:1.2em}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.doc-section-header,.doc-section-header code{font-size:22.4px}body{margin:0;padding:0;overflow:auto;clear:both}ul,ol{margin:0 0.5em;padding:0 0 0 1em}#meta{padding:0.5em}#meta .toggle-menu{padding:0.2em 1em;border:0;display:inline-block;margin-right:0.5em}#document{max-width:40em;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin:1em auto;padding:0 1em}.segment{clear:both;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0 0 1em;white-space:nowrap}.comments{white-space:normal;word-break:break-word;color:#4d4d4c}.comments :target a.anchor{color:#f5871f}.comments a.anchor{opacity:0.3;min-width:1em;margin-left:-1em;display:inline-block}.comments a.anchor:before{content:"#";display:inline-block;padding-right:0.2em}.comments a.anchor:hover{opacity:1}.comments img{max-width:100%}.comments pre{word-break:normal;background:#f0f0f0}.comments pre .hljs-,.comments pre code{display:block;color:#4d4d4c;padding:0.5em}.comments pre .hljs-comment,.comments pre .hljs-title{color:#8e908c}.comments pre .hljs-variable,.comments pre .hljs-attribute,.comments pre .hljs-tag,.comments pre .hljs-regexp,.comments pre .ruby .hljs-constant,.comments pre .xml .hljs-tag .hljs-title,.comments pre .xml .hljs-pi,.comments pre .xml .hljs-doctype,.comments pre .html .hljs-doctype,.comments pre .css .hljs-id,.comments pre .css .hljs-class,.comments pre .css .hljs-pseudo{color:#c82829}.comments pre .hljs-number,.comments pre .hljs-preprocessor,.comments pre .hljs-pragma,.comments pre .hljs-built_in,.comments pre .hljs-literal,.comments pre .hljs-params,.comments pre .hljs-constant{color:#f5871f}.comments pre .ruby .hljs-class .hljs-title,.comments pre .css .hljs-rules .hljs-attribute{color:#eab700}.comments pre .hljs-string,.comments pre .hljs-value,.comments pre .hljs-inheritance,.comments pre .hljs-header,.comments pre .ruby .hljs-symbol,.comments pre .xml .hljs-cdata{color:#718c00}.comments pre .css .hljs-hexcolor{color:#3e999f}.comments pre .hljs-function,.comments pre .python .hljs-decorator,.comments pre .python .hljs-title,.comments pre .ruby .hljs-function .hljs-title,.comments pre .ruby .hljs-title .hljs-keyword,.comments pre .perl .hljs-sub,.comments pre .javascript .hljs-title,.comments pre .coffeescript .hljs-title{color:#4271ae;font-weight:500}.comments pre .hljs-keyword,.comments pre .javascript .hljs-function{color:#8959a8;font-weight:500}.comments pre .coffeescript .javascript,.comments pre .javascript .xml,.comments pre .tex .hljs-formula,.comments pre .xml .javascript,.comments pre .xml .vbscript,.comments pre .xml .css,.comments pre .xml .hljs-cdata{opacity:0.5}.comments pre code{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;max-width:100%;display:block;overflow-x:auto;overflow-y:hidden}.code{white-space:pre;border-left:3px solid #f0f0f0;padding-left:0.2em;background:#fff}.code .hljs-,.code .wrapper{display:block;color:#4d4d4c;padding:0.5em}.code .hljs-comment,.code .hljs-title{color:#8e908c}.code .hljs-variable,.code .hljs-attribute,.code .hljs-tag,.code .hljs-regexp,.code .ruby .hljs-constant,.code .xml .hljs-tag .hljs-title,.code .xml .hljs-pi,.code .xml .hljs-doctype,.code .html .hljs-doctype,.code .css .hljs-id,.code .css .hljs-class,.code .css .hljs-pseudo{color:#c82829}.code .hljs-number,.code .hljs-preprocessor,.code .hljs-pragma,.code .hljs-built_in,.code .hljs-literal,.code .hljs-params,.code .hljs-constant{color:#f5871f}.code .ruby .hljs-class .hljs-title,.code .css .hljs-rules .hljs-attribute{color:#eab700}.code .hljs-string,.code .hljs-value,.code .hljs-inheritance,.code .hljs-header,.code .ruby .hljs-symbol,.code .xml .hljs-cdata{color:#718c00}.code .css .hljs-hexcolor{color:#3e999f}.code .hljs-function,.code .python .hljs-decorator,.code .python .hljs-title,.code .ruby .hljs-function .hljs-title,.code .ruby .hljs-title .hljs-keyword,.code .perl .hljs-sub,.code .javascript .hljs-title,.code .coffeescript .hljs-title{color:#4271ae;font-weight:500}.code .hljs-keyword,.code .javascript .hljs-function{color:#8959a8;font-weight:500}.code .coffeescript .javascript,.code .javascript .xml,.code .tex .hljs-formula,.code .xml .javascript,.code .xml .vbscript,.code .xml .css,.code .xml .hljs-cdata{opacity:0.5}body,#file-area{background:#fff;color:#4d4d4c}a{color:#3e999f}#meta{word-wrap:break-word}#meta .toggle-menu{background:#f0f0f0;color:#fff} \ No newline at end of file diff --git a/styles/one/compiled/template.js b/styles/one/compiled/template.js new file mode 100644 index 0000000..49c7c7d --- /dev/null +++ b/styles/one/compiled/template.js @@ -0,0 +1,75 @@ +var _ = require('lodash'); +module.exports = function(data) { +var __t, __p = '', __e = _.escape, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +__p += '\n\n\n \n ' + +((__t = ( data.pageHeadline )) == null ? '' : __t) + +' - ' + +__e( data.pageTitle ) + +'\n\n \n '; + if (data.externals && data.externals.styles) { ; +__p += '\n '; + data.externals.styles.forEach(function(content) { ; +__p += '\n \n '; + }) ; +__p += '\n '; + } ; +__p += '\n\n \n \n \n '; + if (data.repositoryUrl) { ; +__p += '\n \n '; + } ; +__p += '\n\n\n
\n \n
\n '; + data.segments.forEach(function(segment) { ; +__p += '\n
\n '; + if (segment.comments != '') { ; +__p += '\n
\n
' + +((__t = ( segment.comments )) == null ? '' : __t) + +'
\n
\n '; + } ; +__p += '\n '; + if (segment.code != '') { ; +__p += '\n
' +
+((__t = ( segment.code )) == null ? '' : __t) +
+'
\n '; + } ; +__p += '\n
\n '; + }) ; +__p += '\n
\n
\n\n \n\n '; + if (data.externals && data.externals.scripts) { ; +__p += '\n '; + data.externals.scripts.forEach(function(content) { ; +__p += '\n \n '; + }) ; +__p += '\n '; + } ; +__p += '\n\n\n'; +return __p +}; \ No newline at end of file diff --git a/styles/one/copy.coffee b/styles/one/copy.coffee new file mode 100644 index 0000000..cf59c49 --- /dev/null +++ b/styles/one/copy.coffee @@ -0,0 +1,15 @@ +path = require 'path' +vfs = require 'vinyl-fs' +Q = require 'q' + +module.exports = ({dest}) -> + compilePath = "#{__dirname}/compiled" + finalDest = path.join(dest, 'assets') + deferCopy = Q.defer() + + vfs.src("#{compilePath}/*") + .pipe(vfs.dest(finalDest)) + .on 'error', deferCopy.reject + .on 'end', deferCopy.resolve + + return deferCopy.promise diff --git a/styles/one/index.coffee b/styles/one/index.coffee new file mode 100644 index 0000000..75905ef --- /dev/null +++ b/styles/one/index.coffee @@ -0,0 +1,8 @@ +path = require 'path' + +module.exports = + name: "Thin" + getTemplate: -> + require path.join(__dirname, 'compiled', 'template.js') + copy: (opts) -> require('./copy')(opts) + compile: (opts) -> require('./compile')(opts) diff --git a/styles/solarized/compiled/style.css b/styles/solarized/compiled/style.css index 6da4bd2..e31acf3 100644 --- a/styles/solarized/compiled/style.css +++ b/styles/solarized/compiled/style.css @@ -1 +1 @@ -@import url(http://fonts.googleapis.com/css?family=PT+Mono);@import url(http://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic,700italic);header,footer,nav,section,article,aside,summary,details{display:block}body,#meta .toggle-menu{font-size:16px;font-family:'PT Sans','Helvetica Neue',Arial,sans-serif;line-height:1.4}code,pre,.comments pre,.code{font-family:'PT Sans Mono',monospace;font-size:14px;line-height:22.4px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.doc-section-header{font-weight:bold}body{margin:0;padding:0;overflow:auto;clear:both}ul,ol{margin:0 0.5em;padding:0 0 0 1em}body{display:-webkit-box;display:-moz-box;display:box;display:-webkit-flex;display:-moz-flex;display:-ms-flexbox;display:flex}body #file-area{display:-webkit-box;display:-moz-box;display:box;display:-webkit-flex;display:-moz-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-moz-box-flex:1;box-flex:1;-webkit-flex:1;-moz-flex:1;-ms-flex:1;flex:1;-webkit-box-orient:vertical;-moz-box-orient:vertical;box-orient:vertical;-webkit-flex-direction:column;-moz-flex-direction:column;flex-direction:column;-ms-flex-direction:column}body #file-area #document{-webkit-flex-grow:1;-moz-flex-grow:1;flex-grow:1;-ms-flex-positive:1}#side-menu nav{width:14em;overflow-x:auto;background:#00232c}#side-menu nav+nav{margin-top:1em}#side-menu nav ul,#side-menu nav ol{list-style:none;padding:0;margin:0}#side-menu nav .tree{padding-bottom:0.5em}#side-menu nav li{line-height:1.2;padding:0 0.5em}#side-menu nav .folder{color:#596600}#side-menu nav a{display:block;padding:0.3em 0;text-decoration:none}#side-menu nav a:hover{text-decoration:underline}#side-menu nav .tools{padding-top:0.5em;margin-bottom:1em}#side-menu nav .search input{width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block}#side-menu nav summary{text-align:center;padding:0.5em 0}#side-menu nav summary:hover{cursor:pointer}#side-menu nav a.selected{color:#2aa198}#side-menu nav ol.searching a,#side-menu nav ol.searching span{display:none}#side-menu nav ol.searching a.matched,#side-menu nav ol.searching span.matched{display:block}#meta{padding:0.5em}#meta .toggle-menu{padding:0.2em 1em;border:0;display:inline-block;margin-right:0.5em}.segment{clear:both;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0.5em 0 0.5em 30em;white-space:nowrap}.comments,.code{display:inline-block;vertical-align:top}.comments{padding:0 1em;width:28em;margin-left:-30em;white-space:normal;word-break:break-word}.comments :target a.anchor{color:#2aa198}.comments a.anchor{opacity:0.2}.comments a.anchor:before{content:"#";display:inline-block;padding-right:0.2em}.comments a.anchor:hover{opacity:1}.comments img{max-width:100%}.comments pre{word-break:normal;background-color:#fdf6e3;color:#586e75}.comments pre .hljs-,.comments pre code{display:block;padding:0.5em;background:#fdf6e3;color:#657b83}.comments pre .hljs-params{color:#657b83}.comments pre .hljs-comment,.comments pre .hljs-template_comment,.comments pre .diff .hljs-header,.comments pre .hljs-doctype,.comments pre .hljs-pi,.comments pre .lisp .hljs-string,.comments pre .hljs-javadoc{color:#93a1a1}.comments pre .hljs-keyword,.comments pre .hljs-function,.comments pre .hljs-winutils,.comments pre .method,.comments pre .hljs-addition,.comments pre .css .hljs-tag,.comments pre .hljs-request,.comments pre .hljs-status,.comments pre .nginx .hljs-title{color:#859900}.comments pre .hljs-number,.comments pre .hljs-command,.comments pre .hljs-string,.comments pre .hljs-tag .hljs-value,.comments pre .hljs-rules .hljs-value,.comments pre .hljs-phpdoc,.comments pre .tex .hljs-formula,.comments pre .hljs-regexp,.comments pre .hljs-hexcolor,.comments pre .hljs-link_url{color:#2aa198}.comments pre .hljs-title,.comments pre .hljs-property,.comments pre .hljs-localvars,.comments pre .hljs-chunk,.comments pre .hljs-decorator,.comments pre .hljs-built_in,.comments pre .hljs-identifier,.comments pre .vhdl .hljs-literal,.comments pre .hljs-id,.comments pre .css .hljs-function{color:#268bd2}.comments pre .hljs-attribute,.comments pre .hljs-variable,.comments pre .lisp .hljs-body,.comments pre .smalltalk .hljs-number,.comments pre .hljs-constant,.comments pre .hljs-class .hljs-title,.comments pre .hljs-parent,.comments pre .haskell .hljs-type,.comments pre .hljs-link_reference{color:#b58900}.comments pre .hljs-preprocessor,.comments pre .hljs-preprocessor .hljs-keyword,.comments pre .hljs-pragma,.comments pre .hljs-shebang,.comments pre .hljs-symbol,.comments pre .hljs-symbol .hljs-string,.comments pre .diff .hljs-change,.comments pre .hljs-special,.comments pre .hljs-attr_selector,.comments pre .hljs-subst,.comments pre .hljs-cdata,.comments pre .clojure .hljs-title,.comments pre .css .hljs-pseudo,.comments pre .hljs-header{color:#cb4b16}.comments pre .hljs-deletion,.comments pre .hljs-important{color:#dc322f}.comments pre .hljs-link_label{color:#6c71c4}.comments pre .tex .hljs-formula{background:#eee8d5}.comments pre .c{color:#93a1a1}.comments pre .err{color:#586e75}.comments pre .g{color:#586e75}.comments pre .k{color:#859900}.comments pre .l{color:#586e75}.comments pre .n{color:#586e75}.comments pre .o{color:#859900}.comments pre .x{color:#cb4b16}.comments pre .p{color:#586e75}.comments pre .cm{color:#93a1a1}.comments pre .cp{color:#859900}.comments pre .c1{color:#93a1a1}.comments pre .cs{color:#859900}.comments pre .gd{color:#2aa198}.comments pre .ge{color:#586e75;font-style:italic}.comments pre .gr{color:#dc322f}.comments pre .gh{color:#cb4b16}.comments pre .gi{color:#859900}.comments pre .go{color:#586e75}.comments pre .gp{color:#586e75}.comments pre .gs{color:#586e75;font-weight:bold}.comments pre .gu{color:#cb4b16}.comments pre .gt{color:#586e75}.comments pre .kc{color:#cb4b16}.comments pre .kd{color:#268bd2}.comments pre .kn{color:#859900}.comments pre .kp{color:#859900}.comments pre .kr{color:#268bd2}.comments pre .kt{color:#dc322f}.comments pre .ld{color:#586e75}.comments pre .m{color:#2aa198}.comments pre .s{color:#2aa198}.comments pre .na{color:#586e75}.comments pre .nb{color:#B58900}.comments pre .nc{color:#268bd2}.comments pre .no{color:#cb4b16}.comments pre .nd{color:#268bd2}.comments pre .ni{color:#cb4b16}.comments pre .ne{color:#cb4b16}.comments pre .nf{color:#268bd2}.comments pre .nl{color:#586e75}.comments pre .nn{color:#586e75}.comments pre .nx{color:#586e75}.comments pre .py{color:#586e75}.comments pre .nt{color:#268bd2}.comments pre .nv{color:#268bd2}.comments pre .ow{color:#859900}.comments pre .w{color:#586e75}.comments pre .mf{color:#2aa198}.comments pre .mh{color:#2aa198}.comments pre .mi{color:#2aa198}.comments pre .mo{color:#2aa198}.comments pre .sb{color:#93a1a1}.comments pre .sc{color:#2aa198}.comments pre .sd{color:#586e75}.comments pre .s2{color:#2aa198}.comments pre .se{color:#cb4b16}.comments pre .sh{color:#586e75}.comments pre .si{color:#2aa198}.comments pre .sx{color:#2aa198}.comments pre .sr{color:#dc322f}.comments pre .s1{color:#2aa198}.comments pre .ss{color:#2aa198}.comments pre .bp{color:#268bd2}.comments pre .vc{color:#268bd2}.comments pre .vg{color:#268bd2}.comments pre .vi{color:#268bd2}.comments pre .il{color:#2aa198}.comments pre code{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;max-width:100%;display:block;overflow-x:auto;overflow-y:hidden}.code{white-space:pre;padding-top:0.5em;margin-left:1em;background-color:#002b36;color:#93a1a1}.code .hljs-,.code .wrapper{display:block;padding:0.5em;background:#002b36;color:#839496}.code .hljs-params{color:#839496}.code .hljs-comment,.code .hljs-template_comment,.code .diff .hljs-header,.code .hljs-doctype,.code .hljs-pi,.code .lisp .hljs-string,.code .hljs-javadoc{color:#586e75}.code .hljs-keyword,.code .hljs-function,.code .hljs-winutils,.code .method,.code .hljs-addition,.code .css .hljs-tag,.code .hljs-request,.code .hljs-status,.code .nginx .hljs-title{color:#859900}.code .hljs-number,.code .hljs-command,.code .hljs-string,.code .hljs-tag .hljs-value,.code .hljs-rules .hljs-value,.code .hljs-phpdoc,.code .tex .hljs-formula,.code .hljs-regexp,.code .hljs-hexcolor,.code .hljs-link_url{color:#2aa198}.code .hljs-title,.code .hljs-property,.code .hljs-localvars,.code .hljs-chunk,.code .hljs-decorator,.code .hljs-built_in,.code .hljs-identifier,.code .vhdl .hljs-literal,.code .hljs-id,.code .css .hljs-function{color:#268bd2}.code .hljs-attribute,.code .hljs-variable,.code .lisp .hljs-body,.code .smalltalk .hljs-number,.code .hljs-constant,.code .hljs-class .hljs-title,.code .hljs-parent,.code .haskell .hljs-type,.code .hljs-link_reference{color:#b58900}.code .hljs-preprocessor,.code .hljs-preprocessor .hljs-keyword,.code .hljs-pragma,.code .hljs-shebang,.code .hljs-symbol,.code .hljs-symbol .hljs-string,.code .diff .hljs-change,.code .hljs-special,.code .hljs-attr_selector,.code .hljs-subst,.code .hljs-cdata,.code .clojure .hljs-title,.code .css .hljs-pseudo,.code .hljs-header{color:#cb4b16}.code .hljs-deletion,.code .hljs-important{color:#dc322f}.code .hljs-link_label{color:#6c71c4}.code .tex .hljs-formula{background:#073642}.code .c{color:#586e75}.code .err{color:#93a1a1}.code .g{color:#93a1a1}.code .k{color:#859900}.code .l{color:#93a1a1}.code .n{color:#93a1a1}.code .o{color:#859900}.code .x{color:#cb4b16}.code .p{color:#93a1a1}.code .cm{color:#586e75}.code .cp{color:#859900}.code .c1{color:#586e75}.code .cs{color:#859900}.code .gd{color:#2aa198}.code .ge{color:#93a1a1;font-style:italic}.code .gr{color:#dc322f}.code .gh{color:#cb4b16}.code .gi{color:#859900}.code .go{color:#93a1a1}.code .gp{color:#93a1a1}.code .gs{color:#93a1a1;font-weight:bold}.code .gu{color:#cb4b16}.code .gt{color:#93a1a1}.code .kc{color:#cb4b16}.code .kd{color:#268bd2}.code .kn{color:#859900}.code .kp{color:#859900}.code .kr{color:#268bd2}.code .kt{color:#dc322f}.code .ld{color:#93a1a1}.code .m{color:#2aa198}.code .s{color:#2aa198}.code .na{color:#93a1a1}.code .nb{color:#B58900}.code .nc{color:#268bd2}.code .no{color:#cb4b16}.code .nd{color:#268bd2}.code .ni{color:#cb4b16}.code .ne{color:#cb4b16}.code .nf{color:#268bd2}.code .nl{color:#93a1a1}.code .nn{color:#93a1a1}.code .nx{color:#93a1a1}.code .py{color:#93a1a1}.code .nt{color:#268bd2}.code .nv{color:#268bd2}.code .ow{color:#859900}.code .w{color:#93a1a1}.code .mf{color:#2aa198}.code .mh{color:#2aa198}.code .mi{color:#2aa198}.code .mo{color:#2aa198}.code .sb{color:#586e75}.code .sc{color:#2aa198}.code .sd{color:#93a1a1}.code .s2{color:#2aa198}.code .se{color:#cb4b16}.code .sh{color:#93a1a1}.code .si{color:#2aa198}.code .sx{color:#2aa198}.code .sr{color:#dc322f}.code .s1{color:#2aa198}.code .ss{color:#2aa198}.code .bp{color:#268bd2}.code .vc{color:#268bd2}.code .vg{color:#268bd2}.code .vi{color:#268bd2}.code .il{color:#2aa198}@media screen and (max-width: 30em){body{display:block}#side-menu{display:none}#side-menu,#side-menu nav{width:100%}#side-menu.open{display:block}}@media screen and (min-width: 30em){#meta .toggle-menu{display:none}}@media screen and (max-width: 60em){.segment{padding:0.5em}.segment .code,.segment .comments{display:block;padding:0.5em;margin-left:0;width:auto}.segment .wrapper{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;max-width:100%;display:block;overflow-x:auto;overflow-y:hidden}}body,#file-area{background:#002b36;color:#fdf6e3}a{color:#859900}#meta{word-wrap:break-word}#meta .toggle-menu{background:#fefcf6;color:#002b36}#document{background-color:#002b36;background-image:-webkit-linear-gradient(-360deg, #fefcf6 0%, #fefcf6 30em, #002b36 30em, #002b36 100%);background-image:linear-gradient(90deg,#fefcf6 0%, #fefcf6 30em, #002b36 30em, #002b36 100%)}#document .comments{color:#4f6066}@media screen and (max-width: 60em){#document{background:#fefcf6;}} \ No newline at end of file +@import url(http://fonts.googleapis.com/css?family=PT+Mono);@import url(http://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic,700italic);header,footer,nav,section,article,aside,summary,details{display:block}body,#meta .toggle-menu{font-size:16px;font-family:'PT Sans', 'Helvetica Neue', Arial, sans-serif;line-height:1.4}code,pre,.comments pre,.code{font-family:'PT Sans Mono', monospace;font-size:14px;line-height:22.4px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.doc-section-header{font-weight:bold}body{margin:0;padding:0;overflow:auto;clear:both}ul,ol{margin:0 0.5em;padding:0 0 0 1em}body{display:-webkit-box;display:-moz-box;display:box;display:-webkit-flex;display:-moz-flex;display:-ms-flexbox;display:flex}body #file-area{display:-webkit-box;display:-moz-box;display:box;display:-webkit-flex;display:-moz-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-moz-box-flex:1;box-flex:1;-webkit-flex:1;-moz-flex:1;-ms-flex:1;flex:1;-webkit-box-orient:vertical;-moz-box-orient:vertical;box-orient:vertical;-webkit-flex-direction:column;-moz-flex-direction:column;flex-direction:column;-ms-flex-direction:column}body #file-area #document{-webkit-flex-grow:1;-moz-flex-grow:1;flex-grow:1;-ms-flex-positive:1}#side-menu nav{width:14em;overflow-x:auto;background:#00232c}#side-menu nav+nav{margin-top:1em}#side-menu nav ul,#side-menu nav ol{list-style:none;padding:0;margin:0}#side-menu nav .tree{padding-bottom:0.5em}#side-menu nav li{line-height:1.2;padding:0 0.5em}#side-menu nav .folder{color:#596600}#side-menu nav a{display:block;padding:0.3em 0;text-decoration:none}#side-menu nav a:hover{text-decoration:underline}#side-menu nav .tools{padding-top:0.5em;margin-bottom:1em}#side-menu nav .search input{width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block}#side-menu nav summary{text-align:center;padding:0.5em 0}#side-menu nav summary:hover{cursor:pointer}#side-menu nav a.selected{color:#2aa198}#side-menu nav ol.searching a,#side-menu nav ol.searching span{display:none}#side-menu nav ol.searching a.matched,#side-menu nav ol.searching span.matched{display:block}#meta{padding:0.5em}#meta .toggle-menu{padding:0.2em 1em;border:0;display:inline-block;margin-right:0.5em}.segment{clear:both;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0.5em 0 0.5em 30em;white-space:nowrap}.comments,.code{display:inline-block;vertical-align:top}.comments{padding:0 1em;width:28em;margin-left:-30em;white-space:normal;word-break:break-word}.comments :target a.anchor{color:#2aa198}.comments a.anchor{opacity:0.2}.comments a.anchor:before{content:"#";display:inline-block;padding-right:0.2em}.comments a.anchor:hover{opacity:1}.comments img{max-width:100%}.comments pre{word-break:normal;background-color:#fdf6e3;color:#586e75}.comments pre .hljs-,.comments pre code{display:block;padding:0.5em;background:#fdf6e3;color:#657b83}.comments pre .hljs-params{color:#657b83}.comments pre .hljs-comment,.comments pre .hljs-template_comment,.comments pre .diff .hljs-header,.comments pre .hljs-doctype,.comments pre .hljs-pi,.comments pre .lisp .hljs-string,.comments pre .hljs-javadoc{color:#93a1a1}.comments pre .hljs-keyword,.comments pre .hljs-function,.comments pre .hljs-winutils,.comments pre .method,.comments pre .hljs-addition,.comments pre .css .hljs-tag,.comments pre .hljs-request,.comments pre .hljs-status,.comments pre .nginx .hljs-title{color:#859900}.comments pre .hljs-number,.comments pre .hljs-command,.comments pre .hljs-string,.comments pre .hljs-tag .hljs-value,.comments pre .hljs-rules .hljs-value,.comments pre .hljs-phpdoc,.comments pre .tex .hljs-formula,.comments pre .hljs-regexp,.comments pre .hljs-hexcolor,.comments pre .hljs-link_url{color:#2aa198}.comments pre .hljs-title,.comments pre .hljs-property,.comments pre .hljs-localvars,.comments pre .hljs-chunk,.comments pre .hljs-decorator,.comments pre .hljs-built_in,.comments pre .hljs-identifier,.comments pre .vhdl .hljs-literal,.comments pre .hljs-id,.comments pre .css .hljs-function{color:#268bd2}.comments pre .hljs-attribute,.comments pre .hljs-variable,.comments pre .lisp .hljs-body,.comments pre .smalltalk .hljs-number,.comments pre .hljs-constant,.comments pre .hljs-class .hljs-title,.comments pre .hljs-parent,.comments pre .haskell .hljs-type,.comments pre .hljs-link_reference{color:#b58900}.comments pre .hljs-preprocessor,.comments pre .hljs-preprocessor .hljs-keyword,.comments pre .hljs-pragma,.comments pre .hljs-shebang,.comments pre .hljs-symbol,.comments pre .hljs-symbol .hljs-string,.comments pre .diff .hljs-change,.comments pre .hljs-special,.comments pre .hljs-attr_selector,.comments pre .hljs-subst,.comments pre .hljs-cdata,.comments pre .clojure .hljs-title,.comments pre .css .hljs-pseudo,.comments pre .hljs-header{color:#cb4b16}.comments pre .hljs-deletion,.comments pre .hljs-important{color:#dc322f}.comments pre .hljs-link_label{color:#6c71c4}.comments pre .tex .hljs-formula{background:#eee8d5}.comments pre .c{color:#93a1a1}.comments pre .err{color:#586e75}.comments pre .g{color:#586e75}.comments pre .k{color:#859900}.comments pre .l{color:#586e75}.comments pre .n{color:#586e75}.comments pre .o{color:#859900}.comments pre .x{color:#cb4b16}.comments pre .p{color:#586e75}.comments pre .cm{color:#93a1a1}.comments pre .cp{color:#859900}.comments pre .c1{color:#93a1a1}.comments pre .cs{color:#859900}.comments pre .gd{color:#2aa198}.comments pre .ge{color:#586e75;font-style:italic}.comments pre .gr{color:#dc322f}.comments pre .gh{color:#cb4b16}.comments pre .gi{color:#859900}.comments pre .go{color:#586e75}.comments pre .gp{color:#586e75}.comments pre .gs{color:#586e75;font-weight:bold}.comments pre .gu{color:#cb4b16}.comments pre .gt{color:#586e75}.comments pre .kc{color:#cb4b16}.comments pre .kd{color:#268bd2}.comments pre .kn{color:#859900}.comments pre .kp{color:#859900}.comments pre .kr{color:#268bd2}.comments pre .kt{color:#dc322f}.comments pre .ld{color:#586e75}.comments pre .m{color:#2aa198}.comments pre .s{color:#2aa198}.comments pre .na{color:#586e75}.comments pre .nb{color:#B58900}.comments pre .nc{color:#268bd2}.comments pre .no{color:#cb4b16}.comments pre .nd{color:#268bd2}.comments pre .ni{color:#cb4b16}.comments pre .ne{color:#cb4b16}.comments pre .nf{color:#268bd2}.comments pre .nl{color:#586e75}.comments pre .nn{color:#586e75}.comments pre .nx{color:#586e75}.comments pre .py{color:#586e75}.comments pre .nt{color:#268bd2}.comments pre .nv{color:#268bd2}.comments pre .ow{color:#859900}.comments pre .w{color:#586e75}.comments pre .mf{color:#2aa198}.comments pre .mh{color:#2aa198}.comments pre .mi{color:#2aa198}.comments pre .mo{color:#2aa198}.comments pre .sb{color:#93a1a1}.comments pre .sc{color:#2aa198}.comments pre .sd{color:#586e75}.comments pre .s2{color:#2aa198}.comments pre .se{color:#cb4b16}.comments pre .sh{color:#586e75}.comments pre .si{color:#2aa198}.comments pre .sx{color:#2aa198}.comments pre .sr{color:#dc322f}.comments pre .s1{color:#2aa198}.comments pre .ss{color:#2aa198}.comments pre .bp{color:#268bd2}.comments pre .vc{color:#268bd2}.comments pre .vg{color:#268bd2}.comments pre .vi{color:#268bd2}.comments pre .il{color:#2aa198}.comments pre code{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;max-width:100%;display:block;overflow-x:auto;overflow-y:hidden}.code{white-space:pre;padding-top:0.5em;margin-left:1em;background-color:#002b36;color:#93a1a1}.code .hljs-,.code .wrapper{display:block;padding:0.5em;background:#002b36;color:#839496}.code .hljs-params{color:#839496}.code .hljs-comment,.code .hljs-template_comment,.code .diff .hljs-header,.code .hljs-doctype,.code .hljs-pi,.code .lisp .hljs-string,.code .hljs-javadoc{color:#586e75}.code .hljs-keyword,.code .hljs-function,.code .hljs-winutils,.code .method,.code .hljs-addition,.code .css .hljs-tag,.code .hljs-request,.code .hljs-status,.code .nginx .hljs-title{color:#859900}.code .hljs-number,.code .hljs-command,.code .hljs-string,.code .hljs-tag .hljs-value,.code .hljs-rules .hljs-value,.code .hljs-phpdoc,.code .tex .hljs-formula,.code .hljs-regexp,.code .hljs-hexcolor,.code .hljs-link_url{color:#2aa198}.code .hljs-title,.code .hljs-property,.code .hljs-localvars,.code .hljs-chunk,.code .hljs-decorator,.code .hljs-built_in,.code .hljs-identifier,.code .vhdl .hljs-literal,.code .hljs-id,.code .css .hljs-function{color:#268bd2}.code .hljs-attribute,.code .hljs-variable,.code .lisp .hljs-body,.code .smalltalk .hljs-number,.code .hljs-constant,.code .hljs-class .hljs-title,.code .hljs-parent,.code .haskell .hljs-type,.code .hljs-link_reference{color:#b58900}.code .hljs-preprocessor,.code .hljs-preprocessor .hljs-keyword,.code .hljs-pragma,.code .hljs-shebang,.code .hljs-symbol,.code .hljs-symbol .hljs-string,.code .diff .hljs-change,.code .hljs-special,.code .hljs-attr_selector,.code .hljs-subst,.code .hljs-cdata,.code .clojure .hljs-title,.code .css .hljs-pseudo,.code .hljs-header{color:#cb4b16}.code .hljs-deletion,.code .hljs-important{color:#dc322f}.code .hljs-link_label{color:#6c71c4}.code .tex .hljs-formula{background:#073642}.code .c{color:#586e75}.code .err{color:#93a1a1}.code .g{color:#93a1a1}.code .k{color:#859900}.code .l{color:#93a1a1}.code .n{color:#93a1a1}.code .o{color:#859900}.code .x{color:#cb4b16}.code .p{color:#93a1a1}.code .cm{color:#586e75}.code .cp{color:#859900}.code .c1{color:#586e75}.code .cs{color:#859900}.code .gd{color:#2aa198}.code .ge{color:#93a1a1;font-style:italic}.code .gr{color:#dc322f}.code .gh{color:#cb4b16}.code .gi{color:#859900}.code .go{color:#93a1a1}.code .gp{color:#93a1a1}.code .gs{color:#93a1a1;font-weight:bold}.code .gu{color:#cb4b16}.code .gt{color:#93a1a1}.code .kc{color:#cb4b16}.code .kd{color:#268bd2}.code .kn{color:#859900}.code .kp{color:#859900}.code .kr{color:#268bd2}.code .kt{color:#dc322f}.code .ld{color:#93a1a1}.code .m{color:#2aa198}.code .s{color:#2aa198}.code .na{color:#93a1a1}.code .nb{color:#B58900}.code .nc{color:#268bd2}.code .no{color:#cb4b16}.code .nd{color:#268bd2}.code .ni{color:#cb4b16}.code .ne{color:#cb4b16}.code .nf{color:#268bd2}.code .nl{color:#93a1a1}.code .nn{color:#93a1a1}.code .nx{color:#93a1a1}.code .py{color:#93a1a1}.code .nt{color:#268bd2}.code .nv{color:#268bd2}.code .ow{color:#859900}.code .w{color:#93a1a1}.code .mf{color:#2aa198}.code .mh{color:#2aa198}.code .mi{color:#2aa198}.code .mo{color:#2aa198}.code .sb{color:#586e75}.code .sc{color:#2aa198}.code .sd{color:#93a1a1}.code .s2{color:#2aa198}.code .se{color:#cb4b16}.code .sh{color:#93a1a1}.code .si{color:#2aa198}.code .sx{color:#2aa198}.code .sr{color:#dc322f}.code .s1{color:#2aa198}.code .ss{color:#2aa198}.code .bp{color:#268bd2}.code .vc{color:#268bd2}.code .vg{color:#268bd2}.code .vi{color:#268bd2}.code .il{color:#2aa198}@media screen and (max-width: 30em){body{display:block}#side-menu{display:none}#side-menu,#side-menu nav{width:100%}#side-menu.open{display:block}}@media screen and (min-width: 30em){#meta .toggle-menu{display:none}}@media screen and (max-width: 60em){.segment{padding:0.5em}.segment .code,.segment .comments{display:block;padding:0.5em;margin-left:0;width:auto}.segment .wrapper{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;max-width:100%;display:block;overflow-x:auto;overflow-y:hidden}}body,#file-area{background:#002b36;color:#fdf6e3}a{color:#859900}#meta{word-wrap:break-word}#meta .toggle-menu{background:#fefcf6;color:#002b36}#document{background-color:#002b36;background-image:-webkit-linear-gradient(-360deg, #fefcf6 0%, #fefcf6 30em, #002b36 30em, #002b36 100%);background-image:linear-gradient(90deg,#fefcf6 0%, #fefcf6 30em, #002b36 30em, #002b36 100%)}#document .comments{color:#4f6066}@media screen and (max-width: 60em){#document{background:#fefcf6;}} \ No newline at end of file diff --git a/styles/thin/compiled/style.css b/styles/thin/compiled/style.css index db62512..d35eb83 100644 --- a/styles/thin/compiled/style.css +++ b/styles/thin/compiled/style.css @@ -1 +1 @@ -@import url('http://fonts.googleapis.com/css?family=Source+Code+Pro:300,500');@import url('http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,300italic,400italic');header,footer,nav,section,article,aside,summary,details{display:block}body,#meta .toggle-menu{font-size:16px;font-family:'Source Sans Pro','Helvetica Neue',Arial,sans-serif;font-weight:300;line-height:1.4}code,pre,.comments pre,.code{font-size:14px;font-family:'Source Code Pro',monospace;font-weight:300;line-height:22.4px}strong,b{font-weight:400}h1,h2,h3,h4,h5,h6,.doc-section-header{font-weight:300}em,i{font-weight:300}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.doc-section-header,.doc-section-header code{font-size:22.4px}body{margin:0;padding:0;overflow:auto;clear:both}ul,ol{margin:0 0.5em;padding:0 0 0 1em}body{display:-webkit-box;display:-moz-box;display:box;display:-webkit-flex;display:-moz-flex;display:-ms-flexbox;display:flex}body #file-area{display:-webkit-box;display:-moz-box;display:box;display:-webkit-flex;display:-moz-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-moz-box-flex:1;box-flex:1;-webkit-flex:1;-moz-flex:1;-ms-flex:1;flex:1;-webkit-box-orient:vertical;-moz-box-orient:vertical;box-orient:vertical;-webkit-flex-direction:column;-moz-flex-direction:column;flex-direction:column;-ms-flex-direction:column}body #file-area #document{-webkit-flex-grow:1;-moz-flex-grow:1;flex-grow:1;-ms-flex-positive:1}#side-menu nav{width:14em;overflow-x:auto;background:#fafafa}#side-menu nav+nav{margin-top:1em}#side-menu nav ul,#side-menu nav ol{list-style:none;padding:0;margin:0}#side-menu nav .tree{padding-bottom:0.5em}#side-menu nav li{line-height:1.2;padding:0 0.5em}#side-menu nav .folder{color:#30767a}#side-menu nav a{display:block;padding:0.3em 0;text-decoration:none}#side-menu nav a:hover{text-decoration:underline}#side-menu nav .tools{padding-top:0.5em;margin-bottom:1em}#side-menu nav .search input{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;width:100%;display:block}#side-menu nav summary{text-align:center;padding:0.5em 0}#side-menu nav summary:hover{cursor:pointer}#side-menu nav a.selected{color:#f5871f}#side-menu nav ol.searching a,#side-menu nav ol.searching span{display:none}#side-menu nav ol.searching a.matched,#side-menu nav ol.searching span.matched{display:block}#meta{padding:0.5em}#meta .toggle-menu{padding:0.2em 1em;border:0;display:inline-block;margin-right:0.5em}.segment{clear:both;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0.5em 0 0.5em 30em;white-space:nowrap}.comments,.code{display:inline-block;vertical-align:top}.comments{padding:0 1em;width:28em;margin-left:-30em;white-space:normal;word-break:break-word}.comments :target a.anchor{color:#f5871f}.comments a.anchor{opacity:0.2}.comments a.anchor:before{content:"#";display:inline-block;padding-right:0.2em}.comments a.anchor:hover{opacity:1}.comments img{max-width:100%}.comments pre{word-break:normal;background:#f0f0f0}.comments pre .hljs-,.comments pre code{display:block;color:#4d4d4c;padding:0.5em}.comments pre .hljs-comment,.comments pre .hljs-title{color:#8e908c}.comments pre .hljs-variable,.comments pre .hljs-attribute,.comments pre .hljs-tag,.comments pre .hljs-regexp,.comments pre .ruby .hljs-constant,.comments pre .xml .hljs-tag .hljs-title,.comments pre .xml .hljs-pi,.comments pre .xml .hljs-doctype,.comments pre .html .hljs-doctype,.comments pre .css .hljs-id,.comments pre .css .hljs-class,.comments pre .css .hljs-pseudo{color:#c82829}.comments pre .hljs-number,.comments pre .hljs-preprocessor,.comments pre .hljs-pragma,.comments pre .hljs-built_in,.comments pre .hljs-literal,.comments pre .hljs-params,.comments pre .hljs-constant{color:#f5871f}.comments pre .ruby .hljs-class .hljs-title,.comments pre .css .hljs-rules .hljs-attribute{color:#eab700}.comments pre .hljs-string,.comments pre .hljs-value,.comments pre .hljs-inheritance,.comments pre .hljs-header,.comments pre .ruby .hljs-symbol,.comments pre .xml .hljs-cdata{color:#718c00}.comments pre .css .hljs-hexcolor{color:#3e999f}.comments pre .hljs-function,.comments pre .python .hljs-decorator,.comments pre .python .hljs-title,.comments pre .ruby .hljs-function .hljs-title,.comments pre .ruby .hljs-title .hljs-keyword,.comments pre .perl .hljs-sub,.comments pre .javascript .hljs-title,.comments pre .coffeescript .hljs-title{color:#4271ae;font-weight:500}.comments pre .hljs-keyword,.comments pre .javascript .hljs-function{color:#8959a8;font-weight:500}.comments pre .coffeescript .javascript,.comments pre .javascript .xml,.comments pre .tex .hljs-formula,.comments pre .xml .javascript,.comments pre .xml .vbscript,.comments pre .xml .css,.comments pre .xml .hljs-cdata{opacity:0.5}.comments pre code{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;max-width:100%;display:block;overflow-x:auto;overflow-y:hidden}.code{white-space:pre;padding-top:0.5em;margin-left:1em;background:#fff}.code .hljs-,.code .wrapper{display:block;color:#4d4d4c;padding:0.5em}.code .hljs-comment,.code .hljs-title{color:#8e908c}.code .hljs-variable,.code .hljs-attribute,.code .hljs-tag,.code .hljs-regexp,.code .ruby .hljs-constant,.code .xml .hljs-tag .hljs-title,.code .xml .hljs-pi,.code .xml .hljs-doctype,.code .html .hljs-doctype,.code .css .hljs-id,.code .css .hljs-class,.code .css .hljs-pseudo{color:#c82829}.code .hljs-number,.code .hljs-preprocessor,.code .hljs-pragma,.code .hljs-built_in,.code .hljs-literal,.code .hljs-params,.code .hljs-constant{color:#f5871f}.code .ruby .hljs-class .hljs-title,.code .css .hljs-rules .hljs-attribute{color:#eab700}.code .hljs-string,.code .hljs-value,.code .hljs-inheritance,.code .hljs-header,.code .ruby .hljs-symbol,.code .xml .hljs-cdata{color:#718c00}.code .css .hljs-hexcolor{color:#3e999f}.code .hljs-function,.code .python .hljs-decorator,.code .python .hljs-title,.code .ruby .hljs-function .hljs-title,.code .ruby .hljs-title .hljs-keyword,.code .perl .hljs-sub,.code .javascript .hljs-title,.code .coffeescript .hljs-title{color:#4271ae;font-weight:500}.code .hljs-keyword,.code .javascript .hljs-function{color:#8959a8;font-weight:500}.code .coffeescript .javascript,.code .javascript .xml,.code .tex .hljs-formula,.code .xml .javascript,.code .xml .vbscript,.code .xml .css,.code .xml .hljs-cdata{opacity:0.5}@media screen and (max-width: 30em){body{display:block}#side-menu{display:none}#side-menu,#side-menu nav{width:100%}#side-menu.open{display:block}}@media screen and (min-width: 30em){#meta .toggle-menu{display:none}}@media screen and (max-width: 60em){.segment{padding:0.5em}.segment .code,.segment .comments{display:block;padding:0.5em;margin-left:0;width:auto}.segment .wrapper{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;max-width:100%;display:block;overflow-x:auto;overflow-y:hidden}}body,#file-area{background:#fff;color:#4d4d4c}a{color:#3e999f}#meta{word-wrap:break-word}#meta .toggle-menu{background:#f0f0f0;color:#fff}#document{background-color:#fff;background-image:-webkit-linear-gradient(-360deg, #f0f0f0 0%, #f0f0f0 30em, #fff 30em, #fff 100%);background-image:linear-gradient(90deg,#f0f0f0 0%, #f0f0f0 30em, #fff 30em, #fff 100%)}#document .comments{color:#4d4d4c}@media screen and (max-width: 60em){#document{background:#f0f0f0;}} \ No newline at end of file +@import url('http://fonts.googleapis.com/css?family=Source+Code+Pro:300,500');@import url('http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,300italic,400italic');header,footer,nav,section,article,aside,summary,details{display:block}body,#meta .toggle-menu{font-size:16px;font-family:'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;font-weight:300;line-height:1.4}code,pre,.comments pre,.code{font-size:14px;font-family:'Source Code Pro', monospace;font-weight:300;line-height:22.4px}strong,b{font-weight:400}h1,h2,h3,h4,h5,h6,.doc-section-header{font-weight:300}em,i{font-weight:300}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.doc-section-header,.doc-section-header code{font-size:22.4px}body{margin:0;padding:0;overflow:auto;clear:both}ul,ol{margin:0 0.5em;padding:0 0 0 1em}body{display:-webkit-box;display:-moz-box;display:box;display:-webkit-flex;display:-moz-flex;display:-ms-flexbox;display:flex}body #file-area{display:-webkit-box;display:-moz-box;display:box;display:-webkit-flex;display:-moz-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-moz-box-flex:1;box-flex:1;-webkit-flex:1;-moz-flex:1;-ms-flex:1;flex:1;-webkit-box-orient:vertical;-moz-box-orient:vertical;box-orient:vertical;-webkit-flex-direction:column;-moz-flex-direction:column;flex-direction:column;-ms-flex-direction:column}body #file-area #document{-webkit-flex-grow:1;-moz-flex-grow:1;flex-grow:1;-ms-flex-positive:1}#side-menu nav{width:14em;overflow-x:auto;background:#fafafa}#side-menu nav+nav{margin-top:1em}#side-menu nav ul,#side-menu nav ol{list-style:none;padding:0;margin:0}#side-menu nav .tree{padding-bottom:0.5em}#side-menu nav li{line-height:1.2;padding:0 0.5em}#side-menu nav .folder{color:#30767a}#side-menu nav a{display:block;padding:0.3em 0;text-decoration:none}#side-menu nav a:hover{text-decoration:underline}#side-menu nav .tools{padding-top:0.5em;margin-bottom:1em}#side-menu nav .search input{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;width:100%;display:block}#side-menu nav summary{text-align:center;padding:0.5em 0}#side-menu nav summary:hover{cursor:pointer}#side-menu nav a.selected{color:#f5871f}#side-menu nav ol.searching a,#side-menu nav ol.searching span{display:none}#side-menu nav ol.searching a.matched,#side-menu nav ol.searching span.matched{display:block}#meta{padding:0.5em}#meta .toggle-menu{padding:0.2em 1em;border:0;display:inline-block;margin-right:0.5em}.segment{clear:both;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0.5em 0 0.5em 30em;white-space:nowrap}.comments,.code{display:inline-block;vertical-align:top}.comments{padding:0 1em;width:28em;margin-left:-30em;white-space:normal;word-break:break-word}.comments :target a.anchor{color:#f5871f}.comments a.anchor{opacity:0.2}.comments a.anchor:before{content:"#";display:inline-block;padding-right:0.2em}.comments a.anchor:hover{opacity:1}.comments img{max-width:100%}.comments pre{word-break:normal;background:#f0f0f0}.comments pre .hljs-,.comments pre code{display:block;color:#4d4d4c;padding:0.5em}.comments pre .hljs-comment,.comments pre .hljs-title{color:#8e908c}.comments pre .hljs-variable,.comments pre .hljs-attribute,.comments pre .hljs-tag,.comments pre .hljs-regexp,.comments pre .ruby .hljs-constant,.comments pre .xml .hljs-tag .hljs-title,.comments pre .xml .hljs-pi,.comments pre .xml .hljs-doctype,.comments pre .html .hljs-doctype,.comments pre .css .hljs-id,.comments pre .css .hljs-class,.comments pre .css .hljs-pseudo{color:#c82829}.comments pre .hljs-number,.comments pre .hljs-preprocessor,.comments pre .hljs-pragma,.comments pre .hljs-built_in,.comments pre .hljs-literal,.comments pre .hljs-params,.comments pre .hljs-constant{color:#f5871f}.comments pre .ruby .hljs-class .hljs-title,.comments pre .css .hljs-rules .hljs-attribute{color:#eab700}.comments pre .hljs-string,.comments pre .hljs-value,.comments pre .hljs-inheritance,.comments pre .hljs-header,.comments pre .ruby .hljs-symbol,.comments pre .xml .hljs-cdata{color:#718c00}.comments pre .css .hljs-hexcolor{color:#3e999f}.comments pre .hljs-function,.comments pre .python .hljs-decorator,.comments pre .python .hljs-title,.comments pre .ruby .hljs-function .hljs-title,.comments pre .ruby .hljs-title .hljs-keyword,.comments pre .perl .hljs-sub,.comments pre .javascript .hljs-title,.comments pre .coffeescript .hljs-title{color:#4271ae;font-weight:500}.comments pre .hljs-keyword,.comments pre .javascript .hljs-function{color:#8959a8;font-weight:500}.comments pre .coffeescript .javascript,.comments pre .javascript .xml,.comments pre .tex .hljs-formula,.comments pre .xml .javascript,.comments pre .xml .vbscript,.comments pre .xml .css,.comments pre .xml .hljs-cdata{opacity:0.5}.comments pre code{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;max-width:100%;display:block;overflow-x:auto;overflow-y:hidden}.code{white-space:pre;padding-top:0.5em;margin-left:1em;background:#fff}.code .hljs-,.code .wrapper{display:block;color:#4d4d4c;padding:0.5em}.code .hljs-comment,.code .hljs-title{color:#8e908c}.code .hljs-variable,.code .hljs-attribute,.code .hljs-tag,.code .hljs-regexp,.code .ruby .hljs-constant,.code .xml .hljs-tag .hljs-title,.code .xml .hljs-pi,.code .xml .hljs-doctype,.code .html .hljs-doctype,.code .css .hljs-id,.code .css .hljs-class,.code .css .hljs-pseudo{color:#c82829}.code .hljs-number,.code .hljs-preprocessor,.code .hljs-pragma,.code .hljs-built_in,.code .hljs-literal,.code .hljs-params,.code .hljs-constant{color:#f5871f}.code .ruby .hljs-class .hljs-title,.code .css .hljs-rules .hljs-attribute{color:#eab700}.code .hljs-string,.code .hljs-value,.code .hljs-inheritance,.code .hljs-header,.code .ruby .hljs-symbol,.code .xml .hljs-cdata{color:#718c00}.code .css .hljs-hexcolor{color:#3e999f}.code .hljs-function,.code .python .hljs-decorator,.code .python .hljs-title,.code .ruby .hljs-function .hljs-title,.code .ruby .hljs-title .hljs-keyword,.code .perl .hljs-sub,.code .javascript .hljs-title,.code .coffeescript .hljs-title{color:#4271ae;font-weight:500}.code .hljs-keyword,.code .javascript .hljs-function{color:#8959a8;font-weight:500}.code .coffeescript .javascript,.code .javascript .xml,.code .tex .hljs-formula,.code .xml .javascript,.code .xml .vbscript,.code .xml .css,.code .xml .hljs-cdata{opacity:0.5}@media screen and (max-width: 30em){body{display:block}#side-menu{display:none}#side-menu,#side-menu nav{width:100%}#side-menu.open{display:block}}@media screen and (min-width: 30em){#meta .toggle-menu{display:none}}@media screen and (max-width: 60em){.segment{padding:0.5em}.segment .code,.segment .comments{display:block;padding:0.5em;margin-left:0;width:auto}.segment .wrapper{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;max-width:100%;display:block;overflow-x:auto;overflow-y:hidden}}body,#file-area{background:#fff;color:#4d4d4c}a{color:#3e999f}#meta{word-wrap:break-word}#meta .toggle-menu{background:#f0f0f0;color:#fff}#document{background-color:#fff;background-image:-webkit-linear-gradient(-360deg, #f0f0f0 0%, #f0f0f0 30em, #fff 30em, #fff 100%);background-image:linear-gradient(90deg,#f0f0f0 0%, #f0f0f0 30em, #fff 30em, #fff 100%)}#document .comments{color:#4d4d4c}@media screen and (max-width: 60em){#document{background:#f0f0f0;}} \ No newline at end of file