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.

help: Restore scroll target styling.

Anders Kaseorg6d5a25170ae1
diff --git a/web/styles/portico/portico.css b/web/styles/portico/portico.css
index da270c5aea4..06b3a5c769c 100644
--- a/web/styles/portico/portico.css
+++ b/web/styles/portico/portico.css
@@ -258,13 +258,13 @@ html {
}
/* Highlight the headings as well as the first child
of any targeted div, as in the API documentation. */
- & h1.scroll-target,
- & h2.scroll-target,
- & h3.scroll-target,
- & h4.scroll-target,
- & h5.scroll-target,
- & h6.scroll-target,
- & div.scroll-target > :first-child {
+ & h1:target,
+ & h2:target,
+ & h3:target,
+ & h4:target,
+ & h5:target,
+ & h6:target,
+ & div:target > :first-child {
/* Increase the highlighted space around the text... */
padding: 6px 8px;
border-radius: 7px 7px 0 0;