mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
Improve the warning in the new UI for multiple warnings
This commit is contained in:
parent
f657676832
commit
1e7d0cfb68
8 changed files with 74 additions and 52 deletions
|
@ -187,7 +187,7 @@
|
|||
}
|
||||
|
||||
/* Add invisible bridge to prevent gap between icon and popover */
|
||||
&::before {
|
||||
&:before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 100%;
|
||||
|
@ -202,6 +202,9 @@
|
|||
.ppcp--method-warning-message {
|
||||
position: absolute;
|
||||
bottom: calc(100% + 15px);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 250px;
|
||||
|
@ -216,7 +219,7 @@
|
|||
transition: opacity 0.2s ease, visibility 0.2s;
|
||||
pointer-events: none;
|
||||
|
||||
&::after {
|
||||
&:after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
|
@ -249,6 +252,14 @@
|
|||
background: inherit;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
code {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style: inside;
|
||||
}
|
||||
}
|
||||
|
||||
&:hover .ppcp--method-warning-message,
|
||||
|
@ -261,7 +272,7 @@
|
|||
|
||||
// For RTL support
|
||||
html[dir="rtl"] .ppcp--method-warning {
|
||||
&::before {
|
||||
&:before {
|
||||
left: auto;
|
||||
right: 50%;
|
||||
transform: translateX(50%);
|
||||
|
@ -272,7 +283,7 @@ html[dir="rtl"] .ppcp--method-warning {
|
|||
right: 50%;
|
||||
transform: translateX(50%);
|
||||
|
||||
&::after {
|
||||
&:after {
|
||||
left: auto;
|
||||
right: 50%;
|
||||
margin-right: -6px;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue