overhauling error page

This commit is contained in:
Kibi Kelburton 2022-05-21 11:30:23 +02:00
parent 2ab187c780
commit 314c476f8d
2 changed files with 60 additions and 25 deletions

View File

@ -279,6 +279,11 @@ html[theme="paper"] {
--img-border-color: #363636;
}
html[theme="paper"] .err {
background: black;
color: white;
}
html[theme="paper"] ._204863 {
color: white;
}
@ -756,7 +761,8 @@ html[theme="f0ck95"] .err span {
}
html[theme="f0ck95"] .err {
background: #3f9595;
background: silver;
border: outset 2px gray;
}
html[theme="f0ck95"] div.posts > a::after {
@ -866,7 +872,7 @@ html[theme='f0ck95d'] {
--gray: silver;
--nav-bg: #0b0a0a;
--nav-brand-border: inset 1px black;
--nav-brand-bg: #022544;
--nav-brand-bg: #4c4c4c;
--navigation-links-bg: #0b0b0b;
--navigation-links-background-linear-gradient: rgba(0,0,0,.12),rgba(0,0,0,0);
--navigation-links-border-color: rgba(0,0,0,.8) rgba(0,0,0,.65) rgba(0,0,0,.5);
@ -1012,20 +1018,16 @@ html[theme="f0ck95d"] .pagination > span {
}
html[theme="f0ck95d"] .dropdown-menu {
border-left: inset 1px silver;
border-bottom: outset 1px silver;
border-right: outset 1px silver;
border-top: outset 1px gray;
border-left: inset 1px #4c4c4c;
border-bottom: outset 1px #4c4c4c;
border-right: outset 1px #4c4c4c;
border-top: outset 0px #4c4c4c;
}
html[theme="f0ck95d"] .err span {
text-shadow: 0px 0px transparent;
}
html[theme="f0ck95d"] .err {
background: #3f9595;
}
html[theme="f0ck95d"] div.posts > a::after {
color: var(--white);
}
@ -2398,22 +2400,45 @@ a[data-mime^="audio"] {
}
/* err page */
.err {
display: grid;
grid-template-rows: auto 1fr;
grid-template-columns: 1fr auto;
margin: 50px;
box-shadow: 5px 5px 5px black;
border-radius: .45rem;
background: #bb880b;
._error_wrapper {
display: flex;
justify-content: center;
}
.err span {
.err {
display: grid;
grid-template-rows: auto;
grid-template-columns: auto;
margin: 50px;
background: #bb880b;
max-width: 100%;
width: 500px;
}
._error_topbar {
border-bottom: inset 2px gray;
text-align: left;
padding-left: 10px;
}
._error_content {
display: grid;
grid-template-columns: auto 1fr;
}
._error_message {
display: grid;
grid-template-columns: auto;
grid-template-rows: auto 1fr;
margin: 5px;
padding: 5px;
text-shadow: 1px 1px black;
}
.err code {
font-weight: bold;
text-align: left;
align-self: center;
margin: 35px;
text-shadow: 1px 1px black;
align-self: baseline;
font-size: 15px;
}

View File

@ -1,8 +1,18 @@
@include(snippets/header)
<div class="container">
<div class="err">
<span>{{ message }}</span>
<img src="/s/img/favicon.gif" alt="f0ck?!">
<div class="_error_wrapper">
<div class="err">
<div class="_error_topbar">
<span>x.x</span>
</div>
<div class="_error_content">
<img src="/s/img/favicon.gif" alt="f0ck?!">
<div class="_error_message">
<span>Error</span>
<code>{{ message }}</code>
</div>
</div>
</div>
</div>
</div>
@include(snippets/footer)