Improve paddings for code blocks line numbers

This commit is contained in:
Guillaume Gomez 2024-09-20 15:20:39 +02:00
parent 660210c4af
commit 38bf2894fe

View File

@ -831,10 +831,14 @@ both the code example and the line numbers, so we need to remove the radius in t
-webkit-user-select: none;
user-select: none;
padding: 14px 8px;
padding-right: 2px;
color: var(--src-line-numbers-span-color);
}
.rustdoc .scraped-example .src-line-numbers {
.rustdoc .scraped-example .example-wrap .src-line-numbers {
padding: 0;
}
.rustdoc .src-line-numbers pre {
padding: 14px 0;
}
.src-line-numbers a, .src-line-numbers span {
@ -893,7 +897,7 @@ both the code example and the line numbers, so we need to remove the radius in t
}
.docblock code, .docblock-short code,
pre, .rustdoc.src .example-wrap {
pre, .rustdoc.src .example-wrap, .example-wrap .src-line-numbers {
background-color: var(--code-block-background-color);
}