Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

css: Display copy_codeblock button during hover only.

Sumanth V Raod9c418124372
diff --git a/static/styles/rendered_markdown.scss b/static/styles/rendered_markdown.scss
index ddad81a9c6c..ca88d397a33 100644
--- a/static/styles/rendered_markdown.scss
+++ b/static/styles/rendered_markdown.scss
@@ -445,9 +445,17 @@
border: none;
}
+ pre {
+ &:hover .copy_codeblock,
+ &:focus-within .copy_codeblock {
+ visibility: visible;
+ }
+ }
+
/* TODO: Consolidate with .copy_message */
/* Style copy-to-clipboard button inside codeblocks */
.copy_codeblock {
+ visibility: hidden;
outline-color: hsl(0, 0%, 73%);
height: 18px;
width: 10px;