-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* rough implementation * style with grid Co-authored-by: Ari Stathopoulos <[email protected]> * revert to flex * toolbar controls * polish grid view + change to <ul> * regenerate fixtures for query+loop * fix php lint * wrap contents in render callback Co-authored-by: Ari Stathopoulos <[email protected]>
- Loading branch information
1 parent
3dff67a
commit 0fe880b
Showing
12 changed files
with
216 additions
and
79 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,8 @@ | |
a { | ||
display: inline-block; | ||
} | ||
img { | ||
max-width: 100%; | ||
height: auto; | ||
} | ||
} |
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
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,3 +1,5 @@ | ||
.editor-styles-wrapper .wp-block.wp-block-query-loop { | ||
.wp-block.wp-block-query-loop { | ||
max-width: 100%; | ||
padding-left: 0; | ||
list-style: none; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
.wp-block-query-loop { | ||
max-width: 100%; | ||
list-style: none; | ||
padding: 0; | ||
|
||
li { | ||
clear: both; | ||
} | ||
|
||
&.is-flex-container { | ||
flex-direction: row; | ||
display: flex; | ||
flex-wrap: wrap; | ||
|
||
li { | ||
margin: 0 1.25em 1.25em 0; | ||
width: 100%; | ||
} | ||
|
||
@include break-small { | ||
@for $i from 2 through 6 { | ||
&.is-flex-container.columns-#{ $i } > li { | ||
width: calc((100% / #{ $i }) - 1.25em + (1.25em / #{ $i })); | ||
|
||
&:nth-child( #{ $i }n ) { | ||
margin-right: 0; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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
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.