Merge pull request #2719 from Safelite/CASH-1043-page-alignment

Cash 1043 page alignment and style updates.
This commit is contained in:
CarlNation 2025-07-31 13:14:28 -04:00 committed by GitHub
commit e85af17fc7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 18 additions and 28 deletions

View file

@ -7,7 +7,6 @@
<textBlock <textBlock
v-show="durationTextBlockCopy" v-show="durationTextBlockCopy"
:customText="durationTextBlockCopy" :customText="durationTextBlockCopy"
justifyText="center"
typeStyle="small" typeStyle="small"
marginTopSizeOverride="0" marginTopSizeOverride="0"
class="duration-text-block" /> class="duration-text-block" />
@ -1027,6 +1026,10 @@ export default {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
.duration-text-block {
text-align: left;
}
.date-picker-header { .date-picker-header {
margin-bottom: 1.5rem; margin-bottom: 1.5rem;
} }
@ -1050,7 +1053,6 @@ export default {
} }
.calendar-grid-container { .calendar-grid-container {
margin: 0 auto 1rem auto; margin: 0 auto 1rem auto;
max-width: 360px;
position: relative; position: relative;
transition: transition:
height ease 2s, height ease 2s,
@ -1188,8 +1190,6 @@ export default {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
min-width: 2.5rem;
width: 2.5rem;
height: 2.5rem; height: 2.5rem;
border: 2px solid transparent; border: 2px solid transparent;
@ -1227,14 +1227,8 @@ export default {
&.selectable-day { &.selectable-day {
label { label {
background-color: $blue-100; background-color: $blue-100;
min-width: 2.75rem;
width: 2.75rem;
border-radius: 50%; border-radius: 50%;
cursor: pointer; cursor: pointer;
@include media-breakpoint-up(md) {
min-width: 3rem;
width: 3rem;
}
&:hover { &:hover {
border: 2px solid $blue; border: 2px solid $blue;
} }
@ -1413,18 +1407,13 @@ export default {
line-height: 1.2; line-height: 1.2;
justify-content: center; justify-content: center;
padding: 0.25rem; padding: 0.25rem;
margin: 0.15rem;
} }
&.selectable-day { &.selectable-day {
label { label {
color: $black; color: $black;
background-color: $blue-100; background-color: $blue-100;
min-width: 2.75rem;
width: 2.75rem;
border-radius: 0.25rem; border-radius: 0.25rem;
@include media-breakpoint-up(md) {
min-width: 3rem;
width: 3rem;
}
} }
} }
&.current-day { &.current-day {
@ -1432,7 +1421,6 @@ export default {
font-weight: 600; font-weight: 600;
font-family: "UrbanistSemibold"; font-family: "UrbanistSemibold";
color: $black; color: $black;
font-size-adjust: 0.5; // needed for Averta fonts baseline alignment
} }
} }
} }
@ -1443,7 +1431,6 @@ export default {
color: $black; color: $black;
font-weight: 400; font-weight: 400;
font-family: "UrbanistSemibold"; font-family: "UrbanistSemibold";
font-size-adjust: 0.5; // needed for Averta fonts baseline alignment
&.price { &.price {
font-weight: 400; font-weight: 400;

View file

@ -60,8 +60,8 @@
alertClass="alert-success" /> alertClass="alert-success" />
</div> </div>
</div> </div>
<div class="row justify-content-center appointment-type"> <div class="row appointment-type">
<div class="col-md-6"> <div class="col-12 col-md-10 col-lg-8 col-xl-7">
<appointmentTypeQuestion <appointmentTypeQuestion
v-model="appointmentTypeFromAppointmentTypeQuestion" v-model="appointmentTypeFromAppointmentTypeQuestion"
v-show="isAppointmentTypeDisplayed" v-show="isAppointmentTypeDisplayed"
@ -78,9 +78,9 @@
</div> </div>
</div> </div>
<div <div
class="row justify-content-center your-shop-location" class="row your-shop-location"
v-if="appointmentType && appointmentType !== appointmentTypeStrings.MOBILE"> v-if="appointmentType && appointmentType !== appointmentTypeStrings.MOBILE">
<div class="col-md-6 col-xl-4"> <div class="col-12 col-md-10 col-lg-8 col-xl-7">
<button-question <button-question
class="shop-question-button" class="shop-question-button"
ref="buttonQuestion" ref="buttonQuestion"
@ -91,9 +91,8 @@
:questionText="questionText" :questionText="questionText"
buttonTypeString="shopListButton" buttonTypeString="shopListButton"
:buttonTypeObject="shopListButton" :buttonTypeObject="shopListButton"
groupName="chooseShop" groupName="chooseShop" />
textPosition="text-start" /> <div>
<div class="text-center">
<textBlock <textBlock
v-if="mobileFeeApplies && isMobileSelected" v-if="mobileFeeApplies && isMobileSelected"
:customText="mobileFeeText" :customText="mobileFeeText"
@ -113,8 +112,8 @@
<contentGroupModal ref="RecalModal" cmsWidgetName="RecalModal" /> <contentGroupModal ref="RecalModal" cmsWidgetName="RecalModal" />
</div> </div>
</div> </div>
<div class="row justify-content-center date-picker-wrapper"> <div class="row date-picker-wrapper">
<div class="col-md-6 col-xl-4"> <div class="col-12 col-md-10 col-lg-8 col-xl-7">
<locationAlerts cmsWidgetPrefix="LocationAlert-" ref="locationAlerts" /> <locationAlerts cmsWidgetPrefix="LocationAlert-" ref="locationAlerts" />
<datePicker <datePicker
:currentZip="zipCode" :currentZip="zipCode"
@ -1748,7 +1747,7 @@ export default {
</script> </script>
<style lang="scss"> <style lang="scss">
.container-fluid { .container {
&.page-schedule { &.page-schedule {
padding: 0 1rem; padding: 0 1rem;
.text-link-small { .text-link-small {
@ -1785,6 +1784,10 @@ export default {
padding: 0 0.75rem; padding: 0 0.75rem;
} }
} }
.question-text > span {
display: flex;
justify-content: flex-start;
}
} }
.shop-question-button .list-button-content { .shop-question-button .list-button-content {
background: $blue-100; background: $blue-100;