From 665ddcebc30e6466cf2b6c0a735d41ce2a521223 Mon Sep 17 00:00:00 2001 From: bach Date: Tue, 20 Jun 2023 16:28:30 +0200 Subject: [PATCH] #2092 --- assets/css/app.scss | 67 +++++++++++++++++++++++++++++++-- assets/css/base/_layout.scss | 8 ++++ assets/css/base/_variables.scss | 1 + 3 files changed, 73 insertions(+), 3 deletions(-) diff --git a/assets/css/app.scss b/assets/css/app.scss index 18c6c77..6425209 100644 --- a/assets/css/app.scss +++ b/assets/css/app.scss @@ -94,6 +94,16 @@ header[role="banner"]{ } } + // iphone + @media only screen and (max-width: $iphone-bp), (orientation: portrait) { + div.wrapper{ + display:flex; + flex-direction: column; + } + nav#header-menu{ + text-align: left; + } + } } section[role="main-content"]{ #home{ @@ -120,6 +130,7 @@ section[role="main-content"]{ font-size: 0.7em } } + } // $filet_space:8em; // $decallage: 0.5em; @@ -179,7 +190,8 @@ section[role="main-content"]{ @include teasersfilet(8em, 0.5em); } // responsive - @media only screen and (max-width: $small-bp), (orientation: portrait) { + // ipad + @media only screen and (min-width: $iphone-bp) and (max-width: $small-bp), (orientation: portrait) { header{ h1{ font-size: 5em; @@ -195,7 +207,34 @@ section[role="main-content"]{ div.teasers{ flex-direction: column; // filets decoratif - @include teasersfilet(4em, 0.5em); + >div.wrapper{ + @include teasersfilet(4em, 0.5em); + } + } + } + + // iphone + @media only screen and (max-width: $iphone-bp), (orientation: portrait) { + header{ + margin:0; + h1{ + font-size: 5em; + margin:0; + } + } + section.row{ + flex-direction: column; + padding-top: 1em; + + } + div.teasers{ + // filets decoratif + div.wrapper{ + flex-direction: column; + &:before, &:after{ + display: none; + } + } } } } @@ -635,6 +674,10 @@ section[role="main-content"]{ position: absolute; bottom: 0; overflow-wrap:anywhere; + // iphone + @media only screen and (max-width: $iphone-bp), (orientation: portrait) { + display: none; + } } } @@ -743,6 +786,13 @@ section[role="main-content"]{ } } } + // iphone + @media only screen and (max-width: $iphone-bp), (orientation: portrait) { + >header{ + padding-right: 1em; + width:percentage(10/$default_sum); + } + } $pagenum_w:1em; @@ -1413,6 +1463,10 @@ section[role="main-content"]{ p{ line-height: $base-line * 0.65; } + // iphone + @media only screen and (max-width: $iphone-bp), (orientation: portrait) { + display: none; + } } } } @@ -1876,7 +1930,14 @@ footer[role="tools"]{ } } } - ; + + // iphone + @media only screen and (max-width: $iphone-bp), (orientation: portrait) { + #footer-tabs, #search{ + display: none; + } + } + #logos{ // max-height: 100%; position: relative; diff --git a/assets/css/base/_layout.scss b/assets/css/base/_layout.scss index db64bcb..42b4772 100644 --- a/assets/css/base/_layout.scss +++ b/assets/css/base/_layout.scss @@ -38,6 +38,10 @@ body{ @media only screen and (max-width: $small-bp), (orientation: portrait) { padding:1em $side-padding/2 0 $side-padding/2; } + // iphone + @media only screen and (max-width: $iphone-bp), (orientation: portrait) { + padding:1em $side-padding/2 1em $side-padding/2; + } } section[role="main-content"]{ display: flex; @@ -60,6 +64,10 @@ body{ overflow-y: auto; padding:0 $side-padding/2 0 $side-padding/2; } + // iphone + @media only screen and (max-width: $iphone-bp), (orientation: portrait) { + // padding:0 $side-padding/4 0 $side-padding/4; + } } .main-content-layout{ position: relative; diff --git a/assets/css/base/_variables.scss b/assets/css/base/_variables.scss index 2c6b3e1..6369e67 100644 --- a/assets/css/base/_variables.scss +++ b/assets/css/base/_variables.scss @@ -5,6 +5,7 @@ $base-line:28px; $default_gap: 1em; $default_sum: 12; // total number of columns +$iphone-bp: 428px; $small-bp:768px; $med-bp:1080px; $ipad-bp: 1536px;