pastebin line offset fix

This commit is contained in:
spitkov 2024-09-16 14:21:48 +02:00
parent 7f5c9202bb
commit de1b826928

View File

@ -43,7 +43,7 @@
padding: 20px; padding: 20px;
} }
h1 { h1, h2 {
margin-bottom: 20px; margin-bottom: 20px;
} }
@ -72,6 +72,31 @@
border-radius: 4px; border-radius: 4px;
padding: 1em; padding: 1em;
overflow: auto; overflow: auto;
position: relative;
}
.highlight pre {
color: var(--text-color);
white-space: pre;
word-wrap: normal;
overflow-x: auto;
margin: 0;
padding: 0;
}
.highlight .linenos {
color: #999;
text-align: right;
padding-right: 10px;
border-right: 1px solid var(--highlight-border);
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.highlight .code {
padding-left: 10px;
} }
#theme-toggle { #theme-toggle {
@ -89,12 +114,6 @@
text-decoration: underline; text-decoration: underline;
} }
.highlight pre {
color: var(--text-color);
white-space: pre-wrap;
word-wrap: break-word;
}
.btn-container { .btn-container {
display: flex; display: flex;
gap: 10px; gap: 10px;