-
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.
* [#5] Style logo grid using Tailwind * Add fix for image size in editor, move style directory * Create column classes minus gap * Spacing cleanup * Nest CSS, add aspect ratio to figure * Remove call to CSS in block.json
- Loading branch information
Melissa Piper
authored
Apr 25, 2024
1 parent
2a0a45c
commit 692e0e9
Showing
6 changed files
with
36 additions
and
16 deletions.
There are no files selected for viewing
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
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
@layer components { | ||
.acf-block-logo-grid { | ||
& figure { | ||
@apply flex; | ||
@apply aspect-grid-image; | ||
@apply basis-1/2-gap lg:basis-1/4-gap; | ||
|
||
& img { | ||
@apply block; | ||
@apply max-w-full h-full; | ||
@apply object-contain; | ||
} | ||
} | ||
|
||
/* 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
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
Oops, something went wrong.