// // Code (inline and blocK) // -------------------------------------------------- // Inline and block code styles code, pre { @include font-family-monospace(); font-size: $baseFontSize - 2; background-color: $codeTagBackground; color: $textColor; border: 1px solid darken($codeTagBackground, 15%); padding: 2px; } // Inline code code { color: #d14; background-color: #f7f7f9; border: 1px solid #e1e1e8; white-space: nowrap; } // Blocks of code pre { display: block; margin: 0 0 $baseLineHeight / 2; font-size: $baseFontSize - 1; // 14px to 13px line-height: $baseLineHeight; word-break: break-all; word-wrap: break-word; white-space: pre; white-space: pre-wrap; background-color: #f5f5f5; // Make prettyprint styles more spaced out for readability &.prettyprint { margin-bottom: $baseLineHeight; } // Account for some code outputs that place code tags in pre tags code { padding: 0; color: inherit; white-space: pre; white-space: pre-wrap; background-color: transparent; border: 0; } }