From b4f919d50ad20e289bdabf2f0c175decfb8cbebd Mon Sep 17 00:00:00 2001 From: Katia Gatt Date: Sun, 13 Apr 2025 17:47:26 +0200 Subject: [PATCH] small update 012.md --- book/syntax_exercises/012.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/book/syntax_exercises/012.md b/book/syntax_exercises/012.md index 59b195d..2a11345 100644 --- a/book/syntax_exercises/012.md +++ b/book/syntax_exercises/012.md @@ -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.