You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to include these as calc functions that extend the other modifiers, for example
<divclass="lg:safe:py-4"></div>
Whereby the padding of py-4 is applied to the element, but the modifier also adds env(safe-area-inset-top) and env(safe-area-inset-bottom) to the respective padding values.
This would be a very nice addition when creating responsive, multi-device designs. Particularly as a fixed nav cannot be touched on iOS devices because it appears behind the status bar. With this feature, we merely add a safe modifier without having to change any of the underlying DOM structure.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
It's becoming common practice to extend TailwindCSS with
https://developer.mozilla.org/en-US/docs/Web/CSS/env#values
It would be nice to include these as
calc
functions that extend the other modifiers, for exampleWhereby the padding of
py-4
is applied to the element, but the modifier also addsenv(safe-area-inset-top)
andenv(safe-area-inset-bottom)
to the respective padding values.This would be a very nice addition when creating responsive, multi-device designs. Particularly as a fixed nav cannot be touched on iOS devices because it appears behind the status bar. With this feature, we merely add a
safe
modifier without having to change any of the underlying DOM structure.Beta Was this translation helpful? Give feedback.
All reactions