Skip to content

Commit

Permalink
feat: add isolation utilities
Browse files Browse the repository at this point in the history
Fixes #194
  • Loading branch information
muhammadsammy committed Apr 9, 2021
1 parent a6c8e87 commit 3022592
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cli/lib/non-configurable/layout.ts
Expand Up @@ -21,6 +21,8 @@ const float = ['float-right', 'float-left', 'float-none'];

const clear = ['clear-left', 'clear-right', 'clear-both', 'clear-none'];

const isolation = ['isolate', 'isolation-auto'];

const objectFit = [
'object-contain',
'object-cover',
Expand Down Expand Up @@ -66,6 +68,7 @@ export default {
container,
float,
clear,
isolation,
objectFit,
overflow,
overscrollBehavior,
Expand Down
1 change: 1 addition & 0 deletions src/cli/types/classes.ts
Expand Up @@ -142,6 +142,7 @@ type TLayoutCategoryItem =
| 'container'
| 'float'
| 'clear'
| 'isolation'
| 'objectFit'
| 'objectPosition'
| 'overflow'
Expand Down
13 changes: 13 additions & 0 deletions src/index.ts
Expand Up @@ -2538,6 +2538,8 @@ export type TFloat = 'float-right' | 'float-left' | 'float-none';

export type TClear = 'clear-left' | 'clear-right' | 'clear-both' | 'clear-none';

export type TIsolation = 'isolate' | 'isolation-auto';

export type TObjectFit =
| 'object-contain'
| 'object-cover'
Expand Down Expand Up @@ -3190,6 +3192,7 @@ export type TLayout =
| TContainer
| TFloat
| TClear
| TIsolation
| TObjectFit
| TOverflow
| TOverscrollBehavior
Expand Down Expand Up @@ -14285,6 +14288,16 @@ export type TPseudoClasses =
| 'lg:invert'
| 'xl:invert'
| '2xl:invert'
| 'sm:isolate'
| 'md:isolate'
| 'lg:isolate'
| 'xl:isolate'
| '2xl:isolate'
| 'sm:isolation-auto'
| 'md:isolation-auto'
| 'lg:isolation-auto'
| 'xl:isolation-auto'
| '2xl:isolation-auto'
| 'sm:justify-start'
| 'md:justify-start'
| 'lg:justify-start'
Expand Down

0 comments on commit 3022592

Please sign in to comment.