mod-build 4.0.0-alpha.7 → 4.0.0-alpha.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/package.json +1 -1
  2. package/tasks/grab-cdn.js +1 -2
  3. package/tasks/grab-form-helpers.js +1 -2
  4. package/tasks/grab-shared-components.js +1 -2
  5. package/tasks/grab-shared-scripts.js +1 -2
  6. package/tasks/serve.js +3 -9
  7. package/tasks/templates.js +1 -2
  8. package/vite.config.js +7 -8
  9. package/src/accessible-components/button/_button.scss +0 -199
  10. package/src/accessible-components/button/back-button.html +0 -8
  11. package/src/accessible-components/button/button.html +0 -17
  12. package/src/accessible-components/carousel/_carousel.scss +0 -112
  13. package/src/accessible-components/carousel/carousel.html +0 -25
  14. package/src/accessible-components/checkbox/_checkbox.scss +0 -96
  15. package/src/accessible-components/checkbox/checkbox.html +0 -8
  16. package/src/accessible-components/expand-collapse/_expand-collapse.scss +0 -129
  17. package/src/accessible-components/expand-collapse/expand-collapse.html +0 -14
  18. package/src/accessible-components/expand-collapse/expand-collapse.js +0 -52
  19. package/src/accessible-components/expand-collapse/expand-collapse.min.js +0 -2
  20. package/src/accessible-components/expand-collapse/expand-collapse.min.js.map +0 -1
  21. package/src/accessible-components/featured-block/_featured-block.scss +0 -219
  22. package/src/accessible-components/featured-block/featured-block.html +0 -54
  23. package/src/accessible-components/foot-assets/foot-assets.html +0 -96
  24. package/src/accessible-components/footer/footer.html +0 -2
  25. package/src/accessible-components/gtm-body/gtm-body.html +0 -4
  26. package/src/accessible-components/head/head.html +0 -183
  27. package/src/accessible-components/header/_header.scss +0 -287
  28. package/src/accessible-components/header/header.html +0 -66
  29. package/src/accessible-components/hero/_hero.scss +0 -397
  30. package/src/accessible-components/hero/hero.html +0 -53
  31. package/src/accessible-components/how-it-works/_how-it-works.scss +0 -217
  32. package/src/accessible-components/how-it-works/how-it-works-carousel.html +0 -12
  33. package/src/accessible-components/how-it-works/how-it-works-static.html +0 -12
  34. package/src/accessible-components/how-it-works/how-it-works.html +0 -14
  35. package/src/accessible-components/information/_information.scss +0 -94
  36. package/src/accessible-components/information/information.html +0 -32
  37. package/src/accessible-components/input/_input.scss +0 -204
  38. package/src/accessible-components/input/input.html +0 -22
  39. package/src/accessible-components/input/textarea.html +0 -9
  40. package/src/accessible-components/partners/_partners.scss +0 -234
  41. package/src/accessible-components/partners/partners.html +0 -56
  42. package/src/accessible-components/picture/picture.html +0 -19
  43. package/src/accessible-components/preloader/_preloader.scss +0 -61
  44. package/src/accessible-components/preloader/preloader.html +0 -23
  45. package/src/accessible-components/progress-bar/_progress-bar.scss +0 -140
  46. package/src/accessible-components/progress-bar/progress-bar.html +0 -21
  47. package/src/accessible-components/progress-bar/progress-bar.js +0 -37
  48. package/src/accessible-components/progress-bar/progress-bar.min.js +0 -2
  49. package/src/accessible-components/progress-bar/progress-bar.min.js.map +0 -1
  50. package/src/accessible-components/radio-button/_radio-button.scss +0 -577
  51. package/src/accessible-components/radio-button/radio-button.html +0 -34
  52. package/src/accessible-components/reviews/_reviews.scss +0 -175
  53. package/src/accessible-components/reviews/reviews-carousel.html +0 -12
  54. package/src/accessible-components/reviews/reviews-static.html +0 -12
  55. package/src/accessible-components/reviews/reviews.html +0 -37
  56. package/src/accessible-components/select/_select.scss +0 -69
  57. package/src/accessible-components/select/select.html +0 -10
  58. package/src/accessible-components/steps/_steps.scss +0 -625
  59. package/src/accessible-components/steps/defaultFormFieldConfig.json +0 -109
  60. package/src/accessible-components/steps/step-fields.html +0 -33
  61. package/src/accessible-components/steps/steps.html +0 -158
  62. package/src/accessible-components/tcpa/_tcpa.scss +0 -49
  63. package/src/accessible-components/tcpa/tcpa.html +0 -9
  64. package/src/accessible-components/tile/_tile.scss +0 -117
  65. package/src/accessible-components/tile/tile.html +0 -14
  66. package/src/accessible-components/value-props/_value-props.scss +0 -100
  67. package/src/accessible-components/value-props/value-props.html +0 -17
  68. package/src/accessible-components/zip-control/_zip-control.scss +0 -79
  69. package/src/accessible-components/zip-control/zip-control.html +0 -10
  70. package/src/resources/scripts/abandonment/abandonment-1ff95fadc44690313c96.min.js +0 -2
  71. package/src/resources/scripts/abandonment/abandonment.min.js +0 -2
  72. package/src/resources/scripts/footer/footer-component-7b5e263f64568573ecc0.min.js +0 -2
  73. package/src/resources/scripts/footer/footer-component.min.js +0 -2
  74. package/src/resources/scripts/helpers/initNumericOnlyFields.min.js +0 -2
  75. package/src/resources/scripts/helpers/initNumericOnlyFields.min.js.map +0 -1
  76. package/src/resources/scripts/helpers/isZipCodeValid.min.js +0 -2
  77. package/src/resources/scripts/helpers/isZipCodeValid.min.js.map +0 -1
  78. package/src/resources/scripts/mod-alytics/modalytics-0ac7d7a5a72ea67a0f47.min.js +0 -2
  79. package/src/resources/scripts/mod-alytics/modalytics.min.js +0 -2
  80. package/src/resources/scripts/mod-form/form/homeowner-f6215e01401c83ab041e.min.js +0 -2
  81. package/src/resources/scripts/mod-form/form/homeowner.min.js +0 -2
  82. package/src/resources/scripts/mod-utils/modutils-9821c9306592e4170377.min.js +0 -2
  83. package/src/resources/scripts/mod-utils/modutils.min.js +0 -2
  84. package/src/resources/styles/components/abandonment/abandonment-a8571a9e32ed6ef9acb4.min.css +0 -1
  85. package/src/resources/styles/components/abandonment/abandonment.min.css +0 -1
  86. package/src/resources/styles/components/footer/mod-footer-1fb2cec3278f29df57d0.min.css +0 -1
  87. package/src/resources/styles/components/footer/mod-footer.min.css +0 -1
  88. package/src/resources/styles/components/footer/qs-footer-9a3b0ab00428b03e6e9e.min.css +0 -1
  89. package/src/resources/styles/components/footer/qs-footer.min.css +0 -1
  90. package/src/resources/templates/modals/about/index.html +0 -0
  91. package/src/resources/templates/modals/contact-us/index.html +0 -0
  92. package/src/resources/templates/modals/faq/index.html +0 -0
  93. package/src/resources/templates/modals/privacy/index.html +0 -0
  94. package/src/resources/templates/modals/terms/index.html +0 -0
  95. package/src/temp/scripts/maxmind-geoip2.js +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "4.0.0-alpha.7",
