Added saving code blocks of every programming language (#1117)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-10-27 15:23:42 +01:00
1 parent 1a23479f33
commit 03abd78a5f
25 files changed
+1209 -65

No files matched your search

+18
View File
@@ -171,6 +171,24 @@
margin-bottom:2em;
}
/* The actions of a code block, such as saving it, appear left of its copy button, which is 36px wide plus a margin of 8px */
.mud-markdown-body .code-block-with-actions {
position: relative;
}
.mud-markdown-body .code-block-actions {
position: absolute;
display: none;
top: 0;
right: 44px;
}
/* Both appear while the pointer is on the code block, and the copy button stays while it is on the actions, which are no part of the block */
.mud-markdown-body .code-block-with-actions:hover > .code-block-actions,
.mud-markdown-body .code-block-with-actions:hover .mud-markdown-code-highlight-copybtn {
display: block;
}
.justified-markdown .mud-markdown-body p,
.justified-markdown .mud-markdown-body li,
.justified-markdown .mud-markdown-body blockquote p {