2 // Code (inline and block)
3 // --------------------------------------------------
6 // Inline and block code styles
11 font-family: $font-family-monospace;
19 background-color: $code-bg;
20 border-radius: $border-radius-base;
23 // User input typically entered via keyboard
28 background-color: $kbd-bg;
29 border-radius: $border-radius-small;
30 box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);
43 padding: (($line-height-computed - 1) / 2);
44 margin: 0 0 ($line-height-computed / 2);
45 font-size: ($font-size-base - 1); // 14px to 13px
46 line-height: $line-height-base;
47 word-break: break-all;
48 word-wrap: break-word;
50 background-color: $pre-bg;
51 border: 1px solid $pre-border-color;
52 border-radius: $border-radius-base;
54 // Account for some code outputs that place code tags in pre tags
59 white-space: pre-wrap;
60 background-color: transparent;
65 // Enable scrollable blocks of code
67 max-height: $pre-scrollable-max-height;