3
+ "version": "4.0.0-alpha.9",
4
4
  "description": "Share components for S3 sites.",
5
5
  "type": "module",
6
6
  "scripts": {
package/tasks/grab-cdn.js CHANGED
@@ -43,7 +43,7 @@ function streamToDestination(inputPath, destPath, fileName) {
43
43
  });
44
44
  }
45
45
 
46
- export default async function(config, done) {
46
+ export default async function(config) {
47
47
  const { nodeEnv, isLocal } = defaultSettings;
48
48
  const { isQSPage, isWhiteLabel, domain, page } = config;
49
49
  const { themeFile, cssThemes } = page;
@@ -109,5 +109,4 @@ export default async function(config, done) {
109
109
  });
110
110
 
111
111
  await Promise.all(filesPromiseMap);
112
- done();
113
112
  }
@@ -76,7 +76,7 @@ async function getHelpers() {
76
76
  return helpers;
77
77
  }
78
78
 
79
- export default async function(done) {
79
+ export default async function() {
80
80
  const { nodeEnv } = defaultSettings;
81
81
  const helpers = await getHelpers(defaultSettings);
82
82
 
@@ -90,5 +90,4 @@ export default async function(done) {
90
90
  });
91
91
 
92
92
  await Promise.all(filesPromiseMap);
93
- done();
94
93
  }
