mirror of
https://github.com/TeachBooks/template.git
synced 2026-11-12 22:25:52 +00:00
small update 012.md
This commit is contained in:
parent
eb28a9f1de
commit
b4f919d50a
1 changed files with 3 additions and 3 deletions
|
|
@ -115,7 +115,7 @@ This content will be hidden until the reader clicks to reveal it.
|
|||
```
|
||||
````
|
||||
|
||||
11. The table below summarizes the classes that can be used together with the `admonition` and `dropdown`admonitions. Try customize admonitions yourself, using different classes from the table.
|
||||
11. The table below summarizes the classes that can be used together with the `admonition` and `dropdown` blocks. Try customize admonitions yourself, using different classes from the table.
|
||||
|
||||
|
||||
| Class name | Effect |
|
||||
|
|
@ -177,7 +177,7 @@ sphinx:
|
|||
.
|
||||
```
|
||||
|
||||
14. Once the installation is done, we can experiment with custom-coloured admonitions! Go ahead and look at the available [Sphinx Named Colours](https://teachbooks.io/manual/external/Sphinx-Named-Colors/README.html#admonitions), and pick a desired colour.
|
||||
14. Once the installation is done, we can experiment with custom-coloured admonitions! Go ahead and look at the available [CSS Named Colours](https://developer.mozilla.org/en-US/docs/Web/CSS/named-color), and pick a desired colour.
|
||||
|
||||
15. Once you have chosen a colour, coloured admonitions can be generated in two ways, depending on how you'd like to structure your content. The first method is by adding the name-colour via `:class:` to an existing `admonition` or `dropdown` type block, similar to what was done above. This can be done as follows:
|
||||
|
||||
|
|
@ -201,7 +201,7 @@ This is a green-styled custom admonition.
|
|||
```
|
||||
````
|
||||
|
||||
18. For the second method using named colour admonitions, a new class is also introduced: `show-bar`. This allows titleless admonitions, which forces printing of the title bar. Try this out using the code above with an omitted title, and this added class.
|
||||
18. For the second method using named colour admonitions, a new class is also introduced for titleless admonitions: `show-bar`. This forces printing of the title bar. If a title is given, the title will be printed too and adding the class `show-bar` is redundant. Try this out using the code above with an omitted title, and this added class.
|
||||
|
||||
19. For both methods, you can also combine classes here, for example, `:class: darkblue dropdown` to make it collapsible and coloured. Test this out, building on the above examples.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue