mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
💄 Improve the (broken) UI in the Styling-tab
This commit is contained in:
parent
55d1fd3699
commit
85794e77ce
7 changed files with 198 additions and 135 deletions
|
@ -4,6 +4,7 @@
|
|||
@import './reusable-components/busy-state';
|
||||
@import './reusable-components/button';
|
||||
@import './reusable-components/fields';
|
||||
@import './reusable-components/hstack';
|
||||
@import './reusable-components/navigation';
|
||||
@import './reusable-components/onboarding-header';
|
||||
@import './reusable-components/payment-method-icons';
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
.components-flex {
|
||||
display: flex;
|
||||
-webkit-box-align: stretch;
|
||||
align-items: stretch;
|
||||
flex-direction: column;
|
||||
-webkit-box-pack: center;
|
||||
justify-content: center;
|
||||
|
||||
.components-h-stack {
|
||||
flex-direction: row;
|
||||
justify-content: flex-start;
|
||||
gap: 32px;
|
||||
}
|
||||
|
||||
// Fix layout for checkboxes inside a flex-stack.
|
||||
.components-checkbox-control >.components-base-control__field > .components-flex {
|
||||
flex-direction: row;
|
||||
gap: 12px;
|
||||
}
|
||||
}
|
|
@ -27,6 +27,16 @@ $width-settings-panel: 422px;
|
|||
padding-bottom: 24px;
|
||||
margin-bottom: 28px;
|
||||
border-bottom: 1px solid var(--color-separators);
|
||||
|
||||
&:last-child {
|
||||
padding-bottom: 0;
|
||||
margin-bottom: 0;
|
||||
border-bottom-style: none;
|
||||
}
|
||||
}
|
||||
|
||||
.components-radio-control__option {
|
||||
min-width: 100px;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -65,46 +75,7 @@ $width-settings-panel: 422px;
|
|||
color: $color-black;
|
||||
}
|
||||
}
|
||||
|
||||
.components-flex {
|
||||
gap: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
&__payment-method-checkboxes {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
.ppcp-r {
|
||||
&__horizontal-control {
|
||||
.components-flex {
|
||||
flex-direction: row;
|
||||
justify-content: flex-start;
|
||||
gap: 32px;
|
||||
}
|
||||
|
||||
|
||||
.components-radio-control {
|
||||
&__option {
|
||||
gap: 12px;
|
||||
|
||||
input {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
label {
|
||||
@include font(13, 20, 400);
|
||||
color: $color-black;
|
||||
}
|
||||
}
|
||||
|
||||
input {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
// */
|
||||
//*/
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue