Skip to content

Commit

Permalink
Drop .pre-scrollable class
Browse files Browse the repository at this point in the history
  • Loading branch information
MartijnCuppens committed Jul 25, 2019
1 parent 1c05c1d commit 771173d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
6 changes: 0 additions & 6 deletions scss/_code.scss
Expand Up @@ -38,9 +38,3 @@ pre {
word-break: normal;
}
}

// Enable scrollable blocks of code
.pre-scrollable {
max-height: $pre-scrollable-max-height;
overflow-y: scroll;
}
1 change: 0 additions & 1 deletion scss/_variables.scss
Expand Up @@ -1106,4 +1106,3 @@ $kbd-color: $white !default;
$kbd-bg: $gray-900 !default;

$pre-color: null !default;
$pre-scrollable-max-height: 340px !default;
2 changes: 1 addition & 1 deletion site/content/docs/4.3/content/code.md
Expand Up @@ -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;
Expand Down

0 comments on commit 771173d

Please sign in to comment.