Blame content/assets/css/bootstrap/_code.scss

e8ec7a
//
e8ec7a
// Code (inline and blocK)
e8ec7a
// --------------------------------------------------
e8ec7a
e8ec7a
e8ec7a
// Inline and block code styles
e8ec7a
code,
e8ec7a
pre {
e8ec7a
  font-family: $font-family-monospace;
e8ec7a
}
e8ec7a
e8ec7a
// Inline code
e8ec7a
code {
e8ec7a
  padding: 2px 4px;
e8ec7a
  font-size: 90%;
e8ec7a
  color: $code-color;
e8ec7a
  background-color: $code-bg;
e8ec7a
  white-space: nowrap;
e8ec7a
  border-radius: $border-radius-base;
e8ec7a
}
e8ec7a
e8ec7a
// Blocks of code
e8ec7a
pre {
e8ec7a
  display: block;
e8ec7a
  padding: (($line-height-computed - 1) / 2);
e8ec7a
  margin: 0 0 ($line-height-computed / 2);
e8ec7a
  font-size: ($font-size-base - 1); // 14px to 13px
e8ec7a
  line-height: $line-height-base;
e8ec7a
  word-break: break-all;
e8ec7a
  word-wrap: break-word;
e8ec7a
  color: $pre-color;
e8ec7a
  background-color: $pre-bg;
e8ec7a
  border: 1px solid $pre-border-color;
e8ec7a
  border-radius: $border-radius-base;
e8ec7a
e8ec7a
  // Make prettyprint styles more spaced out for readability
e8ec7a
  &.prettyprint {
e8ec7a
    margin-bottom: $line-height-computed;
e8ec7a
  }
e8ec7a
e8ec7a
  // Account for some code outputs that place code tags in pre tags
e8ec7a
  code {
e8ec7a
    padding: 0;
e8ec7a
    font-size: inherit;
e8ec7a
    color: inherit;
e8ec7a
    white-space: pre-wrap;
e8ec7a
    background-color: transparent;
e8ec7a
    border: 0;
e8ec7a
  }
e8ec7a
}
e8ec7a
e8ec7a
// Enable scrollable blocks of code
e8ec7a
.pre-scrollable {
e8ec7a
  max-height: $pre-scrollable-max-height;
e8ec7a
  overflow-y: scroll;
e8ec7a
}