addressing #9189 manually, part 1: code and pre vars
This commit is contained in:
parent
83c236f570
commit
8b76e0d0f0
|
@ -16,7 +16,7 @@ code {
|
||||||
color: @code-color;
|
color: @code-color;
|
||||||
background-color: @code-bg;
|
background-color: @code-bg;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
border-radius: 4px;
|
border-radius: @border-radius-base;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Blocks of code
|
// Blocks of code
|
||||||
|
@ -28,7 +28,7 @@ pre {
|
||||||
line-height: @line-height-base;
|
line-height: @line-height-base;
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
color: @gray-dark;
|
color: @pre-color;
|
||||||
background-color: @pre-bg;
|
background-color: @pre-bg;
|
||||||
border: 1px solid @pre-border-color;
|
border: 1px solid @pre-border-color;
|
||||||
border-radius: @border-radius-base;
|
border-radius: @border-radius-base;
|
||||||
|
@ -50,6 +50,6 @@ pre {
|
||||||
|
|
||||||
// Enable scrollable blocks of code
|
// Enable scrollable blocks of code
|
||||||
.pre-scrollable {
|
.pre-scrollable {
|
||||||
max-height: 340px;
|
max-height: @pre-scrollable-max-height;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
}
|
}
|
||||||
|
|
|
@ -557,7 +557,9 @@
|
||||||
@code-bg: #f9f2f4;
|
@code-bg: #f9f2f4;
|
||||||
|
|
||||||
@pre-bg: #f5f5f5;
|
@pre-bg: #f5f5f5;
|
||||||
|
@pre-color: @gray-dark;
|
||||||
@pre-border-color: #ccc;
|
@pre-border-color: #ccc;
|
||||||
|
@pre-scrollable-max-height: 340px;
|
||||||
|
|
||||||
// Type
|
// Type
|
||||||
// ------------------------
|
// ------------------------
|
||||||
|
|
Loading…
Reference in New Issue