Mobile: center pinned post, pagination fixes, minor layout tweaks
- First (pinned) post on mobile: title and image centered - Pagination: restored page counter on mobile, buttons above footer - Typography and layout minor improvements Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,104 +1 @@
|
||||
/* Скрываем номера страниц на мобильных устройствах */
|
||||
@media (max-width: 768px) {
|
||||
/* Скрываем все элементы с номерами страниц */
|
||||
.pagination .page-number-item {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* Дополнительная защита - скрываем по классам */
|
||||
.pagination .page,
|
||||
.pagination .page.active,
|
||||
.pagination .extra {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* Центрируем оставшиеся кнопки */
|
||||
.pagination {
|
||||
display: flex !important;
|
||||
justify-content: center !important;
|
||||
align-items: center !important;
|
||||
gap: 1rem !important;
|
||||
margin: 1rem 0 !important;
|
||||
}
|
||||
|
||||
.pagination ul {
|
||||
display: flex !important;
|
||||
justify-content: center !important;
|
||||
align-items: center !important;
|
||||
list-style: none !important;
|
||||
padding: 0 !important;
|
||||
margin: 0 !important;
|
||||
gap: 1rem !important;
|
||||
}
|
||||
|
||||
/* Стилизуем кнопки Назад/Далее */
|
||||
.pagination .previous,
|
||||
.pagination .next {
|
||||
padding: 0.8rem 1.2rem !important;
|
||||
font-size: 0.9rem !important;
|
||||
min-width: 80px !important;
|
||||
text-align: center !important;
|
||||
border: none !important;
|
||||
border-radius: 0 !important;
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
justify-content: center !important;
|
||||
line-height: 1.2 !important;
|
||||
white-space: nowrap !important;
|
||||
box-shadow: none !important;
|
||||
outline: none !important;
|
||||
}
|
||||
|
||||
/* Показываем только навигационные кнопки */
|
||||
.pagination li:has(.previous),
|
||||
.pagination li:has(.next) {
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
/* Дополнительное выравнивание для li элементов */
|
||||
.pagination li {
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
justify-content: center !important;
|
||||
}
|
||||
|
||||
/* Убираем возможные конфликты со стилями темы */
|
||||
.pagination .previous a,
|
||||
.pagination .next a {
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
justify-content: center !important;
|
||||
text-align: center !important;
|
||||
width: 100% !important;
|
||||
height: 100% !important;
|
||||
border: none !important;
|
||||
box-shadow: none !important;
|
||||
outline: none !important;
|
||||
}
|
||||
|
||||
/* Скрываем информацию о страницах */
|
||||
.pagination-info,
|
||||
.pagination .info,
|
||||
.pagination .page-info,
|
||||
.pagination-status {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.pagination .previous,
|
||||
.pagination .next {
|
||||
padding: 0.7rem 1rem !important;
|
||||
font-size: 0.8rem !important;
|
||||
min-width: 70px !important;
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
justify-content: center !important;
|
||||
text-align: center !important;
|
||||
line-height: 1.2 !important;
|
||||
border: none !important;
|
||||
border-radius: 0 !important;
|
||||
box-shadow: none !important;
|
||||
outline: none !important;
|
||||
}
|
||||
}
|
||||
/* Этот файл намеренно пуст — стили пагинации перенесены в pagination-info.css */
|
||||
|
||||
Reference in New Issue
Block a user