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,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) {
|
@media screen and (max-width: 736px) {
|
||||||
#main > section.posts:first-of-type article {
|
#main > section.posts:first-of-type article {
|
||||||
text-align: center !important;
|
|
||||||
padding: 1.5rem 1.25rem !important;
|
padding: 1.5rem 1.25rem !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#main > section.posts:first-of-type article header h2 {
|
#main > section.posts:first-of-type article header h2 {
|
||||||
text-align: center !important;
|
|
||||||
font-size: 1.45rem !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 {
|
#main > section.posts:first-of-type article .image.main {
|
||||||
margin: 0.75rem auto !important;
|
margin: 0.75rem auto !important;
|
||||||
display: block !important;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user