Skip to content

Commit

Permalink
style lists in Mkdown
Browse files Browse the repository at this point in the history
  • Loading branch information
aloxe committed Dec 20, 2024
1 parent 982ce7f commit 2ebb3da
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
13 changes: 11 additions & 2 deletions src/_assets/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,19 @@
.mkdn h3 {
@apply my-4 text-left text-xl font-bold leading-normal text-blue-950
}
.mkdn p {
.mkdn p, .mkdn ul, .mkdn ol {
@apply my-4 text-xl font-light leading-6 text-slate-900
}
.mkdn code, .mkdn ul, .mkdn ol {
.mkdn ul {
@apply list-disc list-inside
}
.mkdn ol {
@apply list-decimal list-inside
}
.mkdn li {
@apply ml-8 mb-2
}
.mkdn code {
@apply text-xl
}
.mkdn a {
Expand Down
8 changes: 5 additions & 3 deletions src/pages/documentation/images.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ The makrdown example above shows you how to add this class to an image in markdo
## Images in CMS

This starter comes with a [simple CMS](../cms/) that allows you to add, remove and update pages and media. Images in Svetlia CMS can be added in two ways:
- in a dedicated media folder making all images available in all pages
- in the folder of the current page where images are not reusable in other pages

- in a dedicated media folder
*(All images are available for all pages)*
- in the folder of the current page
*(Images are not reusable in other pages)*

Because the CMS uses Markdown and that images in Markdown are automaticaly converted in responsive pictures, there is nothing else to do other than organise well your images and never forget the alt text.

0 comments on commit 2ebb3da

Please sign in to comment.