This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Product Gallery Thumbnails: Revert thumbnails styling from #11665
- Loading branch information
1 parent
7b3b823
commit 3bd9afa
Showing
4 changed files
with
23 additions
and
59 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 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
28 changes: 13 additions & 15 deletions
28
assets/js/blocks/product-gallery/inner-blocks/product-gallery-thumbnails/editor.scss
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,19 +1,17 @@ | ||
$thumbnails: ".wc-block-editor-product-gallery-thumbnails"; | ||
|
||
#{$thumbnails} { | ||
display: flex; | ||
.wc-block-product-gallery-thumbnails { | ||
width: fit-content; | ||
.wc-block-editor-product-gallery-thumbnails { | ||
display: flex; | ||
flex-flow: column nowrap; | ||
|
||
&.wc-block-editor-product-gallery-thumbnails--bottom { | ||
flex-direction: row; | ||
gap: 0 15px; | ||
} | ||
&.wc-block-editor-product-gallery-thumbnails--bottom { | ||
flex-flow: row nowrap; | ||
} | ||
|
||
&:not(.wc-block-editor-product-gallery-thumbnails--bottom) { | ||
flex-direction: column; | ||
gap: 15px 0; | ||
img { | ||
width: 100px; | ||
height: 100px; | ||
margin: 5px; | ||
} | ||
} | ||
} | ||
|
||
.wc-block-product-gallery-thumbnails { | ||
flex-basis: 30%; | ||
} |
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