diff options
| author | Eltrac <hi@guhub.cn> | 2025-01-08 21:22:48 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-01-08 21:22:48 +0800 |
| commit | 2bae429fbc1d586832841a45fea8a979f8a27bb8 (patch) | |
| tree | 9a462752752d5e4ad3500404fe7d465d4759a9d3 /assets/css/components | |
| parent | 3adffeaf9f5398cf94d121dbc797847d035dae6f (diff) | |
fix(theme): overflowing footer
Former-commit-id: 069f2c9973fed4e4a3222d73fcbbf50d7ecc8ddf
Diffstat (limited to 'assets/css/components')
| -rw-r--r-- | assets/css/components/_footer.scss | 41 |
1 files changed, 23 insertions, 18 deletions
diff --git a/assets/css/components/_footer.scss b/assets/css/components/_footer.scss index e19405ac..0b78faf2 100644 --- a/assets/css/components/_footer.scss +++ b/assets/css/components/_footer.scss @@ -1,20 +1,40 @@ #footer { - width: var(--page-width); margin: 2rem auto; font-family: var(--mono-font-family); + @media screen and (min-width: 768px) { + width: var(--page-width); + display: flex; + justify-content: space-between; + } + + #footer-copyright { + .word-count { + font-family: var(--serif-font-family); + font-size: .9rem; + color: var(--secondary-text-color) + } + } + #footer-links { display: flex; flex-direction: column; - align-items: flex-end; + + @media screen and (min-width: 768px) { + align-items: flex-end; + } ul.footer-navigation { list-style: none; display: flex; gap: 0.5rem; - justify-content: flex-end; padding-inline-start: 0; margin: .5rem 0; + + @media screen and (min-width: 768px) { + justify-content: flex-end; + } + li { display: inline-flex; align-items: center; @@ -27,19 +47,4 @@ } } } - - #footer-copyright { - .word-count { - font-family: var(--serif-font-family); - font-size: .9rem; - color: var(--secondary-text-color) - } - } -} - -@media screen and (min-width: 768px) { - #footer { - display: flex; - justify-content: space-between; - } } |
