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);
42 padding: ((@line-height-computed - 1) / 2);
43 margin: 0 0 (@line-height-computed / 2);
44 font-size: (@font-size-base - 1); // 14px to 13px
45 line-height: @line-height-base;
46 word-break: break-all;
47 word-wrap: break-word;
49 background-color: @pre-bg;
50 border: 1px solid @pre-border-color;
51 border-radius: @border-radius-base;
53 // Account for some code outputs that place code tags in pre tags
58 white-space: pre-wrap;
59 background-color: transparent;
64 // Enable scrollable blocks of code
66 max-height: @pre-scrollable-max-height;