-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Nest CSS, add aspect ratio to figure
- Loading branch information
Melissa Piper
committed
Apr 25, 2024
1 parent
359d9c3
commit 808e95b
Showing
2 changed files
with
18 additions
and
11 deletions.
There are no files selected for viewing
26 changes: 15 additions & 11 deletions
26
wp-content/themes/wp-starter/src/styles/blocks/logo-grid.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
@layer components { | ||
.acf-block-logo-grid figure { | ||
@apply flex; | ||
@apply basis-1/2-gap lg:basis-1/4-gap; | ||
} | ||
.acf-block-logo-grid { | ||
& figure { | ||
@apply flex; | ||
@apply aspect-grid-image; | ||
@apply basis-1/2-gap lg:basis-1/4-gap; | ||
|
||
.acf-block-logo-grid figure img { | ||
@apply block; | ||
@apply max-w-full; | ||
} | ||
& img { | ||
@apply block; | ||
@apply max-w-full h-full; | ||
@apply object-contain; | ||
} | ||
} | ||
|
||
/* Fix for image sizing in editor */ | ||
.acf-block-logo-grid .components-resizable-box__container { | ||
@apply !shrink; | ||
/* Fix for image sizing in editor */ | ||
& .components-resizable-box__container { | ||
@apply !shrink; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters