Skip to content

Commit 3e399c7

Browse files
authored
Fix admonitions styling and spacing (#172)
Closes #164 Make sure fonts and spacing is consistent for all admonitions, and cleans up unnecessary definitions in the css source. Before: ![Captura de imagem_20240718_200025](https://github.com/user-attachments/assets/d5f5ce40-dd73-4317-bf25-ee380593e577) After: ![Captura de imagem_20240718_200040](https://github.com/user-attachments/assets/e63266f9-8f67-4b6e-ae9d-7ff91b6293e3) ![Captura de imagem_20240718_200009](https://github.com/user-attachments/assets/a00ea471-c89a-4216-ad0e-216aef61e420)
1 parent 48bc641 commit 3e399c7

File tree

2 files changed

+122
-282
lines changed

2 files changed

+122
-282
lines changed

docs/test1.rst

+68-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,71 @@
11
Test 1
22
======
33

4-
A bunch of words.
4+
A bunch of words.
5+
6+
.. note::
7+
8+
This is how an admonition with multiple paragraphs looks like.
9+
10+
It can include many words.
11+
12+
There is also some text between admonitions.
13+
14+
.. warning::
15+
16+
* How is the padding in this list?
17+
* Is it consistent?
18+
* Does it look good with other elements?
19+
20+
.. attention::
21+
22+
Keep track of spacing and margins in admonitions.
23+
24+
* This is how they look like;
25+
* Rely on upstream as much as possible.
26+
27+
And this is how an admonition with a title looks like:
28+
29+
.. admonition:: You can use titles!
30+
31+
Sometimes they are helpful.
32+
33+
Admonition colors
34+
-----------------
35+
36+
.. attention::
37+
38+
This is an attention admonition.
39+
40+
.. caution::
41+
42+
This is a caution admonition.
43+
44+
.. warning::
45+
46+
This is a warning admonition.
47+
48+
.. danger::
49+
50+
This is a danger admonition.
51+
52+
.. error::
53+
54+
This is an error admonition.
55+
56+
.. hint::
57+
58+
This is a hint admonition.
59+
60+
.. tip::
61+
62+
This is a tip admonition.
63+
64+
.. important::
65+
66+
This is an important admonition.
67+
68+
.. note::
69+
70+
This is a note admonition.
71+

0 commit comments

Comments
 (0)