326 lines
6.5 KiB
CSS
326 lines
6.5 KiB
CSS
:root {
|
|
--not-found-bg: #0f0f0f;
|
|
--not-found-panel: rgba(255, 255, 255, 0.05);
|
|
--not-found-line: rgba(255, 255, 255, 0.1);
|
|
--not-found-primary: #ec237f;
|
|
--not-found-secondary: rgba(255, 255, 255, 0.55);
|
|
}
|
|
|
|
.not-found-layout {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--not-found-bg);
|
|
}
|
|
|
|
.not-found-layout .site-header {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
body.site-shell.is-404-page {
|
|
min-width: 0;
|
|
padding-top: 0;
|
|
background: var(--not-found-bg);
|
|
}
|
|
|
|
body.is-404-page .h5-tabbar,
|
|
body.is-404-page .floating-action,
|
|
body.is-404-page .download-fab {
|
|
display: none !important;
|
|
}
|
|
|
|
.not-found-page {
|
|
width: 100%;
|
|
flex: 1 0 auto;
|
|
min-height: 0;
|
|
padding: 40px 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--not-found-bg);
|
|
box-sizing: border-box;
|
|
text-align: center;
|
|
}
|
|
|
|
.not-found-card {
|
|
width: min(596px, 100%);
|
|
max-width: 596px;
|
|
padding: 36px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 22px;
|
|
border-radius: 40px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.not-found-code {
|
|
color: var(--not-found-primary);
|
|
font-family: "PingFang SC", sans-serif;
|
|
font-size: 120px;
|
|
font-weight: 400;
|
|
line-height: 1.04;
|
|
}
|
|
|
|
.not-found-badge {
|
|
padding: 8px 14px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
overflow: hidden;
|
|
border-radius: 999px;
|
|
background: var(--not-found-primary);
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.not-found-badge-text {
|
|
color: #fff;
|
|
font-family: "PingFang SC", sans-serif;
|
|
font-size: 12px;
|
|
font-weight: 400;
|
|
line-height: 18px;
|
|
}
|
|
|
|
.not-found-title {
|
|
margin: 0;
|
|
color: #fff;
|
|
font-family: "PingFang SC", sans-serif;
|
|
font-size: 24px;
|
|
font-weight: 600;
|
|
line-height: 32px;
|
|
}
|
|
|
|
.not-found-desc {
|
|
margin: 0;
|
|
color: var(--not-found-secondary);
|
|
font-family: "PingFang SC", sans-serif;
|
|
font-size: 16px;
|
|
font-weight: 400;
|
|
line-height: 22px;
|
|
}
|
|
|
|
.not-found-search {
|
|
width: min(524px, 100%);
|
|
height: 52px;
|
|
padding: 2px 2px 2px 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
overflow: hidden;
|
|
border: 1px solid var(--not-found-line);
|
|
border-radius: 999px;
|
|
background: var(--not-found-panel);
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.not-found-search-input {
|
|
min-width: 0;
|
|
height: 100%;
|
|
flex: 1 1 auto;
|
|
padding: 0;
|
|
border: 0;
|
|
outline: 0;
|
|
appearance: none;
|
|
background: transparent;
|
|
box-shadow: none;
|
|
color: #fff;
|
|
font-family: "PingFang SC", sans-serif;
|
|
font-size: 16px;
|
|
font-weight: 400;
|
|
line-height: 22px;
|
|
}
|
|
|
|
.not-found-search-input:focus,
|
|
.not-found-search-input:focus-visible {
|
|
border: 0;
|
|
outline: 0;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.not-found-search-input::placeholder {
|
|
color: rgba(255, 255, 255, 0.35);
|
|
}
|
|
|
|
.not-found-search-btn,
|
|
.not-found-btn-primary,
|
|
.not-found-btn-secondary {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex: 0 0 auto;
|
|
min-width: 0;
|
|
padding: 0;
|
|
border: 0;
|
|
cursor: pointer;
|
|
font-family: "PingFang SC", sans-serif;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
line-height: 20px;
|
|
text-decoration: none;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.not-found-search-btn {
|
|
width: 96px;
|
|
height: 48px;
|
|
border-radius: 999px;
|
|
background: var(--not-found-primary);
|
|
color: #fff;
|
|
}
|
|
|
|
.not-found-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.not-found-btn-primary,
|
|
.not-found-btn-secondary {
|
|
width: 148px;
|
|
height: 48px;
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.not-found-btn-primary {
|
|
background: var(--not-found-primary);
|
|
color: #fff;
|
|
}
|
|
|
|
.not-found-btn-secondary {
|
|
border: 1px solid rgba(255, 255, 255, 0.05);
|
|
background: var(--not-found-line);
|
|
color: var(--not-found-secondary);
|
|
}
|
|
|
|
.not-found-search-btn,
|
|
.not-found-btn-primary,
|
|
.not-found-btn-secondary {
|
|
transition: filter 160ms ease, transform 160ms ease, border-color 160ms ease;
|
|
}
|
|
|
|
.not-found-search-btn:hover,
|
|
.not-found-btn-primary:hover,
|
|
.not-found-btn-secondary:hover {
|
|
filter: brightness(1.08);
|
|
}
|
|
|
|
.not-found-search-btn:active,
|
|
.not-found-btn-primary:active,
|
|
.not-found-btn-secondary:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
body.site-shell.is-404-page {
|
|
padding-top: 0;
|
|
}
|
|
|
|
body.is-404-page .site-header {
|
|
display: flex !important;
|
|
position: fixed !important;
|
|
top: env(safe-area-inset-top, 0px) !important;
|
|
height: 48px !important;
|
|
min-height: 48px !important;
|
|
overflow: hidden !important;
|
|
}
|
|
|
|
.not-found-page {
|
|
flex: 1 0 auto;
|
|
min-height: 100dvh;
|
|
padding: calc(48px + env(safe-area-inset-top, 0px)) 16px 24px;
|
|
background: radial-gradient(circle at 50% 38%, rgba(236, 35, 127, 0.08), transparent 45%), var(--not-found-bg);
|
|
}
|
|
|
|
.not-found-card {
|
|
width: min(343px, 100%);
|
|
padding: 24px 0;
|
|
gap: 16px;
|
|
border-radius: 24px;
|
|
}
|
|
|
|
.not-found-code {
|
|
font-size: 80px;
|
|
line-height: 84px;
|
|
}
|
|
|
|
.not-found-badge {
|
|
padding: 6px 12px;
|
|
}
|
|
|
|
.not-found-badge-text {
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
}
|
|
|
|
.not-found-title {
|
|
max-width: 100%;
|
|
font-size: 20px;
|
|
line-height: 28px;
|
|
}
|
|
|
|
.not-found-desc {
|
|
max-width: 100%;
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
}
|
|
|
|
.not-found-search {
|
|
width: 100%;
|
|
height: 48px;
|
|
padding: 2px 2px 2px 16px;
|
|
border-radius: 24px;
|
|
}
|
|
|
|
.not-found-search-input {
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
}
|
|
|
|
.not-found-search-btn {
|
|
width: 82px;
|
|
height: 44px;
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
}
|
|
|
|
.not-found-actions {
|
|
width: 100%;
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 10px;
|
|
}
|
|
|
|
.not-found-btn-primary,
|
|
.not-found-btn-secondary {
|
|
width: 100%;
|
|
height: 46px;
|
|
padding: 0;
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 359px) {
|
|
.not-found-card {
|
|
gap: 13px;
|
|
}
|
|
|
|
.not-found-code {
|
|
font-size: 70px;
|
|
line-height: 74px;
|
|
}
|
|
|
|
.not-found-actions {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.not-found-btn-primary,
|
|
.not-found-btn-secondary {
|
|
width: 100%;
|
|
flex-basis: 44px;
|
|
}
|
|
}
|