Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions style_aplus/css.rst
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,17 @@ be copied to ``_static`` before recompiling the course! For faster CSS design,
one might want to try the `Firefox Developer Edition
<https://www.mozilla.org/en-US/firefox/developer/>`_ which has a builtin
CSS editor.

CSS styles for dark theme
-------------------------

To add dark theme specific custom CSS styles, you can use the attribute selector ``[data-bs-theme=dark]``. For example:

.. code-block:: css

[data-bs-theme=dark] h2 {
color: white;
}

You should consider using this whenever you change colours with your custom CSS or add new elements to your course which
might conflict with the dark theme.