mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 01:07:21 +00:00
Added saving code blocks of every programming language (#1117)
This commit is contained in:
1 parent
1a23479f33
commit
03abd78a5f
25 files changed
+1209
-65
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user