mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-06 10:20:09 +02:00
fix(v2): remove auto wrap for code blocks (#2048)
This commit is contained in:
parent
91ef5c67cf
commit
10cd99b3e4
5 changed files with 107 additions and 88 deletions
|
@ -1,11 +1,3 @@
|
|||
.codeBlock {
|
||||
border-radius: 0;
|
||||
margin-bottom: 0;
|
||||
overflow: hidden;
|
||||
overflow-wrap: break-word;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
.codeBlockWrapper {
|
||||
position: relative;
|
||||
}
|
||||
|
@ -32,3 +24,18 @@
|
|||
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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue