mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-09 23:06:06 +00:00
181 lines
3.0 KiB
SCSS
181 lines
3.0 KiB
SCSS
.checkout-tab {
|
|
height: 4rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
|
|
span, span > a {
|
|
font-size: 1.3rem;
|
|
@include headingFont;
|
|
}
|
|
|
|
&:not(.selected) {
|
|
background-color: $white;
|
|
border-bottom: 5px solid $min-accessible-grey;
|
|
|
|
span, span > a {
|
|
color: $min-accessible-grey;
|
|
}
|
|
}
|
|
|
|
&.selected {
|
|
background-color: $ofn-brand;
|
|
|
|
span, span > a {
|
|
color: $white;
|
|
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 {
|
|
margin-top: 3rem;
|
|
|
|
.medium-6, .medium-10 {
|
|
margin-right: auto;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.checkout-substep {
|
|
margin-bottom: 1rem;
|
|
margin-top: 5rem;
|
|
|
|
&:first-child {
|
|
margin-top: 3rem;
|
|
}
|
|
}
|
|
|
|
.checkout-title {
|
|
font-size: 1.06rem;
|
|
@include headingFont;
|
|
font-weight: $font-weight-bold;
|
|
text-decoration: underline;
|
|
color: $darker-grey;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.checkout-input {
|
|
margin-bottom: 1.5rem;
|
|
|
|
.field_with_errors {
|
|
label {
|
|
font-weight: $font-weight-bold;
|
|
color: $red-700;
|
|
}
|
|
input {
|
|
border-color: $red-700;
|
|
}
|
|
}
|
|
|
|
label {
|
|
margin-bottom: 0.3rem;
|
|
}
|
|
|
|
input,
|
|
select {
|
|
margin: 0;
|
|
}
|
|
|
|
span.formError {
|
|
background-color: rgba(193, 18, 43, 0.1);
|
|
color: $red-700;
|
|
font-style: normal;
|
|
margin: 0;
|
|
font-size: 0.8rem;
|
|
display: block;
|
|
padding-left: 5px;
|
|
padding-right: 5px;
|
|
padding-top: 2px;
|
|
padding-bottom: 2px;
|
|
|
|
&.standalone {
|
|
padding: 10px;
|
|
}
|
|
}
|
|
|
|
#distributor_address.panel {
|
|
font-size: 0.875rem;
|
|
padding: 1rem;
|
|
|
|
span {
|
|
white-space: pre-wrap;
|
|
}
|
|
}
|
|
|
|
a {
|
|
color: $teal-400;
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
|
|
.checkout-submit {
|
|
margin-top: 5rem;
|
|
margin-bottom: 5rem;
|
|
|
|
.button {
|
|
width: 100%;
|
|
margin-bottom: 2rem;
|
|
border-radius: 0.5em;
|
|
|
|
&.primary {
|
|
background-color: $orange-500;
|
|
}
|
|
|
|
&.cancel {
|
|
background-color: $grey-100;
|
|
color: $black;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.summary {
|
|
margin-bottom: 2px;
|
|
font-size: 0.875rem;
|
|
|
|
.summary-label {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.summary-value {
|
|
|
|
}
|
|
|
|
.summary-edit {
|
|
color: $teal-400;
|
|
text-decoration: underline;
|
|
display: block;
|
|
margin-top: 5px;
|
|
&:after {
|
|
background-image: image-url("edit-with-pen.svg");
|
|
content: " ";
|
|
display: inline-block;
|
|
width: 1em;
|
|
height: 1em;
|
|
margin-left: 5px;
|
|
line-height: 1em;
|
|
position: relative;
|
|
top: 2px;
|
|
}
|
|
}
|
|
}
|