mirror-web/_src/styles/notfound.scss
2024-04-21 13:17:19 +08:00

96 lines
2.0 KiB
SCSS

@use "./utils.scss" as utils;
.not-found {
height: 600px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: relative;
}
.not-found-bg {
position: absolute;
left: 0;
right: 0;
bottom: 0;
top: 0;
z-index: -1;
background-repeat: no-repeat;
background-position: center;
@include utils.noissue {
opacity: 0.5;
filter: grayscale(0.2);
background-image: url(/static/img/missing.png);
background-image: -webkit-image-set(
url("/static/img/missing.png") 1x,
url("/static/img/missing@2x.png") 2x,
url("/static/img/missing@3x.png") 3x,
url("/static/img/missing@4x.png") 4x
);
background-image: image-set(
url("/static/img/missing.png") 1x,
url("/static/img/missing@2x.png") 2x,
url("/static/img/missing@3x.png") 3x,
url("/static/img/missing@4x.png") 4x
);
}
@include utils.dark {
opacity: 1;
filter: none;
background-image: url(/static/img/missing-dark.png);
background-image: -webkit-image-set(
url("/static/img/missing-dark.png") 1x,
url("/static/img/missing-dark@2x.png") 2x,
url("/static/img/missing-dark@3x.png") 3x,
url("/static/img/missing-dark@4x.png") 4x
);
background-image: image-set(
url("/static/img/missing-dark.png") 1x,
url("/static/img/missing-dark@2x.png") 2x,
url("/static/img/missing-dark@3x.png") 3x,
url("/static/img/missing-dark@4x.png") 4x
);
}
}
.nonthu .not-found-bg {
background-image: none;
}
.not-found-hint {
font-weight: bold;
font-size: 48px;
margin-bottom: 40px;
padding: 0 20px;
}
.not-found-link {
display: inline-block;
font-size: 18px;
margin: 0 20px;
}
.not-found-text {
max-width: 450px;
box-sizing: border-box;
padding: 0 40px;
margin-bottom: 80px;
font-size: 16px;
opacity: 0.7;
line-height: 24px;
}
.not-found-code {
font-size: 12px;
opacity: 0.54;
font-weight: normal;
font-style: italic;
}