diff --git a/themes/neff/assets/scss/_banner.scss b/themes/neff/assets/scss/_banner.scss index 9208113..85a7531 100644 --- a/themes/neff/assets/scss/_banner.scss +++ b/themes/neff/assets/scss/_banner.scss @@ -20,7 +20,7 @@ transition: 0.6s; } } -@media only screen and (min-width: calc(#{$max-width} + calc(6 * #{$gutter-width}))) { +@media only screen and (min-width: $media-query) { #banner { top: 155px; } diff --git a/themes/neff/assets/scss/_grid.scss b/themes/neff/assets/scss/_grid.scss index 40aac67..e295df5 100644 --- a/themes/neff/assets/scss/_grid.scss +++ b/themes/neff/assets/scss/_grid.scss @@ -16,11 +16,11 @@ body { background-position: center; background-attachment: fixed; background-size: cover; - background-image: url(#{$background-image-phone}); + background-image: url(#{$background-image-phone-sd}); color: $font-color; } -@media only screen and (orientation: portrait) { +@media only screen and (min-width: 800px) and (orientation: portrait) { body { background-image: url(#{$background-image-phone}); } @@ -28,7 +28,7 @@ body { @media only screen and (min-width: 600px) and (orientation: landscape) { body { - background-image: url(#{$background-image-small}); + background-image: url(#{$background-image-sd}); } } @@ -38,6 +38,9 @@ body { } } +@media only screen and (min-width: $media-query) { +} + header { margin: 0; } @@ -137,7 +140,7 @@ table { } -@media only screen and (min-width: calc(#{$max-width} + calc(6 * #{$gutter-width}))) { +@media only screen and (min-width: $media-query) { .container { width: calc(#{$max-width} + calc(2 * #{$gutter-width})); } diff --git a/themes/neff/assets/scss/_header.scss b/themes/neff/assets/scss/_header.scss index eb22b62..3448f3f 100644 --- a/themes/neff/assets/scss/_header.scss +++ b/themes/neff/assets/scss/_header.scss @@ -20,7 +20,7 @@ } } - @media only screen and (min-width: calc(#{$max-width} + calc(6 * #{$gutter-width}))) { + @media only screen and (min-width: $media-query) { .navbar-logo { img { transition: $transition-time * 1.5; @@ -43,7 +43,7 @@ } } - @media only screen and (min-width: calc(#{$max-width} + calc(6 * #{$gutter-width}))) { + @media only screen and (min-width: $media-query) { .navbar-logo { img { max-height: 100px; @@ -77,7 +77,7 @@ max-width: 40px; padding: 0 $gutter-width; - @media only screen and (min-width: calc(#{$max-width} + calc(6 * #{$gutter-width}))) { + @media only screen and (min-width: $media-query) { max-width: none; } @@ -174,7 +174,7 @@ align-items: flex-end; - @media only screen and (min-width: calc(#{$max-width} + calc(6 * #{$gutter-width}))) { + @media only screen and (min-width: $media-query) { & { justify-content: flex-end; align-items: flex-end; @@ -196,7 +196,7 @@ } } - @media only screen and (min-width: calc(#{$max-width} + calc(6 * #{$gutter-width}))) { + @media only screen and (min-width: $media-query) { input[type=checkbox] { display: none; diff --git a/themes/neff/assets/scss/_index.scss b/themes/neff/assets/scss/_index.scss index 80c05bd..664936e 100644 --- a/themes/neff/assets/scss/_index.scss +++ b/themes/neff/assets/scss/_index.scss @@ -30,7 +30,7 @@ overflow: none; min-width: 100%; - @media only screen and (min-width: calc(#{$max-width} + calc(6 * #{$gutter-width}))) { + @media only screen and (min-width: $media-query) { margin-top: calc(100vh - 285px); margin-bottom: -$gutter-width; margin-left: 67%; diff --git a/themes/neff/assets/scss/_variables.scss b/themes/neff/assets/scss/_variables.scss index cd9043b..6336b62 100755 --- a/themes/neff/assets/scss/_variables.scss +++ b/themes/neff/assets/scss/_variables.scss @@ -16,6 +16,9 @@ $border-radius: 5px; $fa-font-path: "/fonts"; -$background-image: "/img/background.jpg"; -$background-image-phone: "/img/background-phone.jpg"; -$background-image-small: "/img/background-small.jpg"; \ No newline at end of file +$background-image-sd: "/img/background-sd.jpg"; +$background-image-hd: "/img/background.jpg"; +$background-image-phone-sd: "/img/background-phone-sd.jpg"; +$background-image-phone-hd: "/img/background-phone.jpg"; + +$media-query: calc(#{$max-width} + calc(6 * #{$gutter-width})); \ No newline at end of file diff --git a/themes/neff/static/img/background-phone-sd.jpg b/themes/neff/static/img/background-phone-sd.jpg new file mode 100644 index 0000000..a953b24 Binary files /dev/null and b/themes/neff/static/img/background-phone-sd.jpg differ diff --git a/themes/neff/static/img/background-phone.jpg b/themes/neff/static/img/background-phone.jpg index a953b24..2b7f4e8 100644 Binary files a/themes/neff/static/img/background-phone.jpg and b/themes/neff/static/img/background-phone.jpg differ diff --git a/themes/neff/static/img/background-small.jpg b/themes/neff/static/img/background-sd.jpg similarity index 100% rename from themes/neff/static/img/background-small.jpg rename to themes/neff/static/img/background-sd.jpg