From fff8e65798669da576a3f098ac8ee205ae817f33 Mon Sep 17 00:00:00 2001 From: welpo Date: Wed, 24 Jul 2024 19:56:52 +0200 Subject: [PATCH] increase selector specificity for Zola errors --- sass/parts/_zola-error.scss | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sass/parts/_zola-error.scss b/sass/parts/_zola-error.scss index 700cff5d9..c64cea7b9 100644 --- a/sass/parts/_zola-error.scss +++ b/sass/parts/_zola-error.scss @@ -1,5 +1,5 @@ // Styles Zola error messages. See https://github.com/welpo/tabi/pull/359 -body > div:last-child > div:last-child { +body > div:last-child > div:last-child[style]:not([class]):not([id]) { position: fixed; top: 50%; left: 50%; @@ -14,13 +14,13 @@ body > div:last-child > div:last-child { max-width: 80%; } -body > div:last-child > div:last-child p { +body > div:last-child > div:last-child[style]:not([class]):not([id]) > p[style]:first-child { margin: 0; color: var(--admonition-danger-border); font-weight: bold; } -body > div:last-child > div:last-child pre { +body > div:last-child > div:last-child[style]:not([class]):not([id]) > pre[style]:last-child { margin-bottom: 0; background-color: var(--admonition-danger-code); padding: 10px;