Skip to content

Commit

Permalink
πŸ› Fix thirds and fill layer in Safari (#19194)
Browse files Browse the repository at this point in the history
* apply 100% to fill and thirds

* update css

* remove width auto

* manipulate height only in thirds.
  • Loading branch information
Enriqe authored and gmajoulet committed Nov 15, 2018
1 parent 8386d95 commit 48382c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions extensions/amp-story/1.0/amp-story.css
Expand Up @@ -260,6 +260,7 @@ amp-story-cta-layer {

/** Grid level */
amp-story-grid-layer {
box-sizing: border-box !important;
display: grid !important;
position: absolute !important;
top: 0 !important;
Expand Down Expand Up @@ -312,6 +313,7 @@ amp-story-grid-layer > * {
}

.i-amphtml-story-grid-template-thirds {
height: 100% !important;
grid-template-rows: 33% 33% 33% !important; /* `fr` is broken in Safari. */
grid-template-areas: "upper-third"
"middle-third"
Expand Down

0 comments on commit 48382c0

Please sign in to comment.