/*____________ code ____________*/

pre,
code,
samp,
kbd {
  font-family: Consolas, "Andale Mono WT", "Andale Mono", "Bitstream Vera Sans Mono", "Nimbus Mono L", Monaco, "Courier New", monospace;
  /* same font stack should be used for ".dokuwiki table.diff td" in _diff.css */
  font-size: 1em;
  direction: ltr;
  text-align: left;
  background-color: @ini_background_site;
  color: @ini_text;
  box-shadow: inset 0 0 .3em @ini_border;
  border-radius: 2px;
}

pre {
  overflow: auto;
  word-wrap: normal;
  border: 1px solid @ini_border;
  border-radius: 2px;
  box-shadow: inset 0 0 .5em @ini_border;
  padding: .7em 1em;
}

/* code blocks by code tag */
div.dokuwiki pre.code {
  background-color: @ini_background_neu;
}

/* code blocks by file tag */
div.dokuwiki pre.file {
  background-color: @ini_background_alt;
}

/* fix if background-color hides underlining */
.dokuwiki em.u code {
  text-decoration: underline;
}

/* filenames for downloadable file and code blocks */
.dokuwiki dl.code,
.dokuwiki dl.file {
  dt {
    background-color: @ini_background_site;
    color: inherit;
    border: 1px solid @ini_border;
    border-bottom-color: @ini_background_site;
    border-top-left-radius: .3em;
    border-top-right-radius: .3em;
    padding: .3em .6em .1em;
    margin-bottom: -1px;
    float: left;

    a {
      background-color: transparent;
      font-size: 0.875em;
      font-weight: normal;
      display: block;
      min-height: 16px;
    }
  }

  dd {
    margin: 0;
    clear: left;
  }

  pre {
    box-shadow: inset -4px -4px .5em -.3em @ini_border;
  }
}

[dir=rtl] .dokuwiki dl.code,
[dir=rtl] .dokuwiki dl.file {
  dt {
    float: right;
  }

  dd {
    clear: right;
  }
}

/* for code in <file> */
.dokuwiki dl.file {
  pre,
  dt {
    border-style: dashed;
  }
  dt {
    border-bottom-style: solid;
  }
}
