diff options
| author | Eltrac <hi@guhub.cn> | 2025-01-08 21:12:49 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-01-08 21:12:49 +0800 |
| commit | d91c2e4dc1a9b9d87e6afe7bc13c9c4c9200dd8b (patch) | |
| tree | 7b0bb79c675f5e0a883ae095fafc95be04be61bc /assets | |
| parent | bd03eab0d1f82db541d60f37eb47d267b6404006 (diff) | |
feat(theme): responsive index header
Diffstat (limited to 'assets')
| -rw-r--r-- | assets/css/components/_pages.scss | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/assets/css/components/_pages.scss b/assets/css/components/_pages.scss index ab49a877..ff54ebe4 100644 --- a/assets/css/components/_pages.scss +++ b/assets/css/components/_pages.scss @@ -72,8 +72,10 @@ /* post series */ #posts-header { - display: grid; - grid-template-columns: 2fr 1fr; + @media screen and (min-width: 768px) { + display: grid; + grid-template-columns: 2fr 1fr; + } #post-series { #post-series-list { @@ -115,8 +117,11 @@ #posts-recommendation { #posts-recommendation-links { display: flex; - flex-direction: column; - gap: .5rem + flex-direction: row; + gap: .5rem; + @media screen and (min-width: 768px) { + flex-direction: column; + } } } } |
