Compare commits

...

2 Commits

Author SHA1 Message Date
ilia d439e81236 Merge pull request 'fix: ul styles for rich text' (#9) from fixes/visuals into main
Build and push / build (push) Successful in 4m37s
Reviewed-on: #9
2026-05-26 12:40:28 +00:00
Ilia Mashkov 615f4afc2d fix: ul styles for rich text 2026-05-26 15:36:29 +03:00
+6 -5
View File
@@ -316,15 +316,12 @@
.rich-text ul { .rich-text ul {
list-style: none; list-style: none;
padding-left: 0; padding-left: 1.5em;
margin: 1em 0; margin: 1em 0;
} }
.rich-text ul li { .rich-text ul li {
display: grid; text-indent: -1.5em;
grid-template-columns: auto 1fr;
gap: 0.65em;
align-items: start;
margin-top: 0.5em; margin-top: 0.5em;
} }
@@ -334,6 +331,10 @@
.rich-text ul li::before { .rich-text ul li::before {
content: "◆"; content: "◆";
display: inline-block;
width: calc(1.5em / 0.55);
/* reset inherited text-indent so glyph isn't shifted inside the ::before box */
text-indent: 0;
color: var(--blue); color: var(--blue);
font-size: 0.55em; font-size: 0.55em;
/* line-height matches parent so diamond centers within the first line box */ /* line-height matches parent so diamond centers within the first line box */