Skip to content

Build your personal knowledge base with Trilium Notes

Tweak the language badge of code blocks

Adorian Doran36fde2b03dbc
diff --git a/src/public/stylesheets/style.css b/src/public/stylesheets/style.css
index d3252c2115..4d012f0c37 100644
--- a/src/public/stylesheets/style.css
+++ b/src/public/stylesheets/style.css
@@ -814,6 +814,15 @@ a.external:not(.no-arrow):after, a[href^="http://"]:not(.no-arrow):after, a[href
padding: 0 !important;
}
+.ck.ck-editor__editable pre[data-language]::after {
+ --ck-color-code-block-label-background: rgba(128, 128, 128, .5);
+ border-radius: 0 0 5px 5px;
+ padding: 2px 10px;
+ letter-spacing: .5px;
+ font-weight: bold;
+}
+
+
.ck-content pre code {
display: block;
padding: 1em;