[fix #1013] fix logo on ie11

This commit is contained in:
Simon Lehericey 2017-12-04 11:29:22 +01:00
parent a759f3e3e5
commit 6c73766e0d
7 changed files with 34 additions and 27 deletions

View file

@ -7,3 +7,16 @@
padding-top: $value;
padding-bottom: $value;
}
// due to issues that won't be fixed in ie11 regarding images and flex
// https://connect.microsoft.com/IE/Feedback/Details/1218984
// we are obliged to use a background-image
@mixin ie-compatible-background-image($image-url: false) {
display: block;
background-size: contain;
background-repeat: no-repeat;
@if $image-url {
background-image: image-url($image-url);
}
}

View file

@ -55,12 +55,18 @@ footer {
}
.footer-logo-rf {
@include ie-compatible-background-image("footer/logo-rf.svg");
width: 75px;
height: 44px;
margin-bottom: 14px;
}
.footer-logo-beta-gouv-fr {
@include ie-compatible-background-image("footer/logo-beta-gouv-fr.svg");
width: 190px;
height: 32px;
}
.footer-link a {

View file

@ -1,17 +1,14 @@
@import "colors";
@import "constants";
@import "mixins";
.procedure-logo {
display: flex;
background: #FFFFFF;
@include ie-compatible-background-image();
background-color: #FFFFFF;
background-position: 95% 50%;
border: 1px solid $border-grey;
height: 84px;
width: 84px;
margin-right: 2 * $default-spacer;
img {
margin: auto;
max-width: 80%;
max-height: 80%;
}
margin-right: $default-padding;
}

View file

@ -26,13 +26,11 @@
}
.procedure-logo {
@include ie-compatible-background-image();
height: 93px;
width: 93px;
margin-right: 3 * $default-spacer;
flex-shrink: 0;
background-image: url("your/url/here");
background-size: contain;
background-repeat: no-repeat;
background-position: 95% 50%;
}

View file

@ -3,11 +3,6 @@
@import "constants";
#procedure-show {
.procedure-logo {
margin-right: $default-padding;
flex-shrink: 0;
}
h1 {
color: $black;
font-size: 22px;