Skip to content

Commit

Permalink
Fix fluid typography resize bug in Safari
Browse files Browse the repository at this point in the history
  • Loading branch information
robdekort committed Sep 4, 2020
1 parent a95b134 commit c245250
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,13 @@ module.exports = {
//
plugin(function({ addBase, theme }) {
addBase({
':root': {
// Fluid typography from 1 rem to 1.15 rem with fallback to 16px.
fontSize: '16px',
'font-size': 'clamp(1rem, 1.6vw, 1.2rem)',
// Safari resize fix.
minHeight: '0vw',
},
// Used to hide alpine elements before being rendered.
'[x-cloak]': {
display: 'none'
Expand Down

0 comments on commit c245250

Please sign in to comment.