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

Release: 9.6.4 #8618

Merged
merged 5 commits into from
Mar 3, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Show three Express Payments buttons in-line (#8601)
  • Loading branch information
nielslange committed Mar 3, 2023
commit 09376f3c5ea14de54edccca76a29f4badffc8944
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