Revert "Fix code scrolling due to line numbers"
This reverts commit eb4c4330f7
.
This commit is contained in:
parent
98a4ebf2e3
commit
ff18f62c78
2 changed files with 2 additions and 19 deletions
|
@ -1,9 +1,3 @@
|
||||||
:root {
|
|
||||||
--linenos-width: 55px;
|
|
||||||
--code-border-width: 1px;
|
|
||||||
--pre-padding-horizontal: 1.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.codehilitetable td {
|
.codehilitetable td {
|
||||||
border: none;
|
border: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
@ -11,9 +5,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.codehilitetable .linenos {
|
.codehilitetable .linenos {
|
||||||
width: var(--linenos-width);
|
max-width: 20px;
|
||||||
min-width: var(--linenos-width);
|
|
||||||
max-width: var(--linenos-width);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.codehilitetable .linenos pre {
|
.codehilitetable .linenos pre {
|
||||||
|
@ -21,8 +13,6 @@
|
||||||
border-top-right-radius: 0;
|
border-top-right-radius: 0;
|
||||||
border-bottom-right-radius: 0;
|
border-bottom-right-radius: 0;
|
||||||
padding-right: 0;
|
padding-right: 0;
|
||||||
margin-bottom: 0;
|
|
||||||
overflow-x: scroll;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.codehilitetable .code pre {
|
.codehilitetable .code pre {
|
||||||
|
@ -30,7 +20,4 @@
|
||||||
border-top-left-radius: 0;
|
border-top-left-radius: 0;
|
||||||
border-bottom-left-radius: 0;
|
border-bottom-left-radius: 0;
|
||||||
padding-left: .1rem;
|
padding-left: .1rem;
|
||||||
margin-bottom: 0;
|
|
||||||
width: calc(var(--body-width) - var(--linenos-width) - 2 * var(--code-border-width) - var(--pre-padding-horizontal));
|
|
||||||
overflow-x: scroll;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
:root {
|
|
||||||
--body-width: 750px;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
body {
|
||||||
/* Overriding so that it doesn't change even when updating the library. */
|
/* Overriding so that it doesn't change even when updating the library. */
|
||||||
max-width: var(--body-width);
|
max-width: 750px;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1, h2, h3 {
|
h1, h2, h3 {
|
||||||
|
|
Reference in a new issue