increase selector specificity for Zola errors

This commit is contained in:
welpo 2024-07-24 19:56:52 +02:00
parent 5bc4f348a8
commit fff8e65798
No known key found for this signature in database
GPG key ID: A2F978CF4EC1F5A6

View file

@ -1,5 +1,5 @@
// Styles Zola error messages. See https://github.com/welpo/tabi/pull/359 // 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; position: fixed;
top: 50%; top: 50%;
left: 50%; left: 50%;
@ -14,13 +14,13 @@ body > div:last-child > div:last-child {
max-width: 80%; 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; margin: 0;
color: var(--admonition-danger-border); color: var(--admonition-danger-border);
font-weight: bold; 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; margin-bottom: 0;
background-color: var(--admonition-danger-code); background-color: var(--admonition-danger-code);
padding: 10px; padding: 10px;