Skip to content

Commit

Permalink
Style ul/ol in markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
plexus committed Sep 9, 2024
1 parent 5608f9c commit 9788e3a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
24 changes: 24 additions & 0 deletions resources/public/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,30 @@ body {
margin-top: var(--size-1);
}

ul {
padding-top: var(--size-2);
padding-bottom: var(--size-2);
}

ul li {
padding-top: var(--size-1);
padding-bottom: var(--size-1);
list-style-type: disc;
list-style-position: inside;
}

ol {
padding-top: var(--size-2);
padding-bottom: var(--size-2);
}

ol li {
padding-top: var(--size-1);
padding-bottom: var(--size-1);
list-style-type: decimal;
list-style-position: inside;
}

.graphics-compass_logo path {
fill: var(--hoc-pink);
}
Expand Down
3 changes: 3 additions & 0 deletions src/co/gaiwan/compass/css/styles.clj
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,7 @@
[:h4 {:margin-top t/--size-2
:margin-bottom t/--size-1}]
[:h5 {:margin-top t/--size-1}]]

[:ul :py-2 [:li :py-1 :list-disc :list-inside]]
[:ol :py-2 [:li :py-1 :list-decimal :list-inside]]
])

0 comments on commit 9788e3a

Please sign in to comment.