mod-build 4.0.0 → 4.0.1-beta.2

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 (165) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/package.json +1 -1
  3. package/src/scripts/default/index.js +9 -0
  4. package/src/scripts/default/update-link-paths.js +7 -13
  5. package/src/scripts/default/use-dynamic-gtm.js +4 -5
  6. package/src/scripts/plugins.js +109 -0
  7. package/src/scripts/utils.js +12 -52
  8. package/tasks/serve.js +1 -1
  9. package/vite.config.js +3 -51
  10. package/src/accessible-components/button/_button.scss +0 -308
  11. package/src/accessible-components/button/back-button.html +0 -8
  12. package/src/accessible-components/button/button.html +0 -17
  13. package/src/accessible-components/carousel/_carousel.scss +0 -112
  14. package/src/accessible-components/carousel/carousel.html +0 -25
  15. package/src/accessible-components/carousel/carousel.js +0 -3426
  16. package/src/accessible-components/carousel/carousel.js.map +0 -1
  17. package/src/accessible-components/carousel/carousel.min.js +0 -6
  18. package/src/accessible-components/carousel/carousel.min.js.map +0 -1
  19. package/src/accessible-components/checkbox/_checkbox.scss +0 -153
  20. package/src/accessible-components/checkbox/checkbox-group.html +0 -18
  21. package/src/accessible-components/checkbox/checkbox.html +0 -8
  22. package/src/accessible-components/expand-collapse/_expand-collapse.scss +0 -129
  23. package/src/accessible-components/expand-collapse/expand-collapse.html +0 -14
  24. package/src/accessible-components/expand-collapse/expand-collapse.js +0 -52
  25. package/src/accessible-components/expand-collapse/expand-collapse.min.js +0 -2
  26. package/src/accessible-components/expand-collapse/expand-collapse.min.js.map +0 -1
  27. package/src/accessible-components/featured-block/_featured-block.scss +0 -221
  28. package/src/accessible-components/featured-block/featured-block.html +0 -54
  29. package/src/accessible-components/foot-assets/foot-assets.html +0 -112
  30. package/src/accessible-components/footer/footer.html +0 -2
  31. package/src/accessible-components/gtm-body/gtm-body.html +0 -4
  32. package/src/accessible-components/head/head.html +0 -187
  33. package/src/accessible-components/header/_header.scss +0 -287
  34. package/src/accessible-components/header/header.html +0 -66
  35. package/src/accessible-components/hero/_hero.scss +0 -405
  36. package/src/accessible-components/hero/hero.html +0 -53
  37. package/src/accessible-components/how-it-works/_how-it-works.scss +0 -217
  38. package/src/accessible-components/how-it-works/how-it-works-carousel.html +0 -12
  39. package/src/accessible-components/how-it-works/how-it-works-static.html +0 -12
  40. package/src/accessible-components/how-it-works/how-it-works.html +0 -14
  41. package/src/accessible-components/information/_information.scss +0 -96
  42. package/src/accessible-components/information/information.html +0 -32
  43. package/src/accessible-components/input/_input.scss +0 -204
  44. package/src/accessible-components/input/input.html +0 -22
  45. package/src/accessible-components/input/textarea.html +0 -9
  46. package/src/accessible-components/partners/_partners.scss +0 -234
  47. package/src/accessible-components/partners/partners.html +0 -56
  48. package/src/accessible-components/picture/picture.html +0 -19
  49. package/src/accessible-components/preloader/_preloader.scss +0 -61
  50. package/src/accessible-components/preloader/preloader.html +0 -23
  51. package/src/accessible-components/progress-bar/_progress-bar.scss +0 -140
  52. package/src/accessible-components/progress-bar/progress-bar.html +0 -21
  53. package/src/accessible-components/progress-bar/progress-bar.js +0 -37
  54. package/src/accessible-components/progress-bar/progress-bar.min.js +0 -2
  55. package/src/accessible-components/progress-bar/progress-bar.min.js.map +0 -1
  56. package/src/accessible-components/radio-button/_radio-button.scss +0 -586
  57. package/src/accessible-components/radio-button/radio-button.html +0 -33
  58. package/src/accessible-components/reviews/_reviews.scss +0 -175
  59. package/src/accessible-components/reviews/reviews-carousel.html +0 -12
  60. package/src/accessible-components/reviews/reviews-static.html +0 -12
  61. package/src/accessible-components/reviews/reviews.html +0 -37
  62. package/src/accessible-components/select/_select.scss +0 -69
  63. package/src/accessible-components/select/select.html +0 -10
  64. package/src/accessible-components/steps/_steps.scss +0 -636
  65. package/src/accessible-components/steps/defaultFormFieldConfig.json +0 -109
  66. package/src/accessible-components/steps/step-fields.html +0 -38
  67. package/src/accessible-components/steps/steps.html +0 -160
  68. package/src/accessible-components/tcpa/_tcpa.scss +0 -49
  69. package/src/accessible-components/tcpa/tcpa.html +0 -9
  70. package/src/accessible-components/tile/_tile.scss +0 -117
  71. package/src/accessible-components/tile/tile.html +0 -14
  72. package/src/accessible-components/value-props/_value-props.scss +0 -102
  73. package/src/accessible-components/value-props/value-props.html +0 -17
  74. package/src/accessible-components/zip-control/_zip-control.scss +0 -79
  75. package/src/accessible-components/zip-control/zip-control.html +0 -10
  76. package/src/resources/data/tcpa.json +0 -3
  77. package/src/resources/scripts/abandonment/abandonment-e099a424bf17408f1db2.min.js +0 -2
  78. package/src/resources/scripts/abandonment/abandonment.min.js +0 -2
  79. package/src/resources/scripts/footer/footer-component-7b5e263f64568573ecc0.min.js +0 -2
  80. package/src/resources/scripts/footer/footer-component.min.js +0 -2
  81. package/src/resources/scripts/helpers/initNumericOnlyFields.min.js +0 -2
  82. package/src/resources/scripts/helpers/initNumericOnlyFields.min.js.map +0 -1
  83. package/src/resources/scripts/helpers/isZipCodeValid.min.js +0 -2
  84. package/src/resources/scripts/helpers/isZipCodeValid.min.js.map +0 -1
  85. package/src/resources/scripts/mod-alytics/modalytics-0ac7d7a5a72ea67a0f47.min.js +0 -2
  86. package/src/resources/scripts/mod-alytics/modalytics.min.js +0 -2
  87. package/src/resources/scripts/mod-form/form/homeowner-f395431201f7a6e56690.min.js +0 -2
  88. package/src/resources/scripts/mod-form/form/homeowner.min.js +0 -2
  89. package/src/resources/scripts/mod-utils/modutils-a08fecfbb83afad1a9f8.min.js +0 -2
  90. package/src/resources/scripts/mod-utils/modutils.min.js +0 -2
  91. package/src/resources/styles/components/abandonment/abandonment-a8571a9e32ed6ef9acb4.min.css +0 -1
  92. package/src/resources/styles/components/abandonment/abandonment.min.css +0 -1
  93. package/src/resources/styles/components/footer/mod-footer-1fb2cec3278f29df57d0.min.css +0 -1
  94. package/src/resources/styles/components/footer/mod-footer.min.css +0 -1
  95. package/src/resources/styles/components/footer/qs-footer-9a3b0ab00428b03e6e9e.min.css +0 -1
  96. package/src/resources/styles/components/footer/qs-footer.min.css +0 -1
  97. package/src/resources/templates/modals/about/index.hbs +0 -9
  98. package/src/resources/templates/modals/about/index.html +0 -9
  99. package/src/resources/templates/modals/contact-us/index.hbs +0 -348
  100. package/src/resources/templates/modals/contact-us/index.html +0 -348
  101. package/src/resources/templates/modals/faq/index.hbs +0 -9
  102. package/src/resources/templates/modals/faq/index.html +0 -9
  103. package/src/resources/templates/modals/privacy/index.hbs +0 -236
  104. package/src/resources/templates/modals/privacy/index.html +0 -236
  105. package/src/resources/templates/modals/terms/index.hbs +0 -166
  106. package/src/resources/templates/modals/terms/index.html +0 -166
  107. package/src/shared-components/card-button/_card-button.scss +0 -49
  108. package/src/shared-components/card-button/card-button.html +0 -9
  109. package/src/shared-components/carousel/_carousel.scss +0 -106
  110. package/src/shared-components/carousel/carousel.html +0 -22
  111. package/src/shared-components/carousel/carousel.js +0 -3427
  112. package/src/shared-components/carousel/carousel.js.map +0 -1
  113. package/src/shared-components/carousel/carousel.min.js +0 -6
  114. package/src/shared-components/carousel/carousel.min.js.map +0 -1
  115. package/src/shared-components/carousel/carousel.min.min.js +0 -6
  116. package/src/shared-components/carousel/carousel.min.min.js.map +0 -1
  117. package/src/shared-components/checkbox/_checkbox.scss +0 -104
  118. package/src/shared-components/checkbox/checkbox.html +0 -6
  119. package/src/shared-components/expand-collapse/_expand-collapse.scss +0 -93
  120. package/src/shared-components/expand-collapse/expand-collapse.html +0 -8
  121. package/src/shared-components/expand-collapse/expand-collapse.js +0 -40
  122. package/src/shared-components/expand-collapse/expand-collapse.min.js +0 -2
  123. package/src/shared-components/expand-collapse/expand-collapse.min.js.map +0 -1
  124. package/src/shared-components/featured-block/_featured-block.scss +0 -185
  125. package/src/shared-components/featured-block/featured-block.html +0 -62
  126. package/src/shared-components/foot-assets/foot-assets.html +0 -107
  127. package/src/shared-components/form-tcpa/form-tcpa.html +0 -12
  128. package/src/shared-components/gtm-body/gtm-body.html +0 -4
  129. package/src/shared-components/head/head.html +0 -192
  130. package/src/shared-components/header/_header.scss +0 -200
  131. package/src/shared-components/header/header.html +0 -71
  132. package/src/shared-components/hero/_hero.scss +0 -253
  133. package/src/shared-components/hero/hero.html +0 -126
  134. package/src/shared-components/how-it-works/_how-it-works.scss +0 -138
  135. package/src/shared-components/how-it-works/how-it-works.html +0 -19
  136. package/src/shared-components/input/_input.scss +0 -229
  137. package/src/shared-components/input/input.html +0 -30
  138. package/src/shared-components/preloader/_preloader.scss +0 -61
  139. package/src/shared-components/preloader/preloader.html +0 -49
  140. package/src/shared-components/progress-bar/_progress-bar.scss +0 -105
  141. package/src/shared-components/progress-bar/progress-bar.html +0 -20
  142. package/src/shared-components/progress-bar/progress-bar.js +0 -25
  143. package/src/shared-components/progress-bar/progress-bar.min.js +0 -2
  144. package/src/shared-components/progress-bar/progress-bar.min.js.map +0 -1
  145. package/src/shared-components/radio-button/_radio-button.scss +0 -554
  146. package/src/shared-components/radio-button/radio-button.html +0 -25
  147. package/src/shared-components/reviews/_reviews.scss +0 -79
  148. package/src/shared-components/reviews/reviews.html +0 -27
  149. package/src/shared-components/select/_select.scss +0 -61
  150. package/src/shared-components/select/select.html +0 -8
  151. package/src/shared-components/steps/_steps.scss +0 -334
  152. package/src/shared-components/steps/defaultFormFieldConfig.json +0 -64
  153. package/src/shared-components/steps/step-fields.html +0 -36
  154. package/src/shared-components/steps/steps.html +0 -131
  155. package/src/shared-components/textarea/_textarea.scss +0 -96
  156. package/src/shared-components/textarea/textarea.html +0 -13
  157. package/src/shared-components/theme-toggle/_theme-toggle.scss +0 -68
  158. package/src/shared-components/theme-toggle/theme-toggle.html +0 -34
  159. package/src/shared-components/tile/_tile.scss +0 -117
  160. package/src/shared-components/tile/tile.html +0 -27
  161. package/src/shared-components/value-props/_value-props.scss +0 -98
  162. package/src/shared-components/value-props/value-props.html +0 -17
  163. package/src/shared-components/zip-control/_zip-control.scss +0 -42
  164. package/src/shared-components/zip-control/zip-control.html +0 -21
  165. package/src/temp/scripts/maxmind-geoip2.js +0 -104
@@ -1,192 +0,0 @@
1
- <head>
2
- {{#if page.headConfig.useDynamicGtm}}
3
- <script>
4
- {{ fileInclude 'node_modules/mod-build/src/scripts/has-qs-params.js' }}
5
- var gtm_container_ID = window.isQSPage ? '{{qs_gtm_container_ID}}' : '{{gtm_container_ID}}';
6
- </script>
7
- {{/if}}
8
-
9
- <!-- assets links afterBegin -->
10
- {{#if page.headConfig.useModAnalytics}}
11
- <script src="https://{{nodeEnv}}/quote/resources/mod-alytics/modalytics.min.js" {{#if page.headConfig.deferModAnalytics}}defer{{/if}} {{#if page.headConfig.asyncModAnalytics}}async{{/if}}></script>
12
- {{/if}}
13
-
14
- {{#if page.headConfig.additionalAssets.afterBegin}}
15
- {{#each page.headConfig.additionalAssets.afterBegin}}
16
- {{#xif "this.type === 'style' "}}
17
- <link href="{{#if isLocal}}
18
- {{#if this.localSrc}}
19
- {{this.localSrc}}
20
- {{else}}
21
- {{#if this.useModCdn}}
22
- https://{{../nodeEnv}}/{{this.src}}
23
- {{else}}
24
- {{this.src}}
25
- {{/if}}
26
- {{/if}}
27
- {{else}}
28
- {{#if this.useModCdn}}
29
- https://{{../nodeEnv}}/{{this.src}}
30
- {{else}}
31
- {{this.src}}
32
- {{/if}}
33
- {{/if}}" rel="stylesheet" type="text/css" />
34
- {{/xif}}
35
- {{#xif "this.type === 'script' "}}
36
- <script
37
- src="{{#if isLocal}}
38
- {{#if this.localSrc}}
39
- {{this.localSrc}}
40
- {{else}}
41
- {{#if this.useModCdn}}
42
- https://{{../nodeEnv}}/{{this.src}}
43
- {{else}}
44
- {{this.src}}
45
- {{/if}}
46
- {{/if}}
47
- {{else}}
48
- {{#if this.useModCdn}}
49
- https://{{../nodeEnv}}/{{this.src}}
50
- {{else}}
51
- {{this.src}}
52
- {{/if}}
53
- {{/if}}"
54
- {{#if this.defer}}defer{{/if}}
55
- {{#if this.async}}async{{/if}}
56
- ></script>
57
- {{/xif}}
58
- {{/each}}
59
- {{/if}}
60
-
61
- <!-- Include vwo setup -->
62
- {{#xif "this.page.headConfig.vwoSetup.vwoPathArray.indexOf(this.path) > -1" }}
63
- <link rel="preconnect" href="https://dev.visualwebsiteoptimizer.com">
64
- <!-- Do not double hit our analytical resources (Heap/Google Analytics) if the page is going to be redirected by a VWO a/b test-->
65
- {{ fileInclude 'node_modules/mod-build/src/templates/_partials/scripts/vwo-redirect-callback.html'
66
- nogtm = true
67
- noheap = true
68
- }}
69
- {{else}}
70
- {{ fileInclude 'node_modules/mod-build/src/templates/_partials/scripts/analytics.html'
71
- nogtm = true
72
- noheap = true
73
- }}
74
- {{/xif}}
75
-
76
-
77
- <!-- meta tags -->
78
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
79
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
80
- <meta name="viewport" content="initial-scale=1.0, width=device-width" />
81
-
82
- {{#unless page.headConfig.disableRobots}}
83
- <meta name="robots" content="{{#if page.headConfig.robotsCsv}}{{page.headConfig.robotsCsv}}{{else}}noindex,nofollow{{/if}}"/>
84
- {{/unless}}
85
-
86
- {{#unless page.headConfig.disableOgTags}}
87
- <meta property="og:title" content="{{page.headConfig.title}}" />
88
- <meta property="og:description" content="{{page.headConfig.description}}" />
89
- {{/unless}}
90
-
91
- <meta name="description" property="description" content="{{#if this.customDescription}}{{this.customDescription}}{{else}}{{page.headConfig.description}}{{/if}}" />
92
- <meta name="keywords" property="keywords" content="{{#if this.customKeywords}}{{this.customKeywords}}{{else}}{{page.headConfig.keywords}}{{/if}}" />
93
-
94
- <!-- preconnect google fonts -->
95
- <link rel="preconnect" href="https://fonts.googleapis.com">
96
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
97
- {{#if page.headConfig.preConnect}}
98
- {{#each page.headConfig.preConnect}}
99
- <link
100
- {{#if this.rel}}rel="{{this.rel}}"{{/if}}
101
- {{#if this.href}}href="{{this.href}}"{{/if}}
102
- {{#if this.as}}as="{{this.as}}"{{/if}}
103
- {{#if this.crossorigin}}crossorigin="{{this.crossorigin}}"{{/if}}
104
- {{#if this.media}}media="{{this.media}}"{{/if}}
105
- {{#if this.type}}type="{{this.type}}"{{/if}}
106
- {{#if this.fetchpriority}}fetchpriority="{{this.fetchpriority}}"{{/if}}
107
- >
108
- {{/each}}
109
- {{/if}}
110
- <!-- site title -->
111
- {{#if this.customTitle}}
112
- <title>{{{this.customTitle}}}</title>
113
- {{else}}
114
- <title>
115
- {{#if page.headConfig.inverseTitle}}
116
- {{#unless page.headConfig.hideTitleCompanyName}}{{company_name}} | {{/unless}}
117
- {{#if this.pageTitle}}
118
- {{this.pageTitle}}
119
- {{else}}
120
- {{#if page.headConfig.title}}
121
- {{page.headConfig.title}}
122
- {{/if}}
123
- {{/if}}
124
- {{else}}
125
- {{#if this.pageTitle}}
126
- {{this.pageTitle}}
127
- {{else}}
128
- {{#if page.headConfig.title}}
129
- {{page.headConfig.title}}
130
- {{/if}}
131
- {{/if}}
132
- {{#unless page.headConfig.hideTitleCompanyName}} | {{company_name}}{{/unless}}
133
- {{/if}}
134
- </title>
135
- {{/if}}
136
-
137
- {{#if page.headConfig.faviconPath}}
138
- <!-- favicon link -->
139
- <link href="{{page.headConfig.faviconPath}}" rel="shortcut icon" type="image/x-icon" />
140
- {{/if}}
141
-
142
- <!-- assets links beforeEnd -->
143
- {{#unless page.headConfig.noBsBaseStyles}}
144
- <link href="{{#if this.src}}{{this.src}}{{else}}{{#unless this.useRelativePath}}/{{/unless}}{{/if}}styles/vendor/bootstrap-base.css" rel="stylesheet" type="text/css" />
145
- {{/unless}}
146
-
147
- {{#if page.headConfig.additionalAssets.beforeEnd}}
148
- {{#each page.headConfig.additionalAssets.beforeEnd}}
149
- {{#xif "this.type === 'style' "}}
150
- <link href="{{#if isLocal}}
151
- {{#if this.localSrc}}
152
- {{this.localSrc}}
153
- {{else}}
154
- {{#if this.useModCdn}}
155
- https://{{../nodeEnv}}/{{this.src}}
156
- {{else}}
157
- {{this.src}}
158
- {{/if}}
159
- {{/if}}
160
- {{else}}
161
- {{#if this.useModCdn}}
162
- https://{{../nodeEnv}}/{{this.src}}
163
- {{else}}
164
- {{this.src}}
165
- {{/if}}
166
- {{/if}}" rel="stylesheet" type="text/css" />
167
- {{/xif}}
168
- {{#xif "this.type === 'script' "}}
169
- <script src="{{#if isLocal}}
170
- {{#if this.localSrc}}
171
- {{this.localSrc}}
172
- {{else}}
173
- {{#if this.useModCdn}}
174
- https://{{../nodeEnv}}/{{this.src}}
175
- {{else}}
176
- {{this.src}}
177
- {{/if}}
178
- {{/if}}
179
- {{else}}
180
- {{#if this.useModCdn}}
181
- https://{{../nodeEnv}}/{{this.src}}
182
- {{else}}
183
- {{this.src}}
184
- {{/if}}
185
- {{/if}}" {{#if this.defer}}defer{{/if}} {{#if this.async}}async{{/if}}></script>
186
- {{/xif}}
187
- {{/each}}
188
- {{/if}}
189
-
190
- <!-- load styles based on path name -->
191
- <link href="{{#if this.src}}{{this.src}}{{else}}{{#unless this.useRelativePath}}/{{/unless}}{{/if}}styles/{{this.path}}.css" rel="stylesheet" type="text/css" />
192
- </head>
@@ -1,200 +0,0 @@
1
- $header-background-color: $color-white !default;
2
- $header-padding-desktop: 15px 0 !default;
3
- $header-padding-mobile: 8px 0 !default;
4
-
5
- $header-container-padding: 0 15px !default;
6
-
7
- $header-content-align-items: center !default;
8
- $header-content-display: flex !default;
9
- $header-content-justify-content-mobile: center !default;
10
- $header-content-justify-content-desktop: space-between !default;
11
-
12
- $header-logo-display: inline-block !default;
13
- $header-logo-height-desktop: 35px !default;
14
- $header-logo-width-desktop: 152px !default;
15
- $header-logo-margin-desktop: 0 !default;
16
- $header-logo-height-mobile: 25px !default;
17
- $header-logo-width-mobile: 112px !default;
18
- $header-logo-margin-mobile: $header-logo-margin-desktop !default;
19
-
20
- $header-back-button-background-color: transparent !default;
21
- $header-back-button-border-right: 1px solid $color-charcoal2 !default;
22
- $header-back-button-color: $color-charcoal2 !default;
23
- $header-back-button-font-size: 21px !default;
24
- $header-back-button-line-height: 1 !default;
25
- $header-back-button-padding: 0 20px !default;
26
- $header-show-button-button-flex: 0 15% !default;
27
- $header-show-button-logo-flex: 0 85% !default;
28
- $header-show-button-logo-margin: 20px 0 !default;
29
- $header-show-button-padding: 0 !default;
30
-
31
- $header-bbb-logo-height-desktop: 42px !default;
32
- $header-bbb-logo-width-desktop: 115px !default;
33
- $header-bbb-logo-height-mobile: 32px !default;
34
- $header-bbb-logo-width-mobile: 82.5px !default;
35
- $header-bbb-logo-display: inherit !default;
36
-
37
- $header-tagline-color: $color-white !default;
38
- $header-tagline-font-size: 18px !default;
39
- $header-tagline-font-weight: 700 !default;
40
-
41
- $callrail-display: none !default;
42
- $call-color: $color-black !default;
43
- $call-font-size: 18px !default;
44
- $call-font-weight: 500 !default;
45
- $call-number-font-weight: 600 !default;
46
- $call-link-color: inherit !default;
47
- $call-link-text-decoration: none !default;
48
- $call-icon-width: 12px !default;
49
- $call-icon-width-large: 20px !default;
50
-
51
- $call-button-align-self: center !default;
52
- $call-button-background-color: $color-white !default;
53
- $call-button-border: 1px solid $call-color !default;
54
- $call-button-border-radius: 15px !default;
55
- $call-button-color: $call-color !default;
56
- $call-button-font-size: 12px !default;
57
- $call-button-font-weight: $call-font-weight !default;
58
- $call-button-margin: 0 !default;
59
- $call-button-padding: 4px 14px !default;
60
- $call-button-text-transform: uppercase !default;
61
-
62
- .header {
63
- background-color: $header-background-color;
64
- padding: $header-padding-mobile;
65
-
66
- .container {
67
- padding: $header-container-padding;
68
- }
69
-
70
- &__content {
71
- align-items: $header-content-align-items;
72
- display: $header-content-display;
73
- justify-content: $header-content-justify-content-mobile;
74
- }
75
-
76
- &__logo{
77
- img, svg {
78
- display: $header-logo-display;
79
- height: $header-logo-height-mobile;
80
- margin: $header-logo-margin-mobile;
81
- width: $header-logo-width-mobile;
82
- }
83
- }
84
-
85
- &__bbb-logo {
86
- display: $header-bbb-logo-display;
87
- height: $header-bbb-logo-height-mobile;
88
- width: $header-bbb-logo-width-mobile;
89
- }
90
-
91
- &__back-button {
92
- background-color: $header-back-button-background-color;
93
- border: 0;
94
- border-right: $header-back-button-border-right;
95
- color: $header-back-button-color;
96
- display: none;
97
- font-size: $header-back-button-font-size;
98
- line-height: $header-back-button-line-height;
99
- padding: $header-back-button-padding;
100
- }
101
-
102
- &__tagline {
103
- color: $header-tagline-color;
104
- font-size: $header-tagline-font-size;
105
- font-weight: $header-tagline-font-weight;
106
- }
107
-
108
- &__call {
109
- color: $call-color;
110
- font-size: $call-font-size;
111
- font-weight: $call-font-weight;
112
-
113
- .header__call-icon {
114
- width: $call-icon-width-large;
115
- }
116
- }
117
-
118
- &__call-link {
119
- color: $call-link-color;
120
- text-decoration: $call-link-text-decoration;
121
- }
122
-
123
- &__call-number {
124
- font-weight: $call-number-font-weight;
125
- }
126
-
127
- &__call-icon {
128
- width: $call-icon-width;
129
- }
130
-
131
- &__call-button {
132
- align-self: $call-button-align-self;
133
- background-color: $call-button-background-color;
134
- border: $call-button-border;
135
- border-radius: $call-button-border-radius;
136
- color: $call-button-color;
137
- font-size: $call-button-font-size;
138
- font-weight: $call-button-font-weight;
139
- margin: $call-button-margin;
140
- padding: $call-button-padding;
141
- text-transform: $call-button-text-transform;
142
- }
143
- }
144
-
145
- .callNowControls {
146
- display: $callrail-display;
147
- }
148
-
149
- @include breakpoint-phone {
150
- .header {
151
- &--transparent {
152
- background-color: transparent;
153
- }
154
-
155
- &--show-back-button {
156
- padding: $header-show-button-padding;
157
-
158
- .header__content {
159
- align-items: stretch;
160
- }
161
-
162
- .header__back-button {
163
- display: block;
164
- flex: $header-show-button-button-flex;
165
- }
166
- .header__logo {
167
- flex: $header-show-button-logo-flex;
168
- margin: $header-show-button-logo-margin;
169
- text-align: center;
170
- }
171
- }
172
- }
173
- }
174
-
175
- @include breakpoint-sm {
176
- .header {
177
- padding: $header-padding-desktop;
178
-
179
- &__content {
180
- justify-content: $header-content-justify-content-desktop;
181
- }
182
-
183
- &__back-button {
184
- display: none;
185
- }
186
-
187
- &__logo {
188
- img, svg {
189
- height: $header-logo-height-desktop;
190
- margin: $header-logo-margin-desktop;
191
- width: $header-logo-width-desktop;
192
- }
193
- }
194
-
195
- &__bbb-logo {
196
- height: $header-bbb-logo-height-desktop;
197
- width: $header-bbb-logo-width-desktop;
198
- }
199
- }
200
- }
@@ -1,71 +0,0 @@
1
- <div class="header{{#if this.header.class}} {{this.header.class}}{{/if}}" {{#if this.header.id}}id="{{this.header.id}}"{{/if}}>
2
- <div class="container">
3
- <div class="header__content">
4
- {{#xif "this.header.includeBackButton === true"}}
5
- <button class="header__back-button" data-btn="back">
6
- <i class="icon-caret-left">
7
- <span class="visually-hidden">Back</span>
8
- </i>
9
- </button>
10
- {{/xif}}
11
- <div class="header__logo{{#if this.header.logo.class}} {{this.header.logo.class}}{{/if}}">
12
- {{#xif "this.header.logo.tag === 'img'"}}
13
- <img src="{{#if this.header.logo.localSrc}}{{this.header.logo.localSrc}}{{else}}https://{{x 'process.env.NODE_ENV'}}/quote/resources/assets/{{this.header.logo.src}}{{/if}}" alt="{{this.header.logo.altText}}">
14
- {{/xif}}
15
- {{#xif "this.header.logo.tag === 'picture'"}}
16
- <picture>
17
- <source media="{{#if this.header.logo.media}}{{this.header.logo.media}}{{/if}}" srcset="{{#if this.header.logo.localSrcset}}{{this.header.logo.localSrcset}}{{else}}https://{{x 'process.env.NODE_ENV'}}/quote/resources/assets/{{this.header.logo.srcset}}{{/if}}" {{{this.header.logo.pictureSourceAttributes}}}>
18
- <img src="{{#if this.header.logo.localSrc}}{{this.header.logo.localSrc}}{{else}}https://{{x 'process.env.NODE_ENV'}}/quote/resources/assets/{{this.header.logo.src}}{{/if}}" alt="{{this.header.logo.altText}}">
19
- </picture>
20
- {{/xif}}
21
- {{#xif "this.header.logo.tag === 'svg'"}}
22
- <svg>
23
- <use href="{{#if this.header.logo.localSrc}}{{this.header.logo.localSrc}}{{else}}https://{{x 'process.env.NODE_ENV'}}/quote/resources/assets/{{this.header.logo.src}}{{/if}}"></use>
24
- </svg>
25
- {{/xif}}
26
- </div>
27
- {{#if this.header.callRail}}
28
- <div class="header__call callNowControls{{#if this.header.callRail.showButtonOn}}{{#each this.header.callRail.showButtonOn}} hidden-{{this}} {{/each}}{{else}} hidden-xs hidden-sm{{/if}}">
29
- {{#if this.header.callRail.icon}}
30
- <img src="{{#if this.header.callRail.icon.localSrc}}{{this.header.callRail.icon.localSrc}}{{else}}https://{{x 'process.env.NODE_ENV'}}/quote/resources/assets/{{this.header.callRail.icon.src}}{{/if}}" class="header__call-icon" alt="{{this.header.callRail.icon.altText}}">
31
- {{/if}}
32
- {{#xif "this.header.callRail.setAllTextAsLink === true"}}
33
- <a class="header__call-link" href="tel:{{this.header.callRail.phoneNumber}}">{{{this.header.callRail.text}}} <span class="header__call-number">{{formatPhoneNo this.header.callRail.phoneNumber}}</span></a>
34
- {{else}}
35
- {{{this.header.callRail.text}}}
36
- {{#xif "this.header.callRail.setNumberAsLink === true"}}
37
- <a class="header__call-link" href="tel:{{this.header.callRail.phoneNumber}}"><span class="header__call-number">{{formatPhoneNo this.header.callRail.phoneNumber}}</span></a>
38
- {{else}}
39
- <span class="header__call-number">{{formatPhoneNo this.header.callRail.phoneNumber}}</span>
40
- {{/xif}}
41
- {{/xif}}
42
-
43
- </div>
44
- <{{#if this.header.callRail.useAnchorButton}}a{{else}}button{{/if}} class="header__call-button callNowControls{{#if this.header.callRail.hideButtonOn}}{{#each this.header.callRail.hideButtonOn}} hidden-{{this}} {{/each}}{{else}} hidden-md hidden-lg{{/if}}" href="tel:{{this.header.callRail.phoneNumber}}">
45
- {{#if this.header.callRail.icon}}
46
- <img src="{{#if this.header.callRail.icon.localSrc}}{{this.header.callRail.icon.localSrc}}{{else}}https://{{x 'process.env.NODE_ENV'}}/quote/resources/assets/{{this.header.callRail.icon.src}}{{/if}}" class="header__call-icon" alt="{{this.header.callRail.icon.altText}}">
47
- {{/if}}
48
- {{{this.header.callRail.mobileText}}}
49
- </{{#if this.header.callRail.useAnchorButton}}a{{else}}button{{/if}}>
50
- {{/if}}
51
- {{#if this.header.additionalLogos}}
52
- <div class="header__additional-logos">
53
- {{#each this.header.additionalLogos}}
54
- {{#xif "this.tag === 'svg'"}}
55
- <svg {{#if this.class}}class="{{this.class}}"{{/if}}>
56
- <use href="{{#if this.localSrc}}{{this.localSrc}}{{else}}https://{{x 'process.env.NODE_ENV'}}/quote/resources/assets/{{this.src}}{{/if}}"></use>
57
- </svg>
58
- {{else}}
59
- <img {{#if this.class}}class="{{this.class}}"{{/if}} src="{{#if this.localSrc}}{{this.localSrc}}{{else}}https://{{x 'process.env.NODE_ENV'}}/quote/resources/assets/{{this.src}}{{/if}}" alt="{{this.altText}}"{{#if this.width}} width="{{this.width}}"{{/if}}{{#if this.height}} height="{{this.height}}"{{/if}}>
60
- {{/xif}}
61
- {{/each}}
62
- </div>
63
- {{/if}}
64
- {{#if this.header.tagline.text}}
65
- <div class="header__tagline{{#if this.header.tagline.class}} {{this.header.tagline.class}}{{/if}}">
66
- {{{this.header.tagline.text}}}
67
- </div>
68
- {{/if}}
69
- </div>
70
- </div>
71
- </div>