aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-08-11 17:23:19 -0700
committerMark Otto <[email protected]>2013-08-11 17:23:19 -0700
commit8b76e0d0f0c5679f12935c4a3dad98917636702b (patch)
tree909425fb2a2fa910e7f7ac8a93f1aa1cd36814f0
parent83c236f5705822882e094d08e0bfa193d4e9f4ae (diff)
downloadbootstrap-8b76e0d0f0c5679f12935c4a3dad98917636702b.tar.xz
bootstrap-8b76e0d0f0c5679f12935c4a3dad98917636702b.zip
addressing #9189 manually, part 1: code and pre vars
-rw-r--r--less/code.less6
-rw-r--r--less/variables.less2
2 files changed, 5 insertions, 3 deletions
diff --git a/less/code.less b/less/code.less
index cd6132560..74a3a7a39 100644
--- a/less/code.less
+++ b/less/code.less
@@ -16,7 +16,7 @@ code {
color: @code-color;
background-color: @code-bg;
white-space: nowrap;
- border-radius: 4px;
+ border-radius: @border-radius-base;
}
// Blocks of code
@@ -28,7 +28,7 @@ pre {
line-height: @line-height-base;
word-break: break-all;
word-wrap: break-word;
- color: @gray-dark;
+ color: @pre-color;
background-color: @pre-bg;
border: 1px solid @pre-border-color;
border-radius: @border-radius-base;
@@ -50,6 +50,6 @@ pre {
// Enable scrollable blocks of code
.pre-scrollable {
- max-height: 340px;
+ max-height: @pre-scrollable-max-height;
overflow-y: scroll;
}
diff --git a/less/variables.less b/less/variables.less
index 012f486b1..991e6587c 100644
--- a/less/variables.less
+++ b/less/variables.less
@@ -557,7 +557,9 @@
@code-bg: #f9f2f4;
@pre-bg: #f5f5f5;
+@pre-color: @gray-dark;
@pre-border-color: #ccc;
+@pre-scrollable-max-height: 340px;
// Type
// ------------------------