mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-13 00:54:04 +02:00
Drop .pre-scrollable
class
This commit is contained in:
@@ -38,9 +38,3 @@ pre {
|
|||||||
word-break: normal;
|
word-break: normal;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Enable scrollable blocks of code
|
|
||||||
.pre-scrollable {
|
|
||||||
max-height: $pre-scrollable-max-height;
|
|
||||||
overflow-y: scroll;
|
|
||||||
}
|
|
||||||
|
@@ -1106,4 +1106,3 @@ $kbd-color: $white !default;
|
|||||||
$kbd-bg: $gray-900 !default;
|
$kbd-bg: $gray-900 !default;
|
||||||
|
|
||||||
$pre-color: null !default;
|
$pre-color: null !default;
|
||||||
$pre-scrollable-max-height: 340px !default;
|
|
||||||
|
@@ -16,7 +16,7 @@ For example, <code><section></code> should be wrapped as inline.
|
|||||||
|
|
||||||
## Code blocks
|
## Code blocks
|
||||||
|
|
||||||
Use `<pre>`s for multiple lines of code. Once again, be sure to escape any angle brackets in the code for proper rendering. You may optionally add the `.pre-scrollable` class, which will set a max-height of 340px and provide a y-axis scrollbar.
|
Use `<pre>`s for multiple lines of code. Once again, be sure to escape any angle brackets in the code for proper rendering.
|
||||||
|
|
||||||
{{< example >}}
|
{{< example >}}
|
||||||
<pre><code><p>Sample text here...</p>
|
<pre><code><p>Sample text here...</p>
|
||||||
|
Reference in New Issue
Block a user