aboutsummaryrefslogtreecommitdiff
path: root/less/code.less
diff options
context:
space:
mode:
Diffstat (limited to 'less/code.less')
-rw-r--r--less/code.less30
1 files changed, 15 insertions, 15 deletions
diff --git a/less/code.less b/less/code.less
index 266a926e7..f1bc0a0cd 100644
--- a/less/code.less
+++ b/less/code.less
@@ -7,40 +7,40 @@
code,
pre {
padding: 0 3px 2px;
- #font > #family > .monospace;
- font-size: @baseFontSize - 2;
- color: @grayDark;
- .border-radius(3px);
+ font-family: @font-family-monospace;
+ font-size: (@font-size-base - 2);
+ color: @gray-dark;
+ border-radius: 4px;
}
// Inline code
code {
padding: 2px 4px;
- color: #d14;
- background-color: #f7f7f9;
- border: 1px solid #e1e1e8;
+ font-size: 90%;
+ color: #c7254e;
+ background-color: #f9f2f4;
white-space: nowrap;
}
// Blocks of code
pre {
display: block;
- padding: (@baseLineHeight - 1) / 2;
- margin: 0 0 @baseLineHeight / 2;
- font-size: @baseFontSize - 1; // 14px to 13px
- line-height: @baseLineHeight;
+ padding: ((@line-height-computed - 1) / 2);
+ margin: 0 0 (@line-height-computed / 2);
+ font-size: (@font-size-base - 1); // 14px to 13px
+ line-height: @line-height-base;
word-break: break-all;
word-wrap: break-word;
white-space: pre;
white-space: pre-wrap;
background-color: #f5f5f5;
- border: 1px solid #ccc; // fallback for IE7-8
+ border: 1px solid #ccc; // IE8 fallback
border: 1px solid rgba(0,0,0,.15);
- .border-radius(@baseBorderRadius);
+ border-radius: @border-radius-base;
// Make prettyprint styles more spaced out for readability
&.prettyprint {
- margin-bottom: @baseLineHeight;
+ margin-bottom: @line-height-computed;
}
// Account for some code outputs that place code tags in pre tags
@@ -58,4 +58,4 @@ pre {
.pre-scrollable {
max-height: 340px;
overflow-y: scroll;
-} \ No newline at end of file
+}