tailwindcss-safe-area
Advanced tools
Comparing version
{ | ||
"name": "tailwindcss-safe-area", | ||
"version": "0.1.3", | ||
"version": "0.2.1", | ||
"main": "src/index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -48,10 +48,12 @@ # tailwindcss-safe-area | ||
| Utilities | Styles | | ||
| ------------------ | ------------------------------------------------- | | ||
| `m-safe, p-safe` | `env(safe-area-inset-{top, right, bottom, left})` | | ||
| `mx-safe, px-safe` | `env(safe-area-inset-{right, left})` | | ||
| `my-safe, py-safe` | `env(safe-area-inset-{top, bottom})` | | ||
| `mt-safe, pt-safe` | `env(safe-area-inset-top)` | | ||
| `mr-safe, pr-safe` | `env(safe-area-inset-right)` | | ||
| `mb-safe, pb-safe` | `env(safe-area-inset-bottom)` | | ||
| `ml-safe, pl-safe` | `env(safe-area-inset-left)` | | ||
| Utilities | Styles | | ||
| ---------------------------------- | ------------------------------------------------------------------------ | | ||
| `m-safe, p-safe` | `env(safe-area-inset-{top, right, bottom, left})` | | ||
| `mx-safe, px-safe` | `env(safe-area-inset-{right, left})` | | ||
| `my-safe, py-safe` | `env(safe-area-inset-{top, bottom})` | | ||
| `mt-safe, pt-safe` | `env(safe-area-inset-top)` | | ||
| `mr-safe, pr-safe` | `env(safe-area-inset-right)` | | ||
| `mb-safe, pb-safe` | `env(safe-area-inset-bottom)` | | ||
| `ml-safe, pl-safe` | `env(safe-area-inset-left)` | | ||
| `min-h-screen-safe, h-screen-safe` | `calc(100vh - (env(safe-area-inset-top) + env(safe-area-inset-bottom)))` | | ||
| | `-webkit-fill-available` | |
@@ -57,2 +57,10 @@ const plugin = require('tailwindcss/plugin') | ||
}, | ||
'.min-h-screen-safe': { | ||
minHeight: 'calc(100vh - (env(safe-area-inset-top) + env(safe-area-inset-bottom)))', | ||
minHeight: '-webkit-fill-available', | ||
}, | ||
'.h-screen-safe': { | ||
height: 'calc(100vh - (env(safe-area-inset-top) + env(safe-area-inset-bottom)))', | ||
height: '-webkit-fill-available', | ||
}, | ||
} | ||
@@ -59,0 +67,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
8098
16.03%157
9.79%59
3.51%