-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
💄 style(error): enhance visibility of Zola errors
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Styles Zola error messages. See https://github.com/welpo/tabi/pull/359 | ||
body > div:last-child > div:last-child { | ||
position: fixed; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
z-index: 9999; | ||
box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px; | ||
border: 2px solid var(--admonition-danger-border); | ||
border-radius: 5px; | ||
background-color: var(--admonition-danger-bg); | ||
padding: 15px; | ||
width: fit-content; | ||
max-width: 80%; | ||
} | ||
|
||
body > div:last-child > div:last-child p { | ||
margin: 0; | ||
color: var(--admonition-danger-border); | ||
font-weight: bold; | ||
} | ||
|
||
body > div:last-child > div:last-child pre { | ||
margin-bottom: 0; | ||
background-color: var(--admonition-danger-code); | ||
padding: 10px; | ||
overflow-x: auto; | ||
} |