Revert "fix(v2): remove auto wrap for code blocks (#2048)" (#2071)

This reverts commit 10cd99b3e4.
This commit is contained in:
Endi 2019-12-01 03:57:56 +07:00 committed by Yangshun Tay
parent 3caff0d221
commit 39e9e755c3
5 changed files with 88 additions and 107 deletions

View file

@ -4,6 +4,14 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
.codeBlock {
border-radius: 0;
margin-bottom: 0;
overflow: hidden;
overflow-wrap: break-word;
white-space: pre-wrap;
}
.codeBlockWrapper {
position: relative;
@ -31,18 +39,3 @@
transition: opacity 200ms ease-in-out, visibility 200ms ease-in-out,
bottom 200ms ease-in-out;
}
.codeBlock {
overflow: auto;
display: block;
padding: 0;
font-size: inherit;
}
.codeBlockLines {
border-radius: 0;
margin-bottom: 0;
float: left;
min-width: 100%;
padding: var(--ifm-pre-padding);
}