Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Show three Express Payments buttons in-line (#8601)
Browse files Browse the repository at this point in the history
Co-authored-by: Saad Tarhi <saad.trh@gmail.com>
  • Loading branch information
nielslange and tarhi-saad authored Mar 2, 2023
1 parent a36425d commit 710cc23
Showing 1 changed file with 11 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ $border-radius: 5px;

.wc-block-components-express-payment__event-buttons {
list-style: none;
display: flex;
flex-direction: row;
flex-wrap: wrap;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(calc(33% - 10px), 1fr));
grid-gap: 10px;
box-sizing: border-box;
width: 100%;
padding: 0;
margin: 0;
Expand All @@ -18,13 +19,20 @@ $border-radius: 5px;

> li {
margin: 0;
width: 100%;

> img {
width: 100%;
height: 48px;
}
}
}

@include breakpoint("<782px") {
.wc-block-components-express-payment__event-buttons {
grid-template-columns: 1fr;
}
}
}

.wc-block-components-express-payment--checkout {
Expand Down Expand Up @@ -85,28 +93,6 @@ $border-radius: 5px;
margin-bottom: em($gap);
}
}

.wc-block-components-express-payment__event-buttons {
> li {
box-sizing: border-box;
display: inline-block;
width: 50%;
}

> li:nth-child(even) {
padding-left: $gap-smaller;
}

> li:nth-child(odd) {
padding-right: $gap-smaller;
}

> li:only-child {
display: block;
width: 100%;
padding: 0;
}
}
}

.wc-block-components-express-payment--cart {
Expand Down

0 comments on commit 710cc23

Please sign in to comment.