Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
rendered-markdown: Move inline code CSS reset rules.
Lauryn Menard2d8283e5792a
diff --git a/web/styles/dark_theme.css b/web/styles/dark_theme.cssindex 026277a227c..90a19ac53f9 100644--- a/web/styles/dark_theme.css+++ b/web/styles/dark_theme.css@@ -19,6 +19,10 @@a:hover {color: hsl(200, 79%, 66%);++ code {+ color: hsl(200, 79%, 66%);+ }}ul.filters a:hover {diff --git a/web/styles/rendered_markdown.css b/web/styles/rendered_markdown.cssindex fa00aed0b06..25ec23ab4bb 100644--- a/web/styles/rendered_markdown.css+++ b/web/styles/rendered_markdown.css@@ -524,10 +524,18 @@color: hsl(200, 100%, 40%);text-decoration: none;+ code {+ color: hsl(200, 100%, 40%);+ }+&:hover,&:focus {color: hsl(200, 100%, 25%);text-decoration: underline;++ code {+ color: hsl(200, 100%, 25%);+ }}}@@ -547,6 +555,21 @@border: 0;}+ code {+ /* 11.55px when body is the default 14px; this is chosen to be+ slightly above the 11.5px threshold where the height jumps by a+ pixel on most platforms. */+ font-size: 0.825em;+ unicode-bidi: embed;+ direction: ltr;+ color: hsl(0, 0%, 0%);+ white-space: pre-wrap;+ padding: 0 4px;+ background-color: hsl(0, 0%, 100%);+ border: 1px solid hsl(240, 13%, 90%);+ border-radius: 3px;+ }+/* Style copy-to-clipboard button inside code blocks */.copy_codeblock {visibility: hidden;@@ -624,27 +647,6 @@ TODO: It is likely that this CSS can and should be moved into therendered_markdown block; we just need to do further analysis toconfirm doing so won't break anything. */-code {- /* 11.55px when body is the default 14px; this is chosen to be- slightly above the 11.5px threshold where the height jumps by a- pixel on most platforms. */- font-size: 0.825em;- unicode-bidi: embed;- direction: ltr;- color: hsl(0, 0%, 0%);- white-space: pre;- padding: 2px 4px;- background-color: hsl(240, 14%, 97%);- border: 1px solid hsl(240, 13%, 90%);- border-radius: 3px;-}--.rendered_markdown code {- white-space: pre-wrap;- padding: 0 4px;- background-color: hsl(0, 0%, 100%);-}-.codehilite {display: block !important;border: none !important;@@ -688,16 +690,6 @@ pre {}}-/* Style inline code inside a link- to look more like a normal link */-a code {- color: hsl(200, 100%, 40%);-}--a:hover code {- color: hsl(200, 100%, 25%);-}-/* Search highlight used in both topics and rendered_markdown */.highlight {background-color: hsl(51, 94%, 74%);