diff options
| author | Eltrac <hi@guhub.cn> | 2025-04-25 22:53:31 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-04-25 22:53:31 +0800 |
| commit | 45440d1dce077522635927e5a975929286d16d6f (patch) | |
| tree | 2e73f84f18e851beaca1547c9053ff0446be23ae | |
| parent | 190312f35c50ee0726e213ea0297ead16bd52d3e (diff) | |
feat: sticky year title in archive page
| -rw-r--r-- | assets/css/components/_pages.scss | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/assets/css/components/_pages.scss b/assets/css/components/_pages.scss index 0e3803eb..fc03adc2 100644 --- a/assets/css/components/_pages.scss +++ b/assets/css/components/_pages.scss @@ -143,6 +143,10 @@ padding: 0.5rem 0; font-size: 1.5rem; @include section-title; + position: sticky; + top: 0; + background-color: var(--background-color); + z-index: 1; } } |
