Add filename option to codeblocks

This commit is contained in:
Alex Shpak
2025-09-14 23:49:47 +02:00
parent 6c2d102c91
commit 2745893250
3 changed files with 29 additions and 2 deletions
+19
View File
@@ -260,4 +260,23 @@
font-size: 3em;
}
}
.book-codeblock-filename {
background: var(--gray-200);
font-size: $font-size-14;
margin-top: $padding-16;
padding: $padding-4 $padding-16;
border-start-start-radius: $border-radius;
border-start-end-radius: $border-radius;
a {
color: var(--body-font-color);
}
+ .highlight pre {
margin-top: 0;
border-start-start-radius: 0;
border-start-end-radius: 0;
}
}
}