Skip to content

Commit

Permalink
Fix WooCommerce grid between 1000 and 768px to close #249
Browse files Browse the repository at this point in the history
  • Loading branch information
madalingorbanescu committed May 24, 2021
1 parent a3c5862 commit 8045b84
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 18 deletions.
3 changes: 0 additions & 3 deletions dist/css/woocommerce/block-editor-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,6 @@
[class][class][class] .wc-block-grid.has-1-columns .wc-block-grid__product {
margin-right: auto;
margin-left: auto; }
[class][class][class] .wc-block-grid .wc-block-grid__product[class] {
flex: 1;
max-width: 100%; }
@media only screen and (min-width: 1000px) {
[class][class][class] .wc-block-grid.has-2-columns .wc-block-grid__product {
flex: 1 0 calc(50%);
Expand Down
3 changes: 0 additions & 3 deletions dist/css/woocommerce/block-editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,6 @@
[class][class][class] .wc-block-grid.has-1-columns .wc-block-grid__product {
margin-left: auto;
margin-right: auto; }
[class][class][class] .wc-block-grid .wc-block-grid__product[class] {
flex: 1;
max-width: 100%; }
@media only screen and (min-width: 1000px) {
[class][class][class] .wc-block-grid.has-2-columns .wc-block-grid__product {
flex: 1 0 calc(50%);
Expand Down
3 changes: 0 additions & 3 deletions dist/css/woocommerce/style-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -2585,9 +2585,6 @@ ul.order_details[class] {
[class][class][class] .wc-block-grid.has-1-columns .wc-block-grid__product {
margin-right: auto;
margin-left: auto; }
[class][class][class] .wc-block-grid .wc-block-grid__product[class] {
flex: 1;
max-width: 100%; }
@media only screen and (min-width: 1000px) {
[class][class][class] .wc-block-grid.has-2-columns .wc-block-grid__product {
flex: 1 0 calc(50%);
Expand Down
3 changes: 0 additions & 3 deletions dist/css/woocommerce/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2585,9 +2585,6 @@ ul.order_details[class] {
[class][class][class] .wc-block-grid.has-1-columns .wc-block-grid__product {
margin-left: auto;
margin-right: auto; }
[class][class][class] .wc-block-grid .wc-block-grid__product[class] {
flex: 1;
max-width: 100%; }
@media only screen and (min-width: 1000px) {
[class][class][class] .wc-block-grid.has-2-columns .wc-block-grid__product {
flex: 1 0 calc(50%);
Expand Down
7 changes: 1 addition & 6 deletions src/scss/woocommerce/blocks/_grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,7 @@
margin-right: auto;
}
}

.wc-block-grid__product[class] {
flex: 1;
max-width: 100%;
}


@include above(lap) {
@for $i from 2 to 9 {
&.has-#{$i}-columns .wc-block-grid__product {
Expand Down

0 comments on commit 8045b84

Please sign in to comment.