Adjustments to apm button layouts.

This commit is contained in:
Pedro Silva 2023-12-11 17:14:43 +00:00
parent 55c7900a3e
commit ec0dd5221d
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3
11 changed files with 159 additions and 174 deletions

View file

@ -23,6 +23,11 @@
line-height: 0;
}
#ppc-button-minicart {
line-height: 0;
display: block;
}
.ppcp-button-apm {
@include apm-button.button;
}

View file

@ -1,8 +1,22 @@
@mixin button {
min-width: 200px;
overflow: hidden;
min-width: 0;
max-width: 750px;
line-height: 0;
border-radius: 4px;
// Defaults
height: 45px;
margin-top: 14px;
&.ppcp-button-pill {
border-radius: 50px;
}
&.ppcp-button-minicart {
display: block;
}
.ppcp-width-min & {
height: 35px;
@ -15,4 +29,14 @@
.ppcp-width-500 & {
height: 55px;
}
// No margin on block layout.
.wp-block-woocommerce-checkout &, .wp-block-woocommerce-cart & {
margin: 0;
min-width: 0;
}
.wp-admin & {
pointer-events: none;
}
}