Skip to content

Commit

Permalink
fix: code block caption background color
Browse files Browse the repository at this point in the history
  • Loading branch information
lepture committed Feb 3, 2024
1 parent 49520c8 commit cd0cade
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions docs/extensions/sphinx-togglebutton.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@ Usage
This title was made into a dropdown admonition by adding ``:class: dropdown`` to it.


.. admonition:: Benchmark
:class: dropdown

.. code-block:: python
:caption: bench.py
print("Hello, world!")
``toggle`` class
~~~~~~~~~~~~~~~~

Expand Down
2 changes: 1 addition & 1 deletion static/css/contents/syntax.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
:root {
--syntax-pre-bg: var(--accent-a2);
--syntax-cap-bg: var(--accent-3);
--syntax-cap-bg: var(--accent-a3);
--syntax-highlight-bg: var(--accent-a3);
--syntax-linenos-divider: var(--gray-a6);

Expand Down

0 comments on commit cd0cade

Please sign in to comment.