From 971cfe4e10cd50fe75ce478811c3b19b2e94c413 Mon Sep 17 00:00:00 2001 From: Kirik Date: Tue, 24 Mar 2026 01:10:52 +0100 Subject: [PATCH] Center first pinned post on all screen sizes (not just mobile) Co-Authored-By: Claude Sonnet 4.6 --- static/css/typography-improvements.css | 35 ++++++++++++++++++-------- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/static/css/typography-improvements.css b/static/css/typography-improvements.css index 057f815..2641ed0 100755 --- a/static/css/typography-improvements.css +++ b/static/css/typography-improvements.css @@ -184,27 +184,42 @@ } } -/* Мобильный: первый (закреплённый) пост — центрировать */ +/* Первый (закреплённый) пост — центрировать на всех экранах */ +#main > section.posts:first-of-type article { + text-align: center !important; +} + +#main > section.posts:first-of-type article header h2 { + text-align: center !important; + -webkit-line-clamp: unset !important; + overflow: visible !important; +} + +#main > section.posts:first-of-type article header h2 a { + color: inherit; +} + +#main > section.posts:first-of-type article .image.main { + margin: 1rem auto !important; + display: block !important; +} + +#main > section.posts:first-of-type article > p { + text-align: center !important; +} + +/* Мобильный: дополнительные корректировки */ @media screen and (max-width: 736px) { #main > section.posts:first-of-type article { - text-align: center !important; padding: 1.5rem 1.25rem !important; } #main > section.posts:first-of-type article header h2 { - text-align: center !important; font-size: 1.45rem !important; - -webkit-line-clamp: unset !important; - overflow: visible !important; - } - - #main > section.posts:first-of-type article header h2 a { - color: inherit; } #main > section.posts:first-of-type article .image.main { margin: 0.75rem auto !important; - display: block !important; } }