From 4778907d1473337b45fea54c9650030d941e791d Mon Sep 17 00:00:00 2001 From: Emilie Date: Tue, 14 Mar 2017 16:34:02 +0100 Subject: [PATCH] [Vertigo EU] : home positionning title --- .../base/static/src/sass/modules/_hero.scss | 38 +++++++++++++++++++ .../vertigo_starts_eu/home/inc/hero.html | 35 ++--------------- 2 files changed, 41 insertions(+), 32 deletions(-) diff --git a/app/themes/base/static/src/sass/modules/_hero.scss b/app/themes/base/static/src/sass/modules/_hero.scss index 5cc7854c..16e3a821 100644 --- a/app/themes/base/static/src/sass/modules/_hero.scss +++ b/app/themes/base/static/src/sass/modules/_hero.scss @@ -1,5 +1,6 @@ $module: ".hero"; + #{$module} { background-image: url(../img/vertigo/hero.jpg); @@ -10,6 +11,43 @@ $module: ".hero"; margin-bottom: 350px; position: relative; + &.large-title { + margin-bottom: 500px; + + #{$module}__title { + img { + max-width: 73%; + } + margin: 0 auto; + position: relative; + + @include mq($until: lg) { + padding-top: 60px; + } + @include mq($until: md) { + padding-top: 97px; + } + @include mq($until: sm) { + padding-top: 115px; + } + @include mq($until: xs) { + padding-top: 120px; + } + } + @include mq($until: lg) { + margin-bottom: 450px; + } + @include mq($until: md) { + margin-bottom: 350px; + } + @include mq($until: sm) { + margin-bottom: 300px; + } + @include mq($until: xs) { + margin-bottom: 90px; + } + } + @include mq($until: xs) { height: 346px; margin-bottom: 140px; diff --git a/app/themes/vertigo_starts_eu/templates/vertigo_starts_eu/home/inc/hero.html b/app/themes/vertigo_starts_eu/templates/vertigo_starts_eu/home/inc/hero.html index 5a7570bd..24f43d11 100644 --- a/app/themes/vertigo_starts_eu/templates/vertigo_starts_eu/home/inc/hero.html +++ b/app/themes/vertigo_starts_eu/templates/vertigo_starts_eu/home/inc/hero.html @@ -2,44 +2,15 @@ {% with home.images.all|get_type:'page_featured' as images %} {% if images %} -
+
{% else %} -
+
{% endif %}
-
- -
- - -
- -
- - -

- -

-
- -
- -
- -
- - - -
- -
-
- +
-- 2.39.5