From b7c65cfdeef1b3a5bfe902b12c9a453fbf667a5b Mon Sep 17 00:00:00 2001 From: Angus Hollands Date: Thu, 1 Aug 2024 14:27:23 +0100 Subject: [PATCH] feat: tighten selector --- styles/sphinx.css | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/styles/sphinx.css b/styles/sphinx.css index acc9080c..cf1c13fa 100644 --- a/styles/sphinx.css +++ b/styles/sphinx.css @@ -30,27 +30,27 @@ } /* .sphinx-desc > .sphinx-desc-signature */ -dl > dt:has([class*='sphinx']) { +dl > dt:has([class^='sphinx-']) { @apply font-mono font-light; } /* .sphinx-desc > .sphinx-desc-signature */ -dl > dt:has([class*='sphinx']) > em { +dl > dt:has([class^='sphinx-']) > em { @apply whitespace-pre; } /* .sphinx-desc > .sphinx-desc-content > dl:not(:has(.sphinx-dex)) */ -dl:has(> dt > [class*='sphinx']) > dd > dl:not(:has(> dt > [class*='sphinx'])) { +dl:has(> dt > [class^='sphinx-']) > dd > dl:not(:has(> dt > [class^='sphinx-'])) { display: grid; grid-template-columns: fit-content(30%) auto; } /* .sphinx-desc > .sphinx-desc-content > dl:not(:has(.sphinx-dex)) > dd > p */ -dl:has(> dt > [class*='sphinx']) > dd > dl:not(:has(> dt > [class*='sphinx'])) > dd > p { +dl:has(> dt > [class^='sphinx-']) > dd > dl:not(:has(> dt > [class^='sphinx-'])) > dd > p { margin: unset !important; /* Undo some generic theming */ } /* .sphinx-desc > .sphinx-desc-content > dl:not(:has(.sphinx-dex)) > *:is(dt, dd) */ -dl:has(> dt > [class*='sphinx']) > dd > dl:not(:has(> dt > [class*='sphinx'])) > *:is(dt, dd) { +dl:has(> dt > [class^='sphinx-']) > dd > dl:not(:has(> dt > [class^='sphinx-'])) > *:is(dt, dd) { margin: unset !important; /* Undo some generic theming */ }