💄 style: hide horizontal scrollbar in codeblocks

main
welpo 2 years ago
parent 33cfe77344
commit d7b01914f8
No known key found for this signature in database
GPG Key ID: A2F978CF4EC1F5A6

@ -43,7 +43,6 @@ pre {
line-height: 1.4;
overflow-x: auto;
padding: 2rem 1rem 1rem;
-webkit-overflow-scrolling: touch;
border-radius: 5px;
code {
@ -54,7 +53,16 @@ pre {
color: inherit;
padding: 0rem;
border: 0rem;
overflow-x: auto;
border-radius: 5px;
-webkit-overflow-scrolling: touch;
// Hide horizontal scrollbar
scrollbar-width: none;
-ms-overflow-style: none;
&::-webkit-scrollbar {
display: none;
}
&::before {
content: attr(data-lang);
@ -72,10 +80,6 @@ pre {
top: 0;
left: 0;
}
&[class*="language-"] {
-webkit-overflow-scrolling: touch;
}
}
}

Loading…
Cancel
Save