/* vim: set et sw=2 ts=2: */

@sidebar-width: 240px;
@search-height: 40px;
@search-padding: 8px;
@ornament-color: maroon;
@padding-left: 10px;
@width: 850px;

dd {
  margin-left: 1em;
}

div.search {
  position: fixed;
  top: 0;
  left: 0;
  height: @search-height;
  width: @sidebar-width;
  padding: @search-padding;
  background: @ornament-color;

  input[type='text'] {
    height: 40px - (@search-padding * 2);
    padding: 0 10px;
    border-width: 0;
    border-radius: 15px;
    width: @sidebar-width - (@search-padding * 2);
  }
}

.alias {
  margin-left: 5px;
}

div.sidebar {
  position: fixed;
  top: @search-height;
  left: 0;
  bottom: 0;
  xheight: 100%;
  width: @sidebar-width;
  border-right: 1px solid @ornament-color;
  overflow: auto;

  h6 {
    margin-top: 1em;
    margin-bottom: .3em;
    font-weight: bold;
  }

  .hidden {
    display: none;
  }

  a {
    display: block;
    text-decoration: none;

    color: black;
    padding-left: 10px;
    padding-top: 3px;
    padding-bottom: 3px;
  }

  a:hover {
    background-color: gray !important;
    color: white;
  }

  h6 {
    font-size: 1em;
  }
}

div.content {
  padding-left: @sidebar-width + @padding-left;
  max-width: @width;

  h1 {
    border-bottom: 1px solid @ornament-color;
  }
}

div.function.well {
  background-color: #e9e9e9;

  h3 + p > code {
    float: right;
    margin-top: -60px;
  }
}

@media (max-width: @width) {
  div.sidebar, div.search {
    display: none;
  }

  div.content {
    padding-left: @padding-left;
  }
}

pre {
  .hljs-comment,
  .hljs-template_comment,
  .hljs-diff .hljs-header,
  .hljs-javadoc {
    color: #408080;
    font-style: italic
  }

  .hljs-keyword,
  .hljs-assignment,
  .hljs-literal,
  .hljs-css .hljs-rule .hljs-keyword,
  .hljs-winutils,
  .hljs-javascript .hljs-title,
  .hljs-lisp .hljs-title,
  .hljs-subst {
    color: #954121;
    /*font-weight: bold*/
  }

  .hljs-number,
  .hljs-hexcolor {
    color: #40a070
  }

  .hljs-string,
  .hljs-tag .hljs-value,
  .hljs-phpdoc,
  .hljs-tex .hljs-formula {
    color: #219161;
  }

  .hljs-title,
  .hljs-id {
    color: #19469D;
  }
  .hljs-params {
    color: #00F;
  }

  .hljs-javascript .hljs-title,
  .hljs-lisp .hljs-title,
  .hljs-subst {
    font-weight: normal
  }

  .hljs-class .hljs-title,
  .hljs-haskell .hljs-label,
  .hljs-tex .hljs-command {
    color: #458;
    font-weight: bold
  }

  .hljs-tag,
  .hljs-tag .hljs-title,
  .hljs-rules .hljs-property,
  .hljs-django .hljs-tag .hljs-keyword {
    color: #000080;
    font-weight: normal
  }

  .hljs-attribute,
  .hljs-variable,
  .hljs-instancevar,
  .hljs-lisp .hljs-body {
    color: #008080
  }

  .hljs-regexp {
    color: #B68
  }

  .hljs-class {
    color: #458;
    font-weight: bold
  }

  .hljs-symbol,
  .hljs-ruby .hljs-symbol .hljs-string,
  .hljs-ruby .hljs-symbol .hljs-keyword,
  .hljs-ruby .hljs-symbol .hljs-keymethods,
  .hljs-lisp .hljs-keyword,
  .hljs-tex .hljs-special,
  .hljs-input_number {
    color: #990073
  }

  .hljs-builtin,
  .hljs-constructor,
  .hljs-built_in,
  .hljs-lisp .hljs-title {
    color: #0086b3
  }

  .hljs-preprocessor,
  .hljs-pi,
  .hljs-doctype,
  .hljs-shebang,
  .hljs-cdata {
    color: #999;
    font-weight: bold
  }

  .hljs-deletion {
    background: #fdd
  }

  .hljs-addition {
    background: #dfd
  }

  .hljs-diff .hljs-change {
    background: #0086b3
  }

  .hljs-chunk {
    color: #aaa
  }

  .hljs-tex .hljs-formula {
    opacity: 0.5;
  }
}
