summaryrefslogtreecommitdiff
path: root/sysret.org/themes/tabi-lean/sass/parts/_zola-error.scss
blob: 3bdbcbc629271d046202667463665326cb382655 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Styles Zola error messages. See https://github.com/welpo/tabi/pull/359
body > div:last-child > div:last-child[style]:not([class]):not([id]) {
    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[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[style]:not([class]):not([id]) > pre[style]:last-child {
    margin-block-end: 0;
    background-color: var(--admonition-danger-code);
    padding: 10px;
    overflow-x: auto;
}