From ef1c42f9451e86e8c377653085852e210226498f Mon Sep 17 00:00:00 2001 From: Thomas JUND Date: Thu, 12 May 2022 18:04:06 +0200 Subject: [PATCH] la-baule: improve page-header styles (#63656) To display tracking-code-input-cell & search-cell side by side --- static/la-baule/_custom.scss | 24 ++++++++++++++---------- static/la-baule/_vars.scss | 7 ++++--- 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/static/la-baule/_custom.scss b/static/la-baule/_custom.scss index 20cca4a7..e5cfaea9 100644 --- a/static/la-baule/_custom.scss +++ b/static/la-baule/_custom.scss @@ -175,11 +175,15 @@ div#nav { // Page header .page-header { + @media ($max-mobile-viewport) { + padding-left: 0.7em; + padding-right: 0.7em; + } h1, h2, h3 { color: $blue; } - div.searchcell form::before { - margin-top: 0.5em; + button { + @extend %button; } div.text-cell { font-size: $fz-h4; @@ -199,11 +203,11 @@ div#nav { } div.searchcell form { + padding: 0; input { margin-right: 0; } button { - @extend input; flex: 0 0 auto; color: white; background-color: $orange; @@ -213,13 +217,11 @@ div#nav { color: white !important; } } - @media ($min-desktop-viewport) { - &::before { - content: "Rechercher"; - font-size: $fz-h4; - color: $blue; - font-weight: bold; - padding-right: .33em; + } + .tracking-code-input-cell { + form { + input, button { + vertical-align: middle; } } } @@ -230,6 +232,8 @@ div#nav { // .en-1-clic { + padding-top: 40px; + clear: both; & > div { background-color: $blue-light; color: white; diff --git a/static/la-baule/_vars.scss b/static/la-baule/_vars.scss index 7dadcb78..d03230c6 100644 --- a/static/la-baule/_vars.scss +++ b/static/la-baule/_vars.scss @@ -7,9 +7,9 @@ $orange-dark: #6a605e; $gray: #e1e1e6; // fonts size -$fz-h1: 50pt; -$fz-h2: 30pt; -$fz-h3: 20pt; +$fz-h1: 50px; +$fz-h2: 30px; +$fz-h3: 20px; $fz-h4: 1.15em; $fz-small: 0.65em; @@ -24,6 +24,7 @@ $link-color: $orange; $width: 1340px; $mobile-limit: 1280px; +$very-small-limit: 560px; $columns-gutter: 40px; $nav-background: $blue !important;