2 // Code (inline and block)
3 // --------------------------------------------------
6 // Inline and block code styles
11 font-family: @font-family-monospace;
19 background-color: @code-bg;
21 border-radius: @border-radius-base;
24 // User input typically entered via keyboard
29 background-color: @kbd-bg;
30 border-radius: @border-radius-small;
31 box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);
37 padding: ((@line-height-computed - 1) / 2);
38 margin: 0 0 (@line-height-computed / 2);
39 font-size: (@font-size-base - 1); // 14px to 13px
40 line-height: @line-height-base;
41 word-break: break-all;
42 word-wrap: break-word;
44 background-color: @pre-bg;
45 border: 1px solid @pre-border-color;
46 border-radius: @border-radius-base;
48 // Account for some code outputs that place code tags in pre tags
53 white-space: pre-wrap;
54 background-color: transparent;
59 // Enable scrollable blocks of code
61 max-height: @pre-scrollable-max-height;