Use same desktop.webp for all devices - simpler and cleaner
- Remove separate mobile image (was causing file bloat and complexity) - Use desktop.webp (716 KB) for all screen sizes via media query - Browser's background-size: cover handles responsive display - Simplify preload-images.html to single image preload - Cleaner CSS without unnecessary file duplication
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
/* Adaptive Background Images for Mobile and Desktop */
|
||||
|
||||
/* Mobile devices (max-width: 736px) - Use mobile.webp */
|
||||
/* Mobile devices (max-width: 736px) - Use desktop.webp (same as desktop for consistency) */
|
||||
@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/mobile.webp') !important;
|
||||
url('../../images/desktop.webp') !important;
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
background-attachment: fixed;
|
||||
|
||||
Reference in New Issue
Block a user