Sha256: 53281e5b00f9cdfacb1389104c350f0df7e689c0982d82cd58568bbeb9a5b5b4

Contents?: true

Size: 1.08 KB

Versions: 40

Compression:

Stored size: 1.08 KB

Contents

//
// Code (inline and block)
// --------------------------------------------------


// Inline and block code styles
code,
kbd,
pre,
samp {
  font-family: @font-family-monospace;
}

// Inline code
code {
  padding: 2px 4px;
  font-size: 90%;
  color: @code-color;
  background-color: @code-bg;
  white-space: nowrap;
  border-radius: @border-radius-base;
}

// Blocks of code
pre {
  display: block;
  padding: ((@line-height-computed - 1) / 2);
  margin: 0 0 (@line-height-computed / 2);
  font-size: (@font-size-base - 1); // 14px to 13px
  line-height: @line-height-base;
  word-break: break-all;
  word-wrap: break-word;
  color: @pre-color;
  background-color: @pre-bg;
  border: 1px solid @pre-border-color;
  border-radius: @border-radius-base;

  // Account for some code outputs that place code tags in pre tags
  code {
    padding: 0;
    font-size: inherit;
    color: inherit;
    white-space: pre-wrap;
    background-color: transparent;
    border-radius: 0;
  }
}

// Enable scrollable blocks of code
.pre-scrollable {
  max-height: @pre-scrollable-max-height;
  overflow-y: scroll;
}

Version data entries

40 entries across 40 versions & 8 rubygems

Version Path
bastion-0.1.14 vendor/assets/stylesheets/bastion/bootstrap/code.less
bastion-0.1.13 vendor/assets/stylesheets/bastion/bootstrap/code.less
bastion-0.1.12 vendor/assets/stylesheets/bastion/bootstrap/code.less
bastion-0.1.11 vendor/assets/stylesheets/bastion/bootstrap/code.less
bastion-0.1.10 vendor/assets/stylesheets/bastion/bootstrap/code.less
bastion-0.1.9 vendor/assets/stylesheets/bastion/bootstrap/code.less
bastion-0.1.8 vendor/assets/stylesheets/bastion/bootstrap/code.less
bastion-0.1.7 vendor/assets/stylesheets/bastion/bootstrap/code.less
bastion-0.1.6 vendor/assets/stylesheets/bastion/bootstrap/code.less
bastion-0.1.5 vendor/assets/stylesheets/bastion/bootstrap/code.less
bastion-0.1.4 vendor/assets/stylesheets/bastion/bootstrap/code.less
bastion-0.1.3 vendor/assets/stylesheets/bastion/bootstrap/code.less
bastion-0.1.2 vendor/assets/stylesheets/bastion/bootstrap/code.less
bastion-0.1.1 vendor/assets/stylesheets/bastion/bootstrap/code.less
bastion-0.1.0 vendor/assets/stylesheets/bastion/bootstrap/code.less
twbs_less_rails-2.7.2 vendor/assets/stylesheets/twbs/bootstrap/code.less
bootstrap-generators-3.0.2.2 vendor/twitter/bootstrap/less/code.less
bootstrap-generators-3.0.2.1 vendor/twitter/bootstrap/less/code.less
bootstrap_it-0.1.2 upstream/bootstrap/3.0.3/src/less/code.less
bootstrap_it-0.1.1 upstream/bootstrap/3.0.3/src/less/code.less