mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
💄 Adjust CSS to make the overlay look nice
This commit is contained in:
parent
e79a6be2c7
commit
5851724422
1 changed files with 15 additions and 7 deletions
|
@ -1,12 +1,10 @@
|
|||
.ppcp-r-spinner-overlay {
|
||||
width: var(--spinner-overlay-width);
|
||||
height: var(--spinner-overlay-height);
|
||||
box-shadow: var(--spinner-overlay-box-shadow);
|
||||
background: var(--spinner-overlay-color);
|
||||
position: fixed;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 10;
|
||||
|
||||
.components-spinner {
|
||||
|
@ -26,4 +24,14 @@
|
|||
text-align: center;
|
||||
top: calc(50% + 20px + var(--spinner-size));
|
||||
}
|
||||
|
||||
&.ppcp--is-modal {
|
||||
position: fixed;
|
||||
width: var(--spinner-overlay-width);
|
||||
height: var(--spinner-overlay-height);
|
||||
box-shadow: var(--spinner-overlay-box-shadow);
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue