Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
css: Add styling for copy_codeblock button.
Sumanth V Rao9e5f79413315
diff --git a/static/styles/rendered_markdown.scss b/static/styles/rendered_markdown.scssindex 282215243b3..0be5887a788 100644--- a/static/styles/rendered_markdown.scss+++ b/static/styles/rendered_markdown.scss@@ -444,6 +444,29 @@padding: 5px;border: none;}++ /* TODO: Consolidate with .copy_message */+ /* Style copy-to-clipboard button inside codeblocks */+ .copy_codeblock {+ outline-color: hsl(0, 0%, 73%);+ height: 18px;+ width: 10px;+ padding: 6px 6px;+ /* Having absolute positioning here ensures that the element+ doesn't scroll along with the code div in narrow windows */+ position: absolute;+ right: 0;+ margin-top: -6px;+ display: block;+ /* The below two avoids the padded element from displaying+ it's own border and background color */+ border: none;+ background-clip: content-box;+ }++ .copy_codeblock:hover svg path {+ fill: hsl(200, 100%, 40%);+ }}@media (max-width: 600px) {