Skip to content

Commit

Permalink
feat: add new options for safe-area-inset directions (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kogomre authored Aug 28, 2023
1 parent 08840de commit a6ee1e9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
.idea
12 changes: 12 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,18 @@ const safeArea = plugin(({addUtilities, matchUtilities, theme}) => {
'.pl-safe': {
paddingLeft: 'env(safe-area-inset-left)',
},
'.top-safe': {
top: 'env(safe-area-inset-top)',
},
'.right-safe': {
right: 'env(safe-area-inset-right)',
},
'.bottom-safe': {
bottom: 'env(safe-area-inset-bottom)',
},
'.left-safe': {
left: 'env(safe-area-inset-left)',
},
'.min-h-screen-safe': {
minHeight: [
'calc(100vh - (env(safe-area-inset-top) + env(safe-area-inset-bottom)))',
Expand Down

0 comments on commit a6ee1e9

Please sign in to comment.