Skip to content

Commit

Permalink
increase selector specificity for Zola errors
Browse files Browse the repository at this point in the history
  • Loading branch information
welpo committed Jul 24, 2024
1 parent 5bc4f34 commit fff8e65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sass/parts/_zola-error.scss
Original file line number Diff line number Diff line change
@@ -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%;
Expand All @@ -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;
Expand Down

0 comments on commit fff8e65

Please sign in to comment.