Skip to content

Commit f1807f4

Browse files
remove margins on lists and reset line height to 160% (#10573)
* remove margins on lists and reset line height to 160% * Simplify list paragraph margin fix using :not(li) selector Replace the override rule with a narrower selector on the existing rule, fixing the root cause rather than patching over it with a compensating declaration. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent a20f48a commit f1807f4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ui/src/css/doc.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1415,7 +1415,7 @@
14151415

14161416

14171417
/* paragraphs, lists, tables, blockquotes all get 16px bottom spacing */
1418-
.doc p,
1418+
.doc :not(li) > p,
14191419
.doc blockquote,
14201420
.doc ul,
14211421
.doc ol,

ui/src/css/vars.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@
212212
--monospace-font-family: "IBM Plex Mono", monospace;
213213
--monospace-font-weight-bold: 600;
214214
--doc-font-size: 16px;
215-
--doc-line-height: 1.7;
215+
--doc-line-height: 1.6;
216216
--heading-font-weight: 500;
217217
--alt-heading-font-weight: 500;
218218
--toc-line-height: 1.2;

0 commit comments

Comments
 (0)