Skip to content

Commit

Permalink
fix: Update background shapes svg positioning to support IE (BL-97)
Browse files Browse the repository at this point in the history
  • Loading branch information
remydenton authored and sghoweri committed Dec 26, 2017
1 parent 99772ce commit c4d75d4
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -12,9 +12,17 @@
}

&__shape {
// To support IE, use the "bottom padding" hack to position svgs within the grid.
// See https://css-tricks.com/scale-svg/#article-header-id-10
position: relative;
height: 0;
padding-bottom: 100%;

svg {
display: block;
position: absolute;
width: 100%;
height: 100%;
}

&--orange {
Expand Down

0 comments on commit c4d75d4

Please sign in to comment.