diff options
| author | Eltrac <hi@guhub.cn> | 2025-07-15 15:47:56 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-07-15 15:47:56 +0800 |
| commit | b503a34ad842ca85919c36fa1b985dc465c74b72 (patch) | |
| tree | d3cc996662608ad02f0955b58bf9b47f166c9167 /assets/css | |
| parent | 272a67d7a8b8752dda3cddf44482e9d85de2c4d0 (diff) | |
refactor: replace _header.scss with UnoCSS and remove post-page-header
Diffstat (limited to 'assets/css')
| -rw-r--r-- | assets/css/components/_header.scss | 136 | ||||
| -rw-r--r-- | assets/css/global.scss | 1 |
2 files changed, 0 insertions, 137 deletions
diff --git a/assets/css/components/_header.scss b/assets/css/components/_header.scss deleted file mode 100644 index c099e535..00000000 --- a/assets/css/components/_header.scss +++ /dev/null @@ -1,136 +0,0 @@ -#site-header { - /* header */ - - .header-title { - display: flex; - flex-direction: column; - align-items: center; - gap: 0.5rem; - - .title-image { - width: 10rem - } - - .title-link { - font-size: 2rem; - font-weight: 900; - text-align: center; - letter-spacing: .15rem; - filter: url(#x); - } - } - - .header-title a { - text-decoration: none; - } - - .header-subtitle { - color: var(--secondary-text-color); - } - - .header-line { - width: 100%; - border-width: 1px; - border-color: var(--border-color); - border-style: solid none none none; - } - - /* navigation */ - - #navigation-bar { - --gap: .75rem; - display: flex; - justify-content: center; - align-items: center; - gap: var(--gap); - padding-left: calc(1rem + var(--gap)) - } - - .navigation { - margin: 1rem 0; - display: flex; - justify-content: center; - align-items: center; - width: fit-content; - border-radius: 1rem; - overflow: hidden; - } - - .navigation-item a { - display: inline-block; - color: var(--background-color); - padding: 0.25rem 0.5rem; - background-color: var(--text-color); - } - - .navigation-item:first-child a { - padding-left: 0.75rem - } - - .navigation-item:last-child a { - padding-right: 0.75rem - } - - .navigation-item.active a { - color: var(--text-color); - background-color: var(--block-background-color); - } - - .navigation-item a:hover { - text-decoration: none; - } -} - -/* skull logo */ - -#post-page-header { - margin: 0 auto; - margin-bottom: 2rem; - max-width: var(--page-width); - - .title-image { - width: 10rem; - } -} - -#post-page-header.with-banner { - .title-image-container { - @include roundSticker; - transform: rotate(7deg); - - position: absolute; - z-index: 5; - right: 0.25rem; - top: 0.25rem; - width: 3rem; - padding: 0.5rem; - - @media screen and (min-width: 640px) { - right: 0.5rem; - top: 0.5rem; - width: 4rem; - padding: 1rem; - } - - @media screen and (min-width: 768px) { - width: 6rem; - left: calc(50vw + var(--page-width) / 2 - 7rem); - top: calc(var(--page-margin-y) - 2rem); - } - - @media screen and (min-width: 768px) { - width: 6rem; - left: calc(50vw + var(--page-width) / 2 - 7rem); - top: calc(var(--page-margin-y) - 2rem); - } - - @media screen and (min-width: 1200px) { - width: 8rem; - left: calc(50vw + var(--page-width) / 2 - 5rem); - } - - .title-image { - width: 100%; - } - } -} diff --git a/assets/css/global.scss b/assets/css/global.scss index 2cfdb01f..950c24a3 100644 --- a/assets/css/global.scss +++ b/assets/css/global.scss @@ -4,7 +4,6 @@ @import "utils/utility"; @import "components/markdown"; -@import "components/header"; @import "components/pages"; @import "components/taxonomy"; @import "components/postlist"; |
