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.

rendered_markdown: Correct presentation of nested lists.

Karl Stolley74b0d8ff6143
diff --git a/web/styles/rendered_markdown.css b/web/styles/rendered_markdown.css
index 95323a43522..0205051caf3 100644
--- a/web/styles/rendered_markdown.css
+++ b/web/styles/rendered_markdown.css
@@ -39,14 +39,14 @@
}
}
- li {
+ & > li {
/* This aligns bullets to roughly the
center of a single-digit counter.
11.2px at 16px/1em */
padding-inline-start: 0.7em;
}
- & li::marker {
+ & > li::marker {
/* This is an eyeballed value, but it makes the
otherwise diminutive markers specified above
both larger *and* better vertically centered. */
@@ -71,13 +71,13 @@
same here to offset the counters. */
padding-inline-start: 2.1ch;
- & li {
+ & > li {
counter-increment: count 1;
/* 3.2px at 16px/1em */
padding-inline-start: 0.2em;
}
- & li::marker {
+ & > li::marker {
content: counter(count, decimal) ". ";
}
}