Skip to content

Commit

Permalink
#14: safari iframe fix - less
Browse files Browse the repository at this point in the history
  • Loading branch information
MartijnCuppens committed Jul 17, 2018
1 parent 7ebf3fd commit c1e997e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions less/rfs.less
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
// 1 rem = @rfs-rem-value px
@rfs-rem-value: 16;

// Safari iframe resize bug: https://github.com/project-rfs/rfs/issues/14
@rfs-safari-iframe-resize-bug-fix: false;

// Disable RFS by setting @enable-responsive-font-sizes to false
@enable-responsive-font-sizes: true;

Expand Down Expand Up @@ -154,6 +157,10 @@
& when ((isunit(@rfs-minimum-font-size, rem))) {
._rfs-render-media-query-content-dimensional(@fs, @suffix, unit(@rfs-minimum-font-size * @rfs-rem-value), @breakpoint);
}

& when (@rfs-safari-iframe-resize-bug-fix) {
min-width: 0vw;
}
}

._rfs-render-media-query-content-dimensional(@fs, @suffix, @rfs-min, @breakpoint) {
Expand Down

0 comments on commit c1e997e

Please sign in to comment.