Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
rendered_markdown: Blur code content behind REPL and copy buttons.
Karl Stolley3a0621fb66a1
diff --git a/web/styles/rendered_markdown.css b/web/styles/rendered_markdown.cssindex e3fb5a614e5..49ea54dc3bb 100644--- a/web/styles/rendered_markdown.css+++ b/web/styles/rendered_markdown.css@@ -725,6 +725,24 @@padding: 0 4px;/* Invisible unless <pre> is hovered. */visibility: hidden;+ z-index: 0;++ &::after {+ content: " ";+ position: absolute;+ height: 100%;+ width: 100%;+ z-index: -1;+ /* Blur the background behind the button container */+ backdrop-filter: blur(5px);+ /* Use a radial gradient to avoid obvious hard edges+ to the blur. */+ mask-image: radial-gradient(+ farthest-corner,+ hsl(0deg 0% 0% / 100%),+ hsl(0deg 0% 0% / 50%)+ );+ }#clipboard_image {/* Zero out legacy negative margins */