Files
ptp/static/css/adaptive-background.css
T
Kirik 3de138ff41 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>
2026-03-24 00:44:57 +01:00

36 lines
1.2 KiB
CSS
Executable File

/* Adaptive Background Images for Mobile and Desktop */
/* Mobile devices (max-width: 736px) - Use mobile4.webp */
@media screen and (max-width: 736px) {
#wrapper > .bg {
background-image: url('../../images/overlay.png'),
linear-gradient(0deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
url('../../images/mobile4.webp') !important;
background-size: cover;
background-position: center top;
/* iOS Safari не поддерживает background-attachment: fixed нормально */
background-attachment: scroll;
}
}
/* Tablet and larger (min-width: 737px) - Use desktop.webp (already set in main.scss) */
@media screen and (min-width: 737px) {
#wrapper > .bg {
background-image: url('../../images/overlay.png'),
linear-gradient(0deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
url('../../images/desktop.webp') !important;
background-size: cover;
background-position: center;
background-attachment: fixed;
}
}
/* High DPI displays optimization */
@media
(-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
#wrapper > .bg {
background-size: cover;
}
}