Center first pinned post on all screen sizes (not just mobile)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -184,16 +184,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* Мобильный: первый (закреплённый) пост — центрировать */
|
||||
@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;
|
||||
}
|
||||
@@ -203,9 +200,27 @@
|
||||
}
|
||||
|
||||
#main > section.posts:first-of-type article .image.main {
|
||||
margin: 0.75rem auto !important;
|
||||
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 {
|
||||
padding: 1.5rem 1.25rem !important;
|
||||
}
|
||||
|
||||
#main > section.posts:first-of-type article header h2 {
|
||||
font-size: 1.45rem !important;
|
||||
}
|
||||
|
||||
#main > section.posts:first-of-type article .image.main {
|
||||
margin: 0.75rem auto !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Адаптивность для мобильных */
|
||||
|
||||
Reference in New Issue
Block a user