WIP add unique styles for two and three button options.
This commit is contained in:
parent
8455534ef0
commit
cebd5e7f81
2 changed files with 15 additions and 6 deletions
|
|
@ -191,7 +191,7 @@ export default {
|
|||
classes = 'd-flex flex-row p-0';
|
||||
break;
|
||||
case 'listCard':
|
||||
classes = 'row g-2 justify-content-center';
|
||||
classes = 'row g-2 g-md-5 justify-content-center mb-1 flex-nowrap';
|
||||
if (this.isWide) {
|
||||
classes += ' flex-column';
|
||||
}
|
||||
|
|
@ -226,6 +226,15 @@ export default {
|
|||
break;
|
||||
default:
|
||||
}
|
||||
// Determine number of buttons and add class accordingly.
|
||||
// This is to accommodate unique spacing per design specs.
|
||||
if (this.buttonTypeString === 'listCard' && this.buttonsInfo.length > 2) {
|
||||
classes += ' two-list-card-width';
|
||||
}
|
||||
|
||||
if (this.buttonTypeString === 'listCard' && this.buttonsInfo.length === 1) {
|
||||
classes += ' one-list-card-width';
|
||||
}
|
||||
|
||||
return classes;
|
||||
},
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
v-slot="{ meta }"
|
||||
@submit="onSubmit"
|
||||
@invalidSubmit="onInvalidSubmit">
|
||||
<div class="container-fluid fade-on-route-transition">
|
||||
<div class="container-fluid fade-on-route-transition replace-options-question">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-6 px-0 px-md-2">
|
||||
<siteHeader cmsWidgetName="SiteHeaderWidget" />
|
||||
|
|
@ -469,9 +469,9 @@ export default {
|
|||
|
||||
<style lang="scss">
|
||||
.replace-options-question {
|
||||
.two-list-card-width {
|
||||
width: 100%;
|
||||
flex: 0 auto;
|
||||
}
|
||||
.two-list-card-width {
|
||||
width: 100%;
|
||||
flex: 0 auto;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
Loading…
Reference in a new issue