Highlight changed lines in code examples + other improvements

This commit is contained in:
Philipp Oppermann
2023-03-25 19:10:59 +01:00
parent dba81f6d1c
commit 3ff7f48257
2 changed files with 42 additions and 27 deletions

View File

@@ -270,6 +270,15 @@ pre code {
color: inherit;
background-color: transparent;
}
pre mark {
// make highlights take the full width
display: block;
// use the code color (instead of black)
color: inherit;
// override the background color (instead of black)
background-color: rgba(0, 255, 0, 0.1) !important;
}
.highlight {
margin-bottom: 1rem;
border-radius: 4px;