@@ -69,9 +69,8 @@ const getListOfSharedComponents = (defaultSettings, componentFolders) => {
69
69
  });
70
70
  }
71
71
 
72
- export default function(config, done) {
72
+ export default function(config) {
73
73
  const componentFolders = config.useAccessibleConfig ? ['accessible-components'] : ['shared-components'];
74
74
  console.log('running grab-shared-components');
75
75
  getListOfSharedComponents(defaultSettings, componentFolders);
76
- done();
77
76
  }
@@ -237,7 +237,7 @@ function getResource(task, fileNames, resourcePath = 'quote/resources') {
237
237
  })
238
238
  }
239
239
 
240
- export default async function(config, done) {
240
+ export default async function(config) {
241
241
  const { isLocal } = defaultSettings;
242
242
  const isQuotePage = config.siteData?.isQuotePage || config.isQuotePage;
243
243
  const useAccessibleComponents = config.siteData?.useAccessibleConfig || config.useAccessibleConfig;
@@ -261,6 +261,5 @@ export default async function(config, done) {
261
261
  });
262
262
 
263
263
  await Promise.all(getAllResources);
264
- done();
265
264
  }
266
265
  }
package/tasks/serve.js CHANGED
@@ -1,15 +1,9 @@
1
- import gulp from 'gulp';
2
1
  import grabSharedComponents from './grab-shared-components.js';
3
2
  import grabSharedScripts from './grab-shared-scripts.js';
4
- import clean from './clean.js';
5
3
  import grabCdn from './grab-cdn.js';
6
4
  import grabFormHelpers from './grab-form-helpers.js';
7
5
  import templates from './templates.js';
8
6
 
9
- export function done() {
10
- console.log('done');
11
- }
12
-
13
- export default function(config) {
14
- return gulp.series(clean, () => grabCdn(config), () => grabSharedComponents(config), () => grabSharedScripts(config), () => grabFormHelpers(config), () => templates(config), done);
15
- }
7
+ export function startModBuild(config) {
8
+ return [ grabCdn(config), grabSharedComponents(config), grabSharedScripts(config), grabFormHelpers(config), templates(config) ]
9
+ }
@@ -128,7 +128,7 @@ const fetchTcpaFromSitegenie = async () => {
128
128
  });
129
129
  };
130
130
 
131
- export default async function(done) {
131
+ export default async function() {
132
132
  if (Object.keys(siteData).length > 0) {
133
133
  if (!tempSiteData.doNotUseDefaultFieldConfig && !tempSiteData.defaultConfigCompleted) {
134
134
  if (tempSiteData.useAccessibleConfig) {
@@ -148,5 +148,4 @@ export default async function(done) {
148
148
 
149
149
  fs.writeFileSync(`${defaultSettings.srcFolder}/${defaultSettings.tmpFolder}/tempSiteData.json`, JSON.stringify(tempSiteData, null, 2));
150
150
 
151
- done();
152
151
  }
package/vite.config.js CHANGED
@@ -1,15 +1,13 @@
1
1
  import handlebars from '@vituum/vite-plugin-handlebars'
2
2
  import vituum from 'vituum'
3
- import { siteData } from './siteconfig.js'
4
3
  import { defaultSettings } from './src/data/config.js'
5
4
  import { defineConfig } from 'vite'
6
- import gulpServe from './tasks/serve.js'
7
- import { templateData } from './template.js'
5
+ import { grabCdnAssets, grabFormHelperAssets, grabSharedComponentAssets, grabSharedScriptAssets, templateAssets } from './tasks/serve.js'
8
6
  import { handlebarsHelpers } from './src/scripts/utils.js'
9
7
  import gulpHandlebarsFileInclude from 'gulp-handlebars-file-include'
10
8
  import eslint from 'vite-plugin-eslint'
11
9
 
12
- const themeSettings = { ...siteData(), ...templateData() }
10
+ const themeSettings = { }
13
11
 
14
12
  export default defineConfig((config = themeSettings) => ({
15
13
  build: {
@@ -17,6 +15,11 @@ export default defineConfig((config = themeSettings) => ({
17
15
  emptyOutDir: false
18
16
  },
19
17
  plugins: [
18
+ grabCdnAssets(config),
19
+ grabSharedComponentAssets(config),
20
+ grabSharedScriptAssets(config),
21
+ grabFormHelperAssets(config),
22
+ templateAssets(config),
20
23
  vituum(),
21
24
  handlebars({
22
25
  data: ['src/**/*.json'],
@@ -27,10 +30,6 @@ export default defineConfig((config = themeSettings) => ({
27
30
  }
28
31
  }),
29
32
  gulpHandlebarsFileInclude({}, { handlebarsHelpers }),
30
- {
31
- ...gulpServe(config),
32
- apply: 'serve'
33
- },
34
33
  {
35
34
  ...eslint(),
36
35
  apply: 'build',
@@ -1,199 +0,0 @@
1
- $button-border-radius: 2px !default;
2
- $button-cursor: pointer !default;
3
- $button-display: inline-block !default;
4
- $button-font-family: $base-font-family !default;
5
- $button-font-size: 1.25rem !default;
6
- $button-font-size-desktop: $button-font-size !default;
7
- $button-font-style: normal !default;
8
- $button-font-weight: 700 !default;
9
- $button-height: 50px !default;
10
- $button-height-desktop: $button-height !default;
11
- $button-letter-spacing: 0 !default;
12
- $button-line-height: 1.05 !default;
13
- $button-margin: 10px 0 !default;
14
- $button-padding: 15px 30px !default;
15
- $button-position: relative !default;
16
- $button-text-align: center !default;
17
- $button-text-decoration: none !default;
18
- $button-text-transform: uppercase !default;
19
- $button-transition: color .15s ease-in-out, background-color .15s ease-in-out, border .15s ease-in-out !default;
20
- $button-width: 100% !default;
21
- $button-z-index: 0 !default;
22
-
23
- $back-button-align-items: center !default;
24
- $back-button-background-color: transparent !default;
25
- $back-button-border: 0 !default;
26
- $back-button-border-radius: 0 !default;
27
- $back-button-color: $color-charcoal4 !default;
28
- $back-button-display: flex !default;
29
- $back-button-initial-display: none !default;
30
- $back-button-font-size: .875rem !default;
31
- $back-button-font-weight: 400 !default;
32
- $back-button-height: auto !default;
33
- $back-button-line-height: $button-line-height !default;
34
- $back-button-margin: 10px 0 0 !default;
35
- $back-button-padding: 2px 5px !default;
36
- $back-button-hover-background-color: transparent !default;
37
- $back-button-hover-color: darken($back-button-color, 20%) !default;
38
- $back-button-icon-font-size: 90% !default;
39
- $back-button-icon-margin-right: 4px !default;
40
-
41
- $back-button-focus-outline: 1px solid rgba($back-button-color, .5) !default;
42
- $back-button-focus-outline-offset: 2px !default;
43
-
44
- $button-primary-background-color: $color-a11y-default-button !default;
45
- $button-primary-border: 0 !default;
46
- $button-primary-color: $color-white !default;
47
- $button-primary-max-width: 100% !default;
48
- $button-primary-hover-background-color: $color-a11y-default-button-hover !default;
49
- $button-primary-hover-border: $button-primary-border !default;
50
- $button-primary-hover-color: $color-white !default;
51
-
52
- $button-secondary-background-color: $button-primary-background-color !default;
53
- $button-secondary-border: $button-primary-border !default;
54
- $button-secondary-color: $button-primary-color !default;
55
- $button-secondary-font-size: $button-font-size !default;
56
- $button-secondary-font-size-desktop: $button-secondary-font-size !default;
57
- $button-secondary-height: $button-height !default;
58
- $button-secondary-height-desktop: $button-secondary-height !default;
59
- $button-secondary-max-width: 100% !default;
60
- $button-secondary-padding: $button-padding !default;
61
- $button-secondary-text-transform: $button-text-transform !default;
62
- $button-secondary-hover-background-color: $button-primary-hover-background-color !default;
63
- $button-secondary-hover-border: $button-primary-hover-border !default;
64
- $button-secondary-hover-color: $button-primary-hover-color !default;
65
-
66
- $button-icon-position: absolute !default;
67
- $button-icon-font-family: 'modicons-fill' !default;
68
- $button-icon-font-size: .875rem !default;
69
- $button-icon-bottom: unset !default;
70
- $button-icon-left: unset !default;
71
- $button-icon-right: 15px !default;
72
- $button-icon-top: 50% !default;
73
- $button-icon-transform: translateY(-50%) !default;
74
-
75
- .btn {
76
- border-radius: $button-border-radius;
77
- cursor: $button-cursor;
78
- display: $button-display;
79
- font-family: $button-font-family;
80
- font-size: $button-font-size;
81
- font-style: $button-font-style;
82
- font-weight: $button-font-weight;
83
- height: $button-height;
84
- letter-spacing: $button-letter-spacing;
85
- line-height: $button-line-height;
86
- margin: $button-margin;
87
- padding: $button-padding;
88
- position: $button-position;
89
- text-align: $button-text-align;
90
- text-decoration: $button-text-decoration;
91
- text-transform: $button-text-transform;
92
- transition: $button-transition;
93
- width: $button-width;
94
- z-index: $button-z-index;
95
-
96
- &__icon {
97
- bottom: $button-icon-bottom;
98
- font-family: $button-icon-font-family;
99
- font-size: $button-icon-font-size;
100
- left: $button-icon-left;
101
- position: $button-icon-position;
102
- right: $button-icon-right;
103
- top: $button-icon-top;
104
- transform: $button-icon-transform;
105
- }
106
-
107
- &--back {
108
- align-items: $back-button-align-items;
109
- background-color: $back-button-background-color;
110
- border: $back-button-border;
111
- border-radius: $back-button-border-radius;
112
- color: $back-button-color;
113
- cursor: $button-cursor;
114
- display: $back-button-initial-display;
115
- font-size: $back-button-font-size;
116
- font-family: $button-font-family;
117
- font-weight: $back-button-font-weight;
118
- height: $back-button-height;
119
- line-height: $back-button-line-height;
120
- margin: $back-button-margin;
121
- padding: $back-button-padding;
122
- transition: $button-transition;
123
-
124
- i {
125
- font-size: $back-button-icon-font-size;
126
- margin-right: $back-button-icon-margin-right;
127
- }
128
-
129
- &:focus {
130
- outline: $back-button-focus-outline;
131
- outline-offset: $back-button-focus-outline-offset;
132
- }
133
- }
134
-
135
- &--primary {
136
- background-color: $button-primary-background-color;
137
- border: $button-primary-border;
138
- color: $button-primary-color;
139
- max-width: $button-primary-max-width;
140
- }
141
-
142
- &--secondary {
143
- background-color: $button-secondary-background-color;
144
- border: $button-secondary-border;
145
- color: $button-secondary-color;
146
- font-size: $button-secondary-font-size;
147
- height: $button-secondary-height;
148
- max-width: $button-secondary-max-width;
149
- padding: $button-secondary-padding;
150
- text-transform: $button-secondary-text-transform;
151
- }
152
- }
153
-
154
- .form-in-progress {
155
- .btn--back {
156
- display: $back-button-display;
157
- }
158
- }
159
-
160
- @include breakpoint-md {
161
- .btn {
162
- font-size: $button-font-size-desktop;
163
- height: $button-height-desktop;
164
-
165
- &--back {
166
- &:hover,
167
- &:active,
168
- &:focus {
169
- background-color: $back-button-hover-background-color;
170
- color: $back-button-hover-color;
171
- }
172
- }
173
-
174
- &--primary {
175
- &:hover,
176
- &:active,
177
- &:focus {
178
- background-color: $button-primary-hover-background-color;
179
- border: $button-primary-hover-border;
180
- color: $button-primary-hover-color;
181
- }
182
-
183
- }
184
-
185
- &--secondary {
186
- font-size: $button-secondary-font-size-desktop;
187
- height: $button-secondary-height-desktop;
188
-
189
- &:hover,
190
- &:active,
191
- &:focus {
192
- background-color: $button-secondary-hover-background-color;
193
- border: $button-secondary-hover-border;
194
- color: $button-secondary-hover-color;
195
- }
196
-
197
- }
198
- }
199
- }
@@ -1,8 +0,0 @@
1
- <button class="btn--back back-btn{{#if class}} {{class}}{{/if}}" data-btn="back" type="button">
2
- <i class="{{#if icon}}{{icon}}{{else}}icon-caret-left{{/if}}"></i>
3
- {{#if iconOnly}}
4
- <span class="visually-hidden">Back</span>
5
- {{else}}
6
- Back
7
- {{/if}}
8
- </button>
@@ -1,17 +0,0 @@
1
- {{#xif 'this.button.tag && this.button.tag === "a"'}}
2
- <a class="btn{{#xif 'this.button.attributes && this.button.attributes.class || this.class'}}{{#if this.button.attributes.class}} {{this.button.attributes.class}}{{/if}}{{#if this.class}} {{this.class}}{{/if}}{{/xif}}" {{{addAttributes this.button 'class'}}}>
3
- {{else}}
4
- <button class="btn{{#xif 'this.button.attributes && this.button.attributes.class'}} {{this.button.attributes.class}}{{/xif}}" {{{addAttributes this.button 'class'}}}>
5
- {{/xif}}
6
- <span class="btn__text">{{{this.button.text}}}</span>
7
- {{#if this.button.icon}}
8
- <i class="btn__icon{{#xif 'this.button.icon.attributes && this.button.icon.attributes.class'}} {{this.button.icon.attributes.class}}{{/xif}}" {{{addAttributes this.button.icon 'class'}}}></i>
9
- {{/if}}
10
- {{#xif 'this.button.tag && this.button.tag === "a"'}}
11
- </a>
12
- {{else}}
13
- {{#unless this.button.hideSpinner}}
14
- <span class="btn__spinner"></span>
15
- {{/unless}}
16
- </button>
17
- {{/xif}}
@@ -1,112 +0,0 @@
1
- $swiper-margin-top: 0 !default;
2
- $swiper-padding-top: 0 !default;
3
-
4
- $swiper-controls-padding: 30px 15px !default;
5
- $swiper-controls-padding-desktop: 50px 15px !default;
6
- $swiper-navigation-color: $color-charcoal4 !default;
7
- $swiper-navigation-hover-color: darken($swiper-navigation-color, 20%) !default;
8
- $swiper-pagination-margin: 0 10px !default;
9
- $swiper-pagination-bottom-alignment: 0 !default;
10
- $swiper-pagination-bullet-background-color: transparent !default;
11
- $swiper-pagination-bullet-border: 1px solid $swiper-navigation-color !default;
12
- $swiper-pagination-bullet-margin: 0 8px !default;
13
- $swiper-pagination-bullet-height: 8px !default;
14
- $swiper-pagination-bullet-width: 8px !default;
15
- $swiper-pagination-bullet-hover-background-color: darken($swiper-navigation-color, 20%) !default;
16
- $swiper-pagination-bullet-hover-border: 0 !default;
17
- $swiper-pagination-bullet-active-background-color: $swiper-navigation-color !default;
18
- $swiper-pagination-bullet-active-border: 0 !default;
19
-
20
- $swiper-scrollbar-background-color: $color-charcoal1 !default;
21
- $swiper-scrollbar-drag-color: $color-charcoal4 !default;
22
- $swiper-scrollbar-height: 4px !default;
23
-
24
- .swiper {
25
- margin-top: $swiper-margin-top;
26
- overflow: hidden;
27
- padding-top: $swiper-padding-top;
28
-
29
- .swiper-wrapper{
30
- display: flex;
31
- }
32
-
33
- .swiper-controls {
34
- align-items: center;
35
- display: flex;
36
- justify-content: center;
37
- padding: $swiper-controls-padding;
38
-
39
- i.icon {
40
- color: $swiper-navigation-color;
41
- cursor: pointer;
42
- transition: $base-transition;
43
-
44
- &:not(.swiper-button-disabled) {
45
- &:active,
46
- &:focus,
47
- &:hover {
48
- color: $swiper-navigation-hover-color;
49
- }
50
- }
51
- }
52
-
53
- .swiper-pagination {
54
- margin: $swiper-pagination-margin;
55
- position: relative;
56
-
57
- .swiper-pagination-bullet {
58
- background-color: $swiper-pagination-bullet-background-color;
59
- border: $swiper-pagination-bullet-border;
60
- height: $swiper-pagination-bullet-height;
61
- opacity: 1;
62
- transition: $base-transition;
63
- width: $swiper-pagination-bullet-width;
64
-
65
- &:active,
66
- &:focus,
67
- &:hover {
68
- background-color: $swiper-pagination-bullet-hover-background-color;
69
- border: $swiper-pagination-bullet-hover-border;
70
- outline: 0;
71
- }
72
-
73
- &-active {
74
- background-color: $swiper-pagination-bullet-active-background-color;
75
- border: $swiper-pagination-bullet-active-border;
76
- }
77
- }
78
-
79
- &.swiper-pagination-horizontal {
80
- bottom: $swiper-pagination-bottom-alignment;
81
- width: auto;
82
-
83
- .swiper-pagination-bullet {
84
- margin: $swiper-pagination-bullet-margin;
85
- }
86
- }
87
- }
88
- }
89
-
90
- &-scrollbar {
91
- background: $swiper-scrollbar-background-color;
92
- height: $swiper-scrollbar-height;
93
-
94
- &-drag {
95
- background-color: $swiper-scrollbar-drag-color;
96
- height: 100%;
97
- width: 100%;
98
- }
99
- }
100
-
101
- &--reviews {
102
- padding-top: 50px !important;
103
- }
104
- }
105
-
106
- @include breakpoint-md {
107
- .swiper {
108
- .swiper-controls {
109
- padding: $swiper-controls-padding-desktop;
110
- }
111
- }
112
- }
@@ -1,25 +0,0 @@
1
- <div class="swiper{{#xif 'this.carousel.carouselOptions.attributes && this.carousel.carouselOptions.attributes.class'}} {{this.carousel.carouselOptions.attributes.class}}{{/xif}}" {{{addAttributes this.carousel.carouselOptions 'class'}}}>
2
- {{#if this.carousel.carouselOptions.attributes.aria.describedby}}
3
- <p class="visually-hidden" id="{{this.carousel.carouselOptions.attributes.aria.describedby}}">{{{this.carousel.carouselOptions.description}}}</p>
4
- {{/if}}
5
- <ul class="swiper-wrapper"{{#if this.carousel.carouselOptions.wrapper}} {{{addAttributes this.carousel.carouselOptions.wrapper 'class'}}}{{/if}}>
6
- {{#if this.carousel.template}}
7
- {{fileInclude this.carousel.template
8
- items = this.carousel.items
9
- classModifier = this.carousel.classModifier
10
- carouselOptions = this.carousel.carouselOptions
11
- }}
12
- {{/if}}
13
- </ul>
14
-
15
- {{#xif "this.carousel.carouselOptions.hasNavigation === true || this.carousel.carouselOptions.hasPagination === true" }}
16
- <div class="swiper-controls">
17
- {{#if this.carousel.carouselOptions.previousSlideIcon }}{{{ this.carousel.carouselOptions.previousSlideIcon }}}{{/if}}
18
- {{#if this.carousel.carouselOptions.hasPagination }}<div class="swiper-pagination"></div>{{/if}}
19
- {{#if this.carousel.carouselOptions.nextSlideIcon }}{{{ this.carousel.carouselOptions.nextSlideIcon }}}{{/if}}
20
- </div>
21
- {{/xif}}
22
- {{#if this.carousel.carouselOptions.hasScrollbar }}
23
- <div class="swiper-scrollbar"></div>
24
- {{/if}}
25
- </div>
@@ -1,96 +0,0 @@
1
- $checkbox-background-color: transparent !default;
2
- $checkbox-border: 0 !default;
3
- $checkbox-border-radius: 4px !default;
4
- $checkbox-font-size: 1rem !default;
5
- $checkbox-font-weight: normal !default;
6
- $checkbox-line-height: 1 !default;
7
- $checkbox-color: $color-charcoal8 !default;
8
- $checkbox-margin: 15px 0 !default;
9
- $checkbox-padding: 0 !default;
10
- $checkbox-text-align: left !default;
11
- $checkbox-transition: color .15s ease-in-out !default;
12
-
13
- $checkbox-label-padding-left: 30px !default;
14
- $checkbox-label-width: auto !default;
15
-
16
- $checkbox-input-background-color: $color-white !default;
17
- $checkbox-input-border: 1px solid $color-charcoal4 !default;
18
- $checkbox-input-border-radius: 2px !default;
19
- $checkbox-input-box-shadow: 0 !default;
20
- $checkbox-input-checked-background-color: $color-charcoal6 !default;
21
- $checkbox-input-checked-border: 1px solid $checkbox-input-checked-background-color !default;
22
- $checkbox-input-checked-color: $color-white !default;
23
- $checkbox-input-cursor: pointer !default;
24
- $checkbox-input-font-size: 1.125rem !default;
25
- $checkbox-input-margin: 0 !default;
26
- $checkbox-input-position-left: 0 !default;
27
- $checkbox-input-position-top: -2px !default;
28
- $checkbox-input-size: 1.25rem !default;
29
-
30
- // Focus
31
- $checkbox-focus-outline: 1px solid rgba($color-charcoal4, .5) !default;
32
- $checkbox-focus-outline-offset: 5px !default;
33
-
34
-
35
- .checkbox {
36
- background-color: $checkbox-background-color;
37
- border: $checkbox-border;
38
- border-radius: $checkbox-border-radius;
39
- color: $checkbox-color;
40
- margin: $checkbox-margin;
41
- padding: $checkbox-padding;
42
- text-align: $checkbox-text-align;
43
-
44
- + .checkbox {
45
- margin-top: 0;
46
- }
47
-
48
- label {
49
- display: inline-block;
50
- font-size: $checkbox-font-size;
51
- font-weight: $checkbox-font-weight;
52
- line-height: $checkbox-line-height;
53
- padding-left: $checkbox-label-padding-left;
54
- position: relative;
55
- width: $checkbox-label-width;
56
-
57
- &:focus-within {
58
- outline: $checkbox-focus-outline;
59
- outline-offset: $checkbox-focus-outline-offset;
60
- }
61
-
62
- input[type=checkbox] {
63
- background: transparent;
64
- border-color: $color-white;
65
- border-radius: 0;
66
- cursor: $checkbox-input-cursor;
67
- left: $checkbox-input-position-left;
68
- margin: $checkbox-input-margin;
69
- position: absolute;
70
- top: $checkbox-input-position-top;
71
-
72
- &::before {
73
- @include icon-fill;
74
- background: $checkbox-input-background-color;
75
- border: $checkbox-input-border;
76
- border-radius: $checkbox-input-border-radius;
77
- box-shadow: $checkbox-input-box-shadow;
78
- color: $checkbox-input-background-color;
79
- content: '\e920';
80
- display: block;
81
- height: $checkbox-input-size;
82
- text-align: center;
83
- transition: $checkbox-transition;
84
- width: $checkbox-input-size;
85
- }
86
-
87
- &:checked::before { // sass-lint:disable-line
88
- background-color: $checkbox-input-checked-background-color;
89
- border: $checkbox-input-checked-border;
90
- color: $checkbox-input-checked-color;
91
- font-size: $checkbox-input-font-size;
92
- line-height: $checkbox-line-height;
93
- }
94
- }
95
- }
96
- }
@@ -1,8 +0,0 @@
1
- {{#if this.field}}
2
- <div class="checkbox">
3
- <label>
4
- <input type="checkbox" {{{addAttributes this.field 'type'}}} />
5
- {{{this.field.text}}}
6
- </label>
7
- </div>
8
- {{/if}}