From beebd7e676d1538891fef4ead30f79d866fe78c2 Mon Sep 17 00:00:00 2001 From: Pradyun Gedam Date: Sat, 15 Jul 2023 09:52:51 +0100 Subject: [PATCH] Increase the specificity of the admonition title selector This makes it look correct in a table. --- docs/kitchen-sink/tables.rst | 4 ++++ src/furo/assets/styles/content/_admonitions.sass | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/kitchen-sink/tables.rst b/docs/kitchen-sink/tables.rst index 6c2b91b60..dda229e63 100644 --- a/docs/kitchen-sink/tables.rst +++ b/docs/kitchen-sink/tables.rst @@ -64,6 +64,10 @@ Pradyun's pip fork and installer .. code-block:: bash pip install "pip @ git+https://github.com/pradyunsg/pip#20.3.3" "installer @ git+https://github.com/pradyunsg/installer" + .. note:: + + This is only reasonable if you're Pradyun. + PyPI .. code-block:: bash pip install pip installer diff --git a/src/furo/assets/styles/content/_admonitions.sass b/src/furo/assets/styles/content/_admonitions.sass index 62e83f546..5434411ee 100644 --- a/src/furo/assets/styles/content/_admonitions.sass +++ b/src/furo/assets/styles/content/_admonitions.sass @@ -22,7 +22,8 @@ > :last-child margin-bottom: 0 -p.admonition-title, p.topic-title +.admonition p.admonition-title, +p.topic-title position: relative margin: 0 -0.5rem 0.5rem padding-left: 2rem