mirror of
https://github.com/thangisme/notes.git
synced 2024-12-23 00:16:39 -05:00
59f757a790
Resolve #420 - Remove `margin-top` for the first child in various list items, to improve alignment. - Add examples of lists to `docs/tests/styling`.
66 lines
1.4 KiB
Markdown
66 lines
1.4 KiB
Markdown
---
|
|
layout: default
|
|
title: Unordered lists
|
|
parent: Styling
|
|
grand_parent: Tests
|
|
---
|
|
|
|
# Unordered lists
|
|
|
|
The first child element of each `li` element in a `ul` list should be aligned with the preceding bullet in the following examples.
|
|
|
|
- paragraph text
|
|
|
|
paragraph text
|
|
|
|
- ### Header
|
|
|
|
paragraph text
|
|
|
|
- > block quote
|
|
|
|
paragraph text
|
|
|
|
- ```sh
|
|
fenced code block
|
|
```
|
|
|
|
paragraph text
|
|
|
|
- + unordered list item
|
|
+ unordered list item
|
|
|
|
paragraph text
|
|
|
|
- 1. ordered list item
|
|
2. ordered list item
|
|
|
|
paragraph text
|
|
|
|
- term
|
|
: description
|
|
|
|
term
|
|
: description
|
|
|
|
paragraph text
|
|
|
|
- |-----------------+------------+-----------------+----------------|
|
|
| Default aligned |Left aligned| Center aligned | Right aligned |
|
|
|-----------------|:-----------|:---------------:|---------------:|
|
|
| First body part |Second cell | Third cell | fourth cell |
|
|
| Second line |foo | **strong** | baz |
|
|
| Third line |quux | baz | bar |
|
|
|-----------------+------------+-----------------+----------------|
|
|
| Second body | | | |
|
|
| 2 line | | | |
|
|
|=================+============+=================+================|
|
|
| Footer row | | | |
|
|
|-----------------+------------+-----------------+----------------|
|
|
|
|
paragraph text
|
|
|
|
- ***
|
|
|
|
paragraph text
|