116 lines
1.9 KiB
SCSS
116 lines
1.9 KiB
SCSS
/* Steps and tracking code */
|
|
div#side { position: relative; }
|
|
|
|
body.one-step div#tracking-code {
|
|
display: inline-block;
|
|
position: relative;
|
|
top: 1em;
|
|
}
|
|
|
|
div#tracking-code {
|
|
position: absolute;
|
|
top: 5em;
|
|
left: 50%;
|
|
text-align: center;
|
|
|
|
margin-bottom: 2rem;
|
|
@media screen and (max-width: $mobile-limit) {
|
|
order: 0;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
h3 { padding: 0; display: block; }
|
|
|
|
a {
|
|
padding: 0;
|
|
border: none;
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
|
|
div.tracking-code-part {
|
|
position: relative;
|
|
left: -43%;
|
|
background-color: #82cebb;
|
|
padding: 1em 1em;
|
|
|
|
&::before {
|
|
content: ' ';
|
|
background-image: url(img/ticket.svg);
|
|
position: absolute;
|
|
height: 100%;
|
|
width: 3.3em;
|
|
left: -3.3em;
|
|
top: 0;
|
|
background-size: contain;
|
|
@media screen and (max-width: $mobile-limit) {
|
|
width: 4.3em;
|
|
left: -3.6em;
|
|
}
|
|
}
|
|
}
|
|
|
|
body.one-step #steps { display: none; }
|
|
body.without-tracking-code #steps { margin-bottom: 2em; }
|
|
|
|
.wcs-steps {
|
|
margin-top: 0;
|
|
margin-bottom: 8.5em;
|
|
|
|
@media ($mq-min--wcs-steps-horizontal-layout) {
|
|
&--list {
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
@include desktop-horizontal-steps() {
|
|
margin-top: 8em;
|
|
margin-bottom: 11.5em;
|
|
}
|
|
}
|
|
|
|
.wcs-step {
|
|
&--marker {
|
|
border: 5px solid #9b9b9b;
|
|
}
|
|
|
|
&.current & {
|
|
&--marker {
|
|
border-color: $primary-color;
|
|
}
|
|
}
|
|
|
|
&.step-before & {
|
|
&--marker {
|
|
background: #9b9b9b;
|
|
}
|
|
}
|
|
@media ($mq-min--wcs-steps-horizontal-layout) {
|
|
&:not(:last-child) {
|
|
flex-grow: 1;
|
|
}
|
|
max-width: 8.5rem;
|
|
&--marker-nb {
|
|
display: none;
|
|
}
|
|
&--label {
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
@include desktop-horizontal-steps() {
|
|
position: relative;
|
|
min-width: 5rem;
|
|
&--label {
|
|
text-align: left;
|
|
font-size: 0.8em;
|
|
display: block !important;
|
|
width: 12em;
|
|
position: absolute;
|
|
top: auto;
|
|
left: auto;
|
|
transform: rotate(-45deg);
|
|
transform-origin: -1.5em -1.5em;
|
|
}
|
|
}
|
|
} |