Skip to content
Snippets Groups Projects
Commit bd3ee3e9 authored by FORESTIER Fabien's avatar FORESTIER Fabien
Browse files

Improve cookie banner display on mobile

parent 3bb7ec0b
Branches
Tags
1 merge request!73Development
Pipeline #5253 passed
...@@ -48,9 +48,6 @@ ...@@ -48,9 +48,6 @@
<p i18n="@@cookieModal.tab1title">Why do we use cookies?</p> <p i18n="@@cookieModal.tab1title">Why do we use cookies?</p>
</div> </div>
<div class="tab" (click)='toggleTab(1)' [ngClass]="{'tab-active' : tab === 1}"> <div class="tab" (click)='toggleTab(1)' [ngClass]="{'tab-active' : tab === 1}">
<svg class="circle" width="11" height="11" viewBox="0 0 11 11" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="5.5" cy="5.5" r="5.5" fill="#3C8225" />
</svg>
<p i18n="@@cookieModal.tab2title">Necessary cookies</p> <p i18n="@@cookieModal.tab2title">Necessary cookies</p>
</div> </div>
</div> </div>
......
...@@ -110,13 +110,15 @@ ...@@ -110,13 +110,15 @@
.box { .box {
width: 100%; width: 100%;
max-width: 600px; max-width: 600px;
min-height: 360px; min-height: 400px;
background: #FFFFFF; background: #FFFFFF;
box-shadow: 0px 4px 28px rgba(0, 0, 0, 0.55); box-shadow: 0px 4px 28px rgba(0, 0, 0, 0.55);
position: relative; position: relative;
@media screen and(max-width: $tablet) { @media screen and(max-width: $tablet) {
margin: 95%; width: calc(100% - 50px);
height: 450px;
max-width: unset;
} }
.title { .title {
...@@ -139,7 +141,7 @@ ...@@ -139,7 +141,7 @@
.content { .content {
display: flex; display: flex;
height: 100%; height: calc(450px - 53px); // minus the height of the popup header
@media screen and(max-width: $tablet) { @media screen and(max-width: $tablet) {
flex-direction: column; flex-direction: column;
...@@ -152,6 +154,7 @@ ...@@ -152,6 +154,7 @@
@media screen and(max-width: $tablet) { @media screen and(max-width: $tablet) {
width: 100%; width: 100%;
display: flex;
} }
.tab { .tab {
...@@ -160,6 +163,14 @@ ...@@ -160,6 +163,14 @@
border-bottom: 1px solid #B4B4B4; border-bottom: 1px solid #B4B4B4;
position: relative; position: relative;
@media screen and(max-width: $tablet) {
width: 50%;
&:not(:last-of-type) {
border-right: 1px solid $grey-super-light-color;
}
}
p { p {
display: inline-block; display: inline-block;
} }
...@@ -173,15 +184,32 @@ ...@@ -173,15 +184,32 @@
.tab-active { .tab-active {
background: white; background: white;
//remove border @media screen and(max-width: $tablet) {
&:after {
content: ''; //remove border
height: 100%; &:after {
width: 2px; content: '';
position: absolute; height: 2px;
right: -2px; width: 100%;
top: 0; position: absolute;
background: white; bottom: -2px;
left: 0;
background: white;
}
}
@media screen and(min-width: $tablet) {
//remove border
&:after {
content: '';
height: 100%;
width: 2px;
position: absolute;
right: -2px;
top: 0;
background: white;
}
} }
} }
} }
...@@ -191,6 +219,7 @@ ...@@ -191,6 +219,7 @@
border-left: 1px solid #B4B4B4; border-left: 1px solid #B4B4B4;
padding: 1.3rem 1rem; padding: 1.3rem 1rem;
background-color: #fff; background-color: #fff;
overflow: auto;
@media screen and(max-width: $tablet) { @media screen and(max-width: $tablet) {
width: 100%; width: 100%;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment