UX overhaul: glassmorphism nav/footer, forms redesign, mobile fixes
Navigation: - Nav bar pill shape (border-radius: 100px), dark glass style - Icons added to all nav items (FA4 outline variants, fixed-width alignment) - Footer hidden on all devices (nav panel covers mobile) - Footer nav icons + text added before removal Forms (ask.md, plan.md): - Full glassmorphism redesign: rounded card, blur backdrop - Input borders visible (#b8c4ce), focus ring, proper placeholder colors - Select: self-contained CSS, no backdrop-filter conflict, arrow fixed - Submit button: gradient with shadow - File upload button: .file-btn class, fa-arrow-down icon - form-note styled as info callout with left border + ⓘ icon - Footnotes sup.fn: circular badge, baseline positioning (no line-height jump) - Footnote ¹ on both consent checkboxes, accordion = full legal text - Dark mode: opaque dark card (rgba 22,26,34,0.88), proper contrast - Dark mode success/error messages adapted - Double checkmark bug fixed (removed ::after overlay) - Italic removed from privacy-details text Layout: - #main rounded corners (20px all sides) + margin for visibility - Post card images rounded (border-radius: 10px) - Page titles: uppercase removed, font-weight 900, left-aligned - "Подробнее" button hidden on post cards - iOS background-attachment: fixed bug fixed (scroll on mobile) - Pagination mobile: counter restored, buttons above footer Content: - Page titles uncommented in front matter (gallery, map, ask, plan) - Duplicate rawhtml title blocks removed Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
}
|
||||
|
||||
#main article a:hover {
|
||||
color: #18bfef;
|
||||
color: #5b9bd5;
|
||||
}
|
||||
|
||||
/* Списки в статьях */
|
||||
@@ -118,6 +118,73 @@
|
||||
color: #1a252f;
|
||||
}
|
||||
|
||||
/* Карточки постов */
|
||||
#main > .posts > article {
|
||||
padding: 2rem !important;
|
||||
text-align: left !important;
|
||||
transition: box-shadow 0.2s ease;
|
||||
}
|
||||
|
||||
#main > .posts > article:hover {
|
||||
box-shadow: inset 0 0 0 1px rgba(24, 191, 239, 0.3);
|
||||
}
|
||||
|
||||
/* Фиксированная высота хедера — фото на одном уровне в ряду */
|
||||
#main > .posts > article header {
|
||||
min-height: 5.5rem;
|
||||
}
|
||||
|
||||
/* Заголовок карточки */
|
||||
#main > .posts > article header h2 {
|
||||
font-size: 1.3rem;
|
||||
line-height: 1.35;
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
overflow: hidden;
|
||||
margin-bottom: 0;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#main > .posts > article header h2 a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* Убираем огромный отступ у фото (тема: 4rem 0) */
|
||||
#main > .posts > article .image.main {
|
||||
margin: 1rem 0 !important;
|
||||
}
|
||||
|
||||
/* Описание — обрезаем до 2 строк */
|
||||
#main > .posts > article > p {
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
overflow: hidden;
|
||||
text-align: left;
|
||||
font-size: 0.88rem;
|
||||
color: #666;
|
||||
margin-bottom: 1rem;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
/* Скрываем кнопку «Подробнее» — карточка и так кликабельна по заголовку */
|
||||
#main > .posts > article .actions {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 980px) {
|
||||
#main > .posts > article {
|
||||
padding: 1.5rem !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 736px) {
|
||||
#main > .posts > article {
|
||||
text-align: left !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Адаптивность для мобильных */
|
||||
@media (max-width: 768px) {
|
||||
#main article h1 {
|
||||
|
||||
Reference in New Issue
Block a user