mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Add a success class for step that are already validated
This commit is contained in:
committed by
Matt-Yorkley
parent
623753a745
commit
66892ed51a
@@ -26,6 +26,25 @@
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
&.success {
|
||||
border-bottom: 5px solid $clr-turquoise-bright;
|
||||
|
||||
span {
|
||||
&:after {
|
||||
content: '✓';
|
||||
background-color: $clr-turquoise-bright;
|
||||
color: $white;
|
||||
border-radius: 50%;
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
line-height: 1em;
|
||||
display: inline-block;
|
||||
font-family: $base-font-family;
|
||||
margin-left: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.checkout-step {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
%div.flex
|
||||
%div.columns.three.text-center.checkout-tab{"class": ("selected" if @checkout_step == "details")}
|
||||
%div.columns.three.text-center.checkout-tab{"class": [("selected" if @checkout_step == "details"), ("success" unless @checkout_step == "details")]}
|
||||
%span
|
||||
= t("split_checkout.your_details")
|
||||
%div.columns.three.text-center.checkout-tab{"class": ("selected" if @checkout_step == "payment")}
|
||||
%div.columns.three.text-center.checkout-tab{"class": [("selected" if @checkout_step == "payment"), ("success" if @checkout_step == "summary")]}
|
||||
%span
|
||||
= t("split_checkout.payment_method")
|
||||
%div.columns.three.text-center.checkout-tab{"class": ("selected" if @checkout_step == "summary")}
|
||||
|
||||
Reference in New Issue
Block a user