unify padding of code blocks (#14590)

This commit is contained in:
Suzanne Aitchison 2021-08-25 16:24:31 +01:00 committed by GitHub
parent 37ae9ccf2e
commit b75af7b2aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,6 +23,11 @@ blockquote pre.highlight {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
overflow-wrap: initial;
padding: var(--su-2);
@media (min-width: $breakpoint-m) {
padding: var(--su-6);
}
code {
font-size: 100%;
@ -36,12 +41,6 @@ div.highlight {
// this a way to separate scroll of long code & icons in panel
.highlight {
overflow: auto;
padding: var(--su-2);
@media (min-width: $breakpoint-m) {
padding: var(--su-6);
}
}
}