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