0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-18 10:52:19 +01:00

Drop .pre-scrollable class

This commit is contained in:
Martijn Cuppens 2019-07-25 18:03:45 +02:00
parent 1c05c1dbf1
commit 97e9214edd
3 changed files with 1 additions and 8 deletions

View File

@ -38,9 +38,3 @@ pre {
word-break: normal;
}
}
// Enable scrollable blocks of code
.pre-scrollable {
max-height: $pre-scrollable-max-height;
overflow-y: scroll;
}

View File

@ -1106,4 +1106,3 @@ $kbd-color: $white !default;
$kbd-bg: $gray-900 !default;
$pre-color: null !default;
$pre-scrollable-max-height: 340px !default;

View File

@ -16,7 +16,7 @@ For example, <code>&lt;section&gt;</code> should be wrapped as inline.
## 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 >}}
<pre><code>&lt;p&gt;Sample text here...&lt;/p&gt;