mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Add the progress bar
This commit is contained in:
parent
8336ffd2a6
commit
f3c9787c68
2 changed files with 19 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
|||
padding: 24px 48px;
|
||||
margin: 0 -20px 48px -20px;
|
||||
border-bottom: 1px solid $color-gray-300;
|
||||
position: relative;
|
||||
|
||||
button.is-primary {
|
||||
padding: 10px 18px;
|
||||
|
@ -34,8 +35,20 @@
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
&--progress-bar {
|
||||
position: absolute;
|
||||
bottom: 0px;
|
||||
left: 0;
|
||||
background-color: $color-blueberry;
|
||||
height: 4px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 480px) {
|
||||
flex-wrap: wrap;
|
||||
row-gap: 8px;
|
||||
|
||||
&--progress-bar {
|
||||
display:none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -68,6 +68,12 @@ const Navigation = ( {
|
|||
</Button>
|
||||
</div>
|
||||
) }
|
||||
<div
|
||||
className="ppcp-r-navigation--progress-bar"
|
||||
style={ {
|
||||
width: `${ ( currentStep / ( stepperOrder.length - 1 ) ) * 90 }%`
|
||||
} }
|
||||
></div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue