mod-build 4.0.0-alpha.6 → 4.0.0-alpha.8
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.
- package/package.json +1 -1
- package/tasks/grab-cdn.js +2 -5
- package/tasks/grab-shared-components.js +2 -3
- package/tasks/grab-shared-scripts.js +6 -7
- package/tasks/serve.js +51 -5
- package/vite.config.js +7 -8
- package/src/accessible-components/button/_button.scss +0 -199
- package/src/accessible-components/button/back-button.html +0 -8
- package/src/accessible-components/button/button.html +0 -17
- package/src/accessible-components/carousel/_carousel.scss +0 -112
- package/src/accessible-components/carousel/carousel.html +0 -25
- package/src/accessible-components/checkbox/_checkbox.scss +0 -96
- package/src/accessible-components/checkbox/checkbox.html +0 -8
- package/src/accessible-components/expand-collapse/_expand-collapse.scss +0 -129
- package/src/accessible-components/expand-collapse/expand-collapse.html +0 -14
- package/src/accessible-components/expand-collapse/expand-collapse.js +0 -52
- package/src/accessible-components/expand-collapse/expand-collapse.min.js +0 -2
- package/src/accessible-components/expand-collapse/expand-collapse.min.js.map +0 -1
- package/src/accessible-components/featured-block/_featured-block.scss +0 -219
- package/src/accessible-components/featured-block/featured-block.html +0 -54
- package/src/accessible-components/foot-assets/foot-assets.html +0 -96
- package/src/accessible-components/footer/footer.html +0 -2
- package/src/accessible-components/gtm-body/gtm-body.html +0 -4
- package/src/accessible-components/head/head.html +0 -183
- package/src/accessible-components/header/_header.scss +0 -287
- package/src/accessible-components/header/header.html +0 -66
- package/src/accessible-components/hero/_hero.scss +0 -397
- package/src/accessible-components/hero/hero.html +0 -53
- package/src/accessible-components/how-it-works/_how-it-works.scss +0 -217
- package/src/accessible-components/how-it-works/how-it-works-carousel.html +0 -12
- package/src/accessible-components/how-it-works/how-it-works-static.html +0 -12
- package/src/accessible-components/how-it-works/how-it-works.html +0 -14
- package/src/accessible-components/information/_information.scss +0 -94
- package/src/accessible-components/information/information.html +0 -32
- package/src/accessible-components/input/_input.scss +0 -204
- package/src/accessible-components/input/input.html +0 -22
- package/src/accessible-components/input/textarea.html +0 -9
- package/src/accessible-components/partners/_partners.scss +0 -234
- package/src/accessible-components/partners/partners.html +0 -56
- package/src/accessible-components/picture/picture.html +0 -19
- package/src/accessible-components/preloader/_preloader.scss +0 -61
- package/src/accessible-components/preloader/preloader.html +0 -23
- package/src/accessible-components/progress-bar/_progress-bar.scss +0 -140
- package/src/accessible-components/progress-bar/progress-bar.html +0 -21
- package/src/accessible-components/progress-bar/progress-bar.js +0 -37
- package/src/accessible-components/progress-bar/progress-bar.min.js +0 -2
- package/src/accessible-components/progress-bar/progress-bar.min.js.map +0 -1
- package/src/accessible-components/radio-button/_radio-button.scss +0 -577
- package/src/accessible-components/radio-button/radio-button.html +0 -34
- package/src/accessible-components/reviews/_reviews.scss +0 -175
- package/src/accessible-components/reviews/reviews-carousel.html +0 -12
- package/src/accessible-components/reviews/reviews-static.html +0 -12
- package/src/accessible-components/reviews/reviews.html +0 -37
- package/src/accessible-components/select/_select.scss +0 -69
- package/src/accessible-components/select/select.html +0 -10
- package/src/accessible-components/steps/_steps.scss +0 -625
- package/src/accessible-components/steps/defaultFormFieldConfig.json +0 -109
- package/src/accessible-components/steps/step-fields.html +0 -33
- package/src/accessible-components/steps/steps.html +0 -158
- package/src/accessible-components/tcpa/_tcpa.scss +0 -49
- package/src/accessible-components/tcpa/tcpa.html +0 -9
- package/src/accessible-components/tile/_tile.scss +0 -117
- package/src/accessible-components/tile/tile.html +0 -14
- package/src/accessible-components/value-props/_value-props.scss +0 -100
- package/src/accessible-components/value-props/value-props.html +0 -17
- package/src/accessible-components/zip-control/_zip-control.scss +0 -79
- package/src/accessible-components/zip-control/zip-control.html +0 -10
- package/src/resources/scripts/abandonment/abandonment-1ff95fadc44690313c96.min.js +0 -2
- package/src/resources/scripts/abandonment/abandonment.min.js +0 -2
- package/src/resources/scripts/footer/footer-component-7b5e263f64568573ecc0.min.js +0 -2
- package/src/resources/scripts/footer/footer-component.min.js +0 -2
- package/src/resources/scripts/helpers/initNumericOnlyFields.min.js +0 -2
- package/src/resources/scripts/helpers/initNumericOnlyFields.min.js.map +0 -1
- package/src/resources/scripts/helpers/isZipCodeValid.min.js +0 -2
- package/src/resources/scripts/helpers/isZipCodeValid.min.js.map +0 -1
- package/src/resources/scripts/mod-alytics/modalytics-0ac7d7a5a72ea67a0f47.min.js +0 -2
- package/src/resources/scripts/mod-alytics/modalytics.min.js +0 -2
- package/src/resources/scripts/mod-form/form/homeowner-f6215e01401c83ab041e.min.js +0 -2
- package/src/resources/scripts/mod-form/form/homeowner.min.js +0 -2
- package/src/resources/scripts/mod-utils/modutils-9821c9306592e4170377.min.js +0 -2
- package/src/resources/scripts/mod-utils/modutils.min.js +0 -2
- package/src/resources/styles/components/abandonment/abandonment-a8571a9e32ed6ef9acb4.min.css +0 -1
- package/src/resources/styles/components/abandonment/abandonment.min.css +0 -1
- package/src/resources/styles/components/footer/mod-footer-1fb2cec3278f29df57d0.min.css +0 -1
- package/src/resources/styles/components/footer/mod-footer.min.css +0 -1
- package/src/resources/styles/components/footer/qs-footer-9a3b0ab00428b03e6e9e.min.css +0 -1
- package/src/resources/styles/components/footer/qs-footer.min.css +0 -1
- package/src/resources/templates/modals/about/index.html +0 -0
- package/src/resources/templates/modals/contact-us/index.html +0 -0
- package/src/resources/templates/modals/faq/index.html +0 -0
- package/src/resources/templates/modals/privacy/index.html +0 -0
- package/src/resources/templates/modals/terms/index.html +0 -0
- package/src/temp/scripts/maxmind-geoip2.js +0 -0
package/package.json
CHANGED
package/tasks/grab-cdn.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { siteData } from '../siteconfig.js'
|
|
2
1
|
import { defaultSettings } from '../src/data/config.js';
|
|
3
|
-
import { templateData } from '../template.js';
|
|
4
2
|
import axios from 'axios';
|
|
5
3
|
import { createWriteStream } from 'node:fs';
|
|
6
4
|
import * as stream from 'node:stream';
|
|
@@ -45,10 +43,9 @@ function streamToDestination(inputPath, destPath, fileName) {
|
|
|
45
43
|
});
|
|
46
44
|
}
|
|
47
45
|
|
|
48
|
-
export default async function(done) {
|
|
46
|
+
export default async function(config, done) {
|
|
49
47
|
const { nodeEnv, isLocal } = defaultSettings;
|
|
50
|
-
const { isQSPage, isWhiteLabel, domain } =
|
|
51
|
-
const { page } = templateData();
|
|
48
|
+
const { isQSPage, isWhiteLabel, domain, page } = config;
|
|
52
49
|
const { themeFile, cssThemes } = page;
|
|
53
50
|
const isModWhiteLabel = isWhiteLabel && !isQSPage
|
|
54
51
|
const domainHasModernize = domain.indexOf('modernize') > -1;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { defaultSettings } from '../src/data/config.js'
|
|
2
|
-
import { siteData } from '../siteconfig.js';
|
|
3
2
|
import axios from 'axios';
|
|
4
3
|
import { createWriteStream } from 'node:fs';
|
|
5
4
|
import * as stream from 'node:stream';
|
|
@@ -7,7 +6,6 @@ import { promisify } from 'node:util';
|
|
|
7
6
|
import fs from 'node:fs';
|
|
8
7
|
|
|
9
8
|
const resourcePath = 'quote/resources/mod-site';
|
|
10
|
-
const componentFolders = siteData.useAccessibleConfig ? ['accessible-components'] : ['shared-components'];
|
|
11
9
|
|
|
12
10
|
const streamSharedCompsToDestination = (defaultSettings, folder, fileName) => {
|
|
13
11
|
const finished = promisify(stream.finished);
|
|
@@ -71,7 +69,8 @@ const getListOfSharedComponents = (defaultSettings, componentFolders) => {
|
|
|
71
69
|
});
|
|
72
70
|
}
|
|
73
71
|
|
|
74
|
-
export default function(done) {
|
|
72
|
+
export default function(config, done) {
|
|
73
|
+
const componentFolders = config.useAccessibleConfig ? ['accessible-components'] : ['shared-components'];
|
|
75
74
|
console.log('running grab-shared-components');
|
|
76
75
|
getListOfSharedComponents(defaultSettings, componentFolders);
|
|
77
76
|
done();
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { siteData } from '../siteconfig.js'
|
|
2
1
|
import { defaultSettings } from '../src/data/config.js';
|
|
3
2
|
import axios from 'axios';
|
|
4
3
|
import { createWriteStream } from 'node:fs';
|
|
@@ -238,14 +237,14 @@ function getResource(task, fileNames, resourcePath = 'quote/resources') {
|
|
|
238
237
|
})
|
|
239
238
|
}
|
|
240
239
|
|
|
241
|
-
export default async function(done) {
|
|
240
|
+
export default async function(config, done) {
|
|
242
241
|
const { isLocal } = defaultSettings;
|
|
243
|
-
const isQuotePage = siteData?.
|
|
244
|
-
const useAccessibleComponents = siteData?.
|
|
245
|
-
const useRelativePathForResources = siteData?.
|
|
242
|
+
const isQuotePage = config.siteData?.isQuotePage || config.isQuotePage;
|
|
243
|
+
const useAccessibleComponents = config.siteData?.useAccessibleConfig || config.useAccessibleConfig;
|
|
244
|
+
const useRelativePathForResources = config.siteData?.useRelativePathForResources || config.useRelativePathForResources;
|
|
246
245
|
componentFolderPath = useAccessibleComponents === true ? 'accessible-components' : 'shared-components';
|
|
247
246
|
isQuotePageOrUseRelativePath = isQuotePage === true || useRelativePathForResources === true;
|
|
248
|
-
const isPathSubdirectory = siteData?.
|
|
247
|
+
const isPathSubdirectory = config.siteData?.pathSubdirectory || config.pathSubdirectory;
|
|
249
248
|
pathSubdirectory = !isLocal && isPathSubdirectory ? isPathSubdirectory : '';
|
|
250
249
|
|
|
251
250
|
const tasks = Object.values(TASKS);
|
|
@@ -257,7 +256,7 @@ export default async function(done) {
|
|
|
257
256
|
task.config.mapUrl = 'shared-resources/scripts/abandonment/accessible/abandonment.min.js.map';
|
|
258
257
|
}
|
|
259
258
|
}
|
|
260
|
-
Object.assign(task.config, { defaultSettings,
|
|
259
|
+
Object.assign(task.config, { defaultSettings, config });
|
|
261
260
|
await getResource(task, fileNames);
|
|
262
261
|
});
|
|
263
262
|
|
package/tasks/serve.js
CHANGED
|
@@ -1,13 +1,59 @@
|
|
|
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
|
|
10
|
-
|
|
7
|
+
export function grabCdnAssets(config) {
|
|
8
|
+
return {
|
|
9
|
+
name: 'grab-cdn-assets',
|
|
10
|
+
enforce: 'pre',
|
|
11
|
+
function() {
|
|
12
|
+
return grabCdn(config)
|
|
13
|
+
}
|
|
14
|
+
}
|
|
11
15
|
}
|
|
12
16
|
|
|
13
|
-
export
|
|
17
|
+
export function grabSharedComponentAssets(config) {
|
|
18
|
+
return {
|
|
19
|
+
name: 'grab-shared-components-assets',
|
|
20
|
+
enforce: 'pre',
|
|
21
|
+
function() {
|
|
22
|
+
return grabSharedComponents(config)
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function grabSharedScriptAssets(config) {
|
|
28
|
+
return {
|
|
29
|
+
name: 'grab-shared-scripts-assets',
|
|
30
|
+
enforce: 'pre',
|
|
31
|
+
function() {
|
|
32
|
+
return grabSharedScripts(config)
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function grabFormHelperAssets(config) {
|
|
38
|
+
return {
|
|
39
|
+
name: 'grab-form-helper-assets',
|
|
40
|
+
enforce: 'pre',
|
|
41
|
+
function() {
|
|
42
|
+
return grabFormHelpers(config)
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function templateAssets(config) {
|
|
48
|
+
return {
|
|
49
|
+
name: 'template-assets',
|
|
50
|
+
enforce: 'pre',
|
|
51
|
+
function() {
|
|
52
|
+
return templates(config)
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// export default function(config) {
|
|
58
|
+
// return gulp.series(clean, () => grabCdn(config), () => grabSharedComponents(config), () => grabSharedScripts(config), () => grabFormHelpers(config), () => templates(config), done);
|
|
59
|
+
// }
|
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
|
|
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 = {
|
|
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
|
-
}
|