mod-build 3.6.71 → 4.0.0-alpha.1
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/.eslintignore +3 -0
- package/.eslintrc +18 -0
- package/CHANGELOG.md +2 -240
- package/README.md +16 -263
- package/gulp-tasks/build.js +1 -1
- package/package.json +21 -69
- package/siteconfig.js +38 -0
- package/src/accessible-components/button/_button.scss +195 -0
- package/src/accessible-components/button/back-button.html +4 -0
- package/src/accessible-components/button/button.html +17 -0
- package/src/accessible-components/carousel/_carousel.scss +112 -0
- package/src/accessible-components/carousel/carousel.html +25 -0
- package/src/accessible-components/checkbox/_checkbox.scss +96 -0
- package/src/accessible-components/checkbox/checkbox.html +8 -0
- package/src/accessible-components/expand-collapse/_expand-collapse.scss +122 -0
- package/src/accessible-components/expand-collapse/expand-collapse.html +8 -0
- package/src/accessible-components/expand-collapse/expand-collapse.js +52 -0
- package/src/accessible-components/expand-collapse/expand-collapse.min.js +2 -0
- package/src/accessible-components/expand-collapse/expand-collapse.min.js.map +1 -0
- package/src/accessible-components/featured-block/_featured-block.scss +219 -0
- package/src/accessible-components/featured-block/featured-block.html +54 -0
- package/src/accessible-components/foot-assets/foot-assets.html +92 -0
- package/src/accessible-components/footer/footer.html +2 -0
- package/src/{templates/_partials/scripts/gtm-editorials/body/google-tag-manager-body.html → accessible-components/gtm-body/gtm-body.html} +1 -2
- package/src/accessible-components/head/head.html +188 -0
- package/src/accessible-components/header/_header.scss +289 -0
- package/src/accessible-components/header/header.html +66 -0
- package/src/accessible-components/hero/_hero.scss +371 -0
- package/src/accessible-components/hero/hero.html +53 -0
- package/src/accessible-components/how-it-works/_how-it-works.scss +217 -0
- package/src/accessible-components/how-it-works/how-it-works-carousel.html +12 -0
- package/src/accessible-components/how-it-works/how-it-works-static.html +12 -0
- package/src/accessible-components/how-it-works/how-it-works.html +14 -0
- package/src/accessible-components/information/_information.scss +92 -0
- package/src/accessible-components/information/information.html +26 -0
- package/src/accessible-components/input/_input.scss +202 -0
- package/src/accessible-components/input/input.html +22 -0
- package/src/accessible-components/input/textarea.html +9 -0
- package/src/accessible-components/partners/_partners.scss +232 -0
- package/src/accessible-components/partners/partners.html +56 -0
- package/src/accessible-components/picture/picture.html +19 -0
- package/src/accessible-components/preloader/_preloader.scss +61 -0
- package/src/accessible-components/preloader/preloader.html +23 -0
- package/src/accessible-components/progress-bar/_progress-bar.scss +119 -0
- package/src/accessible-components/progress-bar/progress-bar.html +21 -0
- package/src/accessible-components/progress-bar/progress-bar.js +37 -0
- package/src/accessible-components/progress-bar/progress-bar.min.js +2 -0
- package/src/accessible-components/progress-bar/progress-bar.min.js.map +1 -0
- package/src/accessible-components/radio-button/_radio-button.scss +537 -0
- package/src/accessible-components/radio-button/radio-button.html +34 -0
- package/src/accessible-components/reviews/_reviews.scss +175 -0
- package/src/accessible-components/reviews/reviews-carousel.html +12 -0
- package/src/accessible-components/reviews/reviews-static.html +12 -0
- package/src/accessible-components/reviews/reviews.html +37 -0
- package/src/accessible-components/select/_select.scss +69 -0
- package/src/accessible-components/select/select.html +10 -0
- package/src/accessible-components/steps/_steps.scss +524 -0
- package/src/accessible-components/steps/defaultFormFieldConfig.json +109 -0
- package/src/accessible-components/steps/step-fields.html +33 -0
- package/src/accessible-components/steps/steps.html +150 -0
- package/src/accessible-components/tcpa/_tcpa.scss +49 -0
- package/src/accessible-components/tcpa/tcpa.html +9 -0
- package/src/accessible-components/tile/_tile.scss +117 -0
- package/src/accessible-components/tile/tile.html +14 -0
- package/src/accessible-components/value-props/_value-props.scss +100 -0
- package/src/accessible-components/value-props/value-props.html +17 -0
- package/src/accessible-components/zip-control/_zip-control.scss +78 -0
- package/src/accessible-components/zip-control/zip-control.html +10 -0
- package/src/data/footer.js +117 -0
- package/src/data/seasons.js +5 -7
- package/src/data/theme.json +164 -0
- package/src/index.html +18 -0
- package/src/main.js +45 -0
- package/src/resources/scripts/abandonment/abandonment-1df90ee155f6c0893d90.min.js +2 -0
- package/src/resources/scripts/abandonment/abandonment.min.js +2 -0
- package/src/resources/scripts/footer/footer-component-7b5e263f64568573ecc0.min.js +2 -0
- package/src/resources/scripts/footer/footer-component.min.js +2 -0
- package/src/resources/scripts/helpers/initNumericOnlyFields.min.js +2 -0
- package/src/resources/scripts/helpers/initNumericOnlyFields.min.js.map +1 -0
- package/src/resources/scripts/helpers/isZipCodeValid.min.js +2 -0
- package/src/resources/scripts/helpers/isZipCodeValid.min.js.map +1 -0
- package/src/resources/scripts/mod-alytics/modalytics-0ac7d7a5a72ea67a0f47.min.js +2 -0
- package/src/resources/scripts/mod-alytics/modalytics.min.js +2 -0
- package/src/resources/scripts/mod-form/form/homeowner-77a4dd439b8db412678b.min.js +2 -0
- package/src/resources/scripts/mod-form/form/homeowner.min.js +2 -0
- package/src/resources/scripts/mod-utils/modutils-8ba40d21f559171ddd36.min.js +2 -0
- package/src/resources/scripts/mod-utils/modutils.min.js +2 -0
- package/src/resources/styles/components/abandonment/abandonment-ae63aca828944411eff7.min.css +1 -0
- package/src/resources/styles/components/abandonment/abandonment.min.css +1 -0
- package/src/resources/styles/components/footer/mod-footer-3717faf57147c62c1777.min.css +1 -0
- package/src/resources/styles/components/footer/mod-footer.min.css +1 -0
- package/src/resources/styles/components/footer/qs-footer-12bf078dc614ff221c3c.min.css +1 -0
- package/src/resources/styles/components/footer/qs-footer.min.css +1 -0
- package/src/resources/templates/modals/about/index.html +9 -0
- package/src/resources/templates/modals/contact-us/index.html +348 -0
- package/src/resources/templates/modals/faq/index.html +9 -0
- package/src/resources/templates/modals/privacy/index.html +236 -0
- package/src/resources/templates/modals/terms/index.html +166 -0
- package/src/scripts/has-qs-params.js +6 -5
- package/src/scripts/url-cleaner.js +3 -3
- package/src/scripts/utils.js +178 -0
- package/src/styles/home.scss +1 -0
- package/src/temp/scripts/maxmind-geoip2.js +104 -0
- package/src/templates/_partials/scripts/deferred-styles.html +16 -16
- package/src/templates/_partials/scripts/vwo-redirect-callback.html +43 -45
- package/src/templates/components/head.html +70 -0
- package/tasks/clean.js +13 -0
- package/tasks/grab-cdn.js +107 -0
- package/tasks/grab-form-helpers.js +94 -0
- package/tasks/grab-shared-components.js +81 -0
- package/tasks/grab-shared-scripts.js +267 -0
- package/tasks/serve.js +15 -0
- package/tasks/templates.js +168 -0
- package/template.js +801 -0
- package/vite.config.js +56 -0
- package/.eslintrc.yml +0 -59
- package/src/data/common.js +0 -704
- package/src/data/components/qs-footer.js +0 -55
- package/src/data/components/quote-footer.js +0 -73
- package/src/scripts/apt-block.js +0 -919
- package/src/scripts/components/custom-selects.js +0 -48
- package/src/scripts/components/radio-panels.js +0 -45
- package/src/scripts/es6-1.js +0 -6
- package/src/scripts/es6-2.js +0 -2
- package/src/scripts/qs-form.js +0 -839
- package/src/scripts/vendor/maxmind-geoip2.js +0 -2
- package/src/scripts/vendor/swiper.min.js +0 -13
- package/src/styles/apt-block.scss +0 -888
- package/src/templates/_partials/apt-block.html +0 -30
- package/src/templates/_partials/scripts/analytics.html +0 -4
- package/src/templates/_partials/scripts/go-page-hiding-snippet.html +0 -8
- package/src/templates/_partials/scripts/google-maps.html +0 -1
- package/src/templates/_partials/scripts/google-optimize.html +0 -12
- package/src/templates/_partials/scripts/gtm-editorials/head/google-tag-manager-head.html +0 -10
- package/src/templates/_partials/scripts/gtm-hil/body/google-tag-manager-body.html +0 -5
- package/src/templates/_partials/scripts/gtm-hil/head/google-tag-manager-head.html +0 -10
- package/src/templates/_partials/scripts/gtm-pro/body/google-tag-manager-body.html +0 -5
- package/src/templates/_partials/scripts/gtm-pro/head/google-tag-manager-head.html +0 -10
- package/src/templates/_partials/scripts/gtm-quote/body/google-tag-manager-body.html +0 -5
- package/src/templates/_partials/scripts/gtm-quote/head/google-tag-manager-head.html +0 -9
- package/src/templates/_partials/scripts/gtm-whitelabel/body/mod-google-tag-manager-body.html +0 -5
- package/src/templates/_partials/scripts/gtm-whitelabel/body/non-mod-google-tag-manager-body.html +0 -5
- package/src/templates/_partials/scripts/gtm-whitelabel/head/mod-google-tag-manager-head.html +0 -10
- package/src/templates/_partials/scripts/gtm-whitelabel/head/non-mod-google-tag-manager-head.html +0 -9
- package/src/templates/_partials/scripts/gtm-wordpress/body/google-tag-manager-body.html +0 -5
- package/src/templates/_partials/scripts/gtm-wordpress/head/google-tag-manager-head.html +0 -9
- package/src/templates/_partials/scripts/visual-website-optimizer.html +0 -5
- package/src/templates/index.html +0 -46
- /package/{src → public}/favicon.ico +0 -0
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
$reviews-background: $color-white !default;
|
|
2
|
+
$reviews-border-bottom: 0 !default;
|
|
3
|
+
$reviews-padding: 40px 0 !default;
|
|
4
|
+
$reviews-padding-tablet: 60px 0 !default;
|
|
5
|
+
$reviews-padding-desktop: 80px 0 !default;
|
|
6
|
+
$reviews-text-align: center !default;
|
|
7
|
+
|
|
8
|
+
$reviews-title-color: $color-charcoal8 !default;
|
|
9
|
+
$reviews-title-font-size: 1.375rem !default;
|
|
10
|
+
$reviews-title-font-size-desktop: 1.5rem !default;
|
|
11
|
+
$reviews-title-font-weight: 700 !default;
|
|
12
|
+
$reviews-title-line-height: 1.25 !default;
|
|
13
|
+
$reviews-title-margin: 0 0 35px !default;
|
|
14
|
+
|
|
15
|
+
$reviews-content-margin: 0 auto !default;
|
|
16
|
+
$reviews-content-max-width: 100% !default;
|
|
17
|
+
|
|
18
|
+
$reviews-card-background: $color-white !default;
|
|
19
|
+
$reviews-card-border: 1px solid $color-charcoal1 !default;
|
|
20
|
+
$reviews-card-border-radius: 6px !default;
|
|
21
|
+
$reviews-card-box-shadow: 0 8px 16px 0 rgba($color-black, .1) !default;
|
|
22
|
+
$reviews-card-list-style: none !default;
|
|
23
|
+
$reviews-card-min-height: 270px !default;
|
|
24
|
+
$reviews-card-min-height-tablet: 335px !default;
|
|
25
|
+
$reviews-card-min-height-desktop: 290px !default;
|
|
26
|
+
$reviews-card-padding: 50px 25px 30px !default;
|
|
27
|
+
$reviews-card-position: relative !default;
|
|
28
|
+
$reviews-card-text-align: center !default;
|
|
29
|
+
|
|
30
|
+
$reviews-avatar-border-radius: 100px !default;
|
|
31
|
+
$reviews-avatar-height: 73px !default;
|
|
32
|
+
$reviews-avatar-position-top: -40px !default;
|
|
33
|
+
$reviews-avatar-position-left: 50% !default;
|
|
34
|
+
$reviews-avatar-position: absolute !default;
|
|
35
|
+
$reviews-avatar-transform: translate(-50%) !default;
|
|
36
|
+
$reviews-avatar-width: $reviews-avatar-height !default;
|
|
37
|
+
|
|
38
|
+
$reviews-review-color: $color-charcoal6 !default;
|
|
39
|
+
$reviews-review-font-size: 1rem !default;
|
|
40
|
+
$reviews-review-font-style: italic !default;
|
|
41
|
+
$reviews-review-line-height: 1.35 !default;
|
|
42
|
+
$reviews-review-margin: 15px 0 !default;
|
|
43
|
+
$reviews-review-text-align: left !default;
|
|
44
|
+
|
|
45
|
+
$reviews-author-color: $reviews-review-color !default;
|
|
46
|
+
$reviews-author-font-size: $reviews-review-font-size !default;
|
|
47
|
+
$reviews-author-position-bottom: 25px !default;
|
|
48
|
+
$reviews-author-position-left: 50% !default;
|
|
49
|
+
$reviews-author-position: absolute !default;
|
|
50
|
+
$reviews-author-transform: translate(-50%) !default;
|
|
51
|
+
$reviews-author-name-display: block !default;
|
|
52
|
+
|
|
53
|
+
$reviews-author-includes-rating-name-display: inline-block !default;
|
|
54
|
+
$reviews-author-includes-rating-name-vertical-align: middle !default;
|
|
55
|
+
|
|
56
|
+
$reviews-location-display: block !default;
|
|
57
|
+
$reviews-location-font-size: $reviews-author-font-size !default;
|
|
58
|
+
$reviews-location-margin: 0 !default;
|
|
59
|
+
|
|
60
|
+
$reviews-date-border-right: 1px solid $reviews-author-color !default;
|
|
61
|
+
$reviews-date-margin-right: 4px !default;
|
|
62
|
+
$reviews-date-padding-right: 7px !default;
|
|
63
|
+
|
|
64
|
+
.reviews {
|
|
65
|
+
background: $reviews-background;
|
|
66
|
+
border-bottom: $reviews-border-bottom;
|
|
67
|
+
padding: $reviews-padding;
|
|
68
|
+
text-align: $reviews-text-align;
|
|
69
|
+
|
|
70
|
+
&__title {
|
|
71
|
+
color: $reviews-title-color;
|
|
72
|
+
font-size: $reviews-title-font-size;
|
|
73
|
+
font-weight: $reviews-title-font-weight;
|
|
74
|
+
line-height: $reviews-title-line-height;
|
|
75
|
+
margin: $reviews-title-margin;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&__content {
|
|
79
|
+
margin: $reviews-content-margin;
|
|
80
|
+
max-width: $reviews-content-max-width;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.reviews-card {
|
|
85
|
+
background: $reviews-card-background;
|
|
86
|
+
border: $reviews-card-border;
|
|
87
|
+
border-radius: $reviews-card-border-radius;
|
|
88
|
+
box-shadow: $reviews-card-box-shadow;
|
|
89
|
+
list-style: $reviews-card-list-style;
|
|
90
|
+
min-height: $reviews-card-min-height;
|
|
91
|
+
padding: $reviews-card-padding;
|
|
92
|
+
position: $reviews-card-position;
|
|
93
|
+
text-align: $reviews-card-text-align;
|
|
94
|
+
|
|
95
|
+
&__avatar {
|
|
96
|
+
border-radius: $reviews-avatar-border-radius;
|
|
97
|
+
height: $reviews-avatar-height;
|
|
98
|
+
left: $reviews-avatar-position-left;
|
|
99
|
+
position: $reviews-avatar-position;
|
|
100
|
+
top: $reviews-avatar-position-top;
|
|
101
|
+
transform: $reviews-avatar-transform;
|
|
102
|
+
width: $reviews-avatar-width;
|
|
103
|
+
|
|
104
|
+
img {
|
|
105
|
+
border-radius: $reviews-avatar-border-radius;
|
|
106
|
+
height: 100%;
|
|
107
|
+
width: 100%;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&__review {
|
|
112
|
+
color: $reviews-review-color;
|
|
113
|
+
font-size: $reviews-review-font-size;
|
|
114
|
+
font-style: $reviews-review-font-style;
|
|
115
|
+
line-height: $reviews-review-line-height;
|
|
116
|
+
margin: $reviews-review-margin;
|
|
117
|
+
text-align: $reviews-review-text-align;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&__author {
|
|
121
|
+
bottom: $reviews-author-position-bottom;
|
|
122
|
+
color: $reviews-author-color;
|
|
123
|
+
font-size: $reviews-author-font-size;
|
|
124
|
+
left: $reviews-author-position-left;
|
|
125
|
+
position: $reviews-author-position;
|
|
126
|
+
transform: $reviews-author-transform;
|
|
127
|
+
|
|
128
|
+
strong {
|
|
129
|
+
display: $reviews-author-name-display;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
&--includes-rating {
|
|
133
|
+
strong {
|
|
134
|
+
display: $reviews-author-includes-rating-name-display;
|
|
135
|
+
vertical-align: $reviews-author-includes-rating-name-vertical-align;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
&__location {
|
|
141
|
+
display: $reviews-location-display;
|
|
142
|
+
font-size: $reviews-location-font-size;
|
|
143
|
+
margin: $reviews-location-margin;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&__date {
|
|
147
|
+
border-right: $reviews-date-border-right;
|
|
148
|
+
margin-right: $reviews-date-margin-right;
|
|
149
|
+
padding-right: $reviews-date-padding-right;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
@include breakpoint-md {
|
|
154
|
+
.reviews {
|
|
155
|
+
padding: $reviews-padding-tablet;
|
|
156
|
+
|
|
157
|
+
&__title {
|
|
158
|
+
font-size: $reviews-title-font-size-desktop;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.reviews-card {
|
|
163
|
+
min-height: $reviews-card-min-height-tablet;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
@include breakpoint-lg {
|
|
168
|
+
.reviews {
|
|
169
|
+
padding: $reviews-padding-desktop;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.reviews-card {
|
|
173
|
+
min-height: $reviews-card-min-height-desktop;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<section class="reviews{{#xif 'this.reviews.attributes && this.reviews.attributes.class'}} {{this.reviews.attributes.class}}{{/xif}}" {{{addAttributes this.reviews 'class'}}}>
|
|
2
|
+
<div class="reviews__container container">
|
|
3
|
+
{{#if this.reviews.title}}
|
|
4
|
+
<h2 class="reviews__title{{#xif 'this.reviews.title.attributes && this.reviews.title.attributes.class'}} {{this.reviews.title.attributes.class}}{{/xif}}" {{{addAttributes this.reviews.title 'class'}}}>{{{this.reviews.title.text}}}</h2>
|
|
5
|
+
{{/if}}
|
|
6
|
+
{{#reviews}}
|
|
7
|
+
{{ fileInclude 'src/accessible-components/carousel/carousel.html'
|
|
8
|
+
carousel = this
|
|
9
|
+
}}
|
|
10
|
+
{{/reviews}}
|
|
11
|
+
</div>
|
|
12
|
+
</section>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<section class="reviews{{#xif 'this.reviews.attributes && this.reviews.attributes.class'}} {{this.reviews.attributes.class}}{{/xif}}" {{{addAttributes this.reviews 'class'}}}>
|
|
2
|
+
<div class="reviews__container container">
|
|
3
|
+
{{#if this.reviews.title}}
|
|
4
|
+
<h2 class="reviews__title{{#xif 'this.reviews.title.attributes && this.reviews.title.attributes.class'}} {{this.reviews.title.attributes.class}}{{/xif}}" {{{addAttributes this.reviews.title 'class'}}}>{{{this.reviews.title.text}}}</h2>
|
|
5
|
+
{{/if}}
|
|
6
|
+
<ul class="reviews__content">
|
|
7
|
+
{{ fileInclude 'src/accessible-components/reviews/reviews.html'
|
|
8
|
+
items = this.reviews.items
|
|
9
|
+
}}
|
|
10
|
+
</ul>
|
|
11
|
+
</div>
|
|
12
|
+
</section>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{{#each this.items}}
|
|
2
|
+
<li class="reviews-card{{#if ../this.carouselOptions}} swiper-slide{{/if}}{{#xif 'this.attributes && this.attributes.class'}} {{this.attributes.class}}{{/xif}}" {{{addAttributes this 'class'}}}>
|
|
3
|
+
{{#if this.avatar}}
|
|
4
|
+
<picture class="reviews-card__avatar">
|
|
5
|
+
<source data-srcset="https://{{x 'process.env.NODE_ENV'}}/quote/resources/assets/images/avatars/people/{{this.avatar}}.webp" type="image/webp">
|
|
6
|
+
<img data-src="https://{{x 'process.env.NODE_ENV'}}/quote/resources/assets/images/avatars/people/{{this.avatar}}.jpg" class="swiper-lazy">
|
|
7
|
+
</picture>
|
|
8
|
+
{{/if}}
|
|
9
|
+
{{#if ../this.carouselOptions}}
|
|
10
|
+
<div class="swiper-lazy-preloader"></div>
|
|
11
|
+
{{/if}}
|
|
12
|
+
{{#unless this.showRatingNextToAuthor}}
|
|
13
|
+
<span class="star-rating star-rating--sm">
|
|
14
|
+
<span class="star-rating__stars star-rating__stars--{{this.starRating}}"></span>
|
|
15
|
+
</span>
|
|
16
|
+
{{/unless}}
|
|
17
|
+
<p class="reviews-card__review">{{#unless this.excludeQuotes}}"{{/unless}}{{{this.reviewText}}}{{#unless this.excludeQuotes}}"{{/unless}}</p>
|
|
18
|
+
<p class="reviews-card__author{{#if this.showRatingNextToAuthor}} reviews-card__author--includes-rating{{/if}}">
|
|
19
|
+
{{#if this.showRatingNextToAuthor}}
|
|
20
|
+
<span class="star-rating star-rating--sm">
|
|
21
|
+
<span class="star-rating__stars star-rating__stars--{{this.starRating}}"></span>
|
|
22
|
+
</span>
|
|
23
|
+
{{/if}}
|
|
24
|
+
<strong>{{this.authorName}}</strong>
|
|
25
|
+
<span class="reviews-card__location">
|
|
26
|
+
{{#if this.date}}
|
|
27
|
+
<span class="reviews-card__date">{{this.date}}</span>
|
|
28
|
+
{{/if}}
|
|
29
|
+
{{#if this.useGeoLocation}}
|
|
30
|
+
<span class="user-location">{{this.location}}</span>
|
|
31
|
+
{{else}}
|
|
32
|
+
{{this.location}}
|
|
33
|
+
{{/if}}
|
|
34
|
+
</span>
|
|
35
|
+
</p>
|
|
36
|
+
</li>
|
|
37
|
+
{{/each}}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
$select-background-color: transparent !default;
|
|
2
|
+
$select-border: 1px solid darken($color-charcoal3, 5%) !default;
|
|
3
|
+
$select-border-radius: 4px !default;
|
|
4
|
+
$select-box-shadow: none !default;
|
|
5
|
+
$select-font-size: 1rem !default;
|
|
6
|
+
$select-font-size-desktop: 1.125rem !default;
|
|
7
|
+
$select-line-height: 1.1875 !default;
|
|
8
|
+
$select-margin: 0 0 15px !default;
|
|
9
|
+
$select-padding: 14px 15px 13px !default;
|
|
10
|
+
$select-text-color: $color-charcoal8 !default;
|
|
11
|
+
$select-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s !default;
|
|
12
|
+
|
|
13
|
+
$select-focus-border: 1px solid $color-charcoal5 !default;
|
|
14
|
+
$select-focus-box-shadow: none !default;
|
|
15
|
+
|
|
16
|
+
$select-arrow-position-right: 15px !default;
|
|
17
|
+
$select-arrow-position-top: calc(50% - 7px) !default;
|
|
18
|
+
$select-arrow-color: $color-charcoal4 !default;
|
|
19
|
+
$select-arrow-font-size: 1rem !default;
|
|
20
|
+
|
|
21
|
+
.select-wrapper {
|
|
22
|
+
margin: $select-margin;
|
|
23
|
+
position: relative;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.select {
|
|
27
|
+
appearance: none;
|
|
28
|
+
background-color: $select-background-color;
|
|
29
|
+
border: $select-border;
|
|
30
|
+
border-radius: $select-border-radius;
|
|
31
|
+
box-shadow: $select-box-shadow;
|
|
32
|
+
color: $select-text-color;
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
font-size: $select-font-size;
|
|
35
|
+
line-height: $select-line-height;
|
|
36
|
+
margin: 0;
|
|
37
|
+
padding: $select-padding;
|
|
38
|
+
position: relative;
|
|
39
|
+
transition: $select-transition;
|
|
40
|
+
width: 100%;
|
|
41
|
+
|
|
42
|
+
&:focus {
|
|
43
|
+
border: $select-focus-border;
|
|
44
|
+
box-shadow: $select-focus-box-shadow;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&__caret {
|
|
48
|
+
color: $select-arrow-color;
|
|
49
|
+
font-size: $select-arrow-font-size;
|
|
50
|
+
margin-top: 0;
|
|
51
|
+
pointer-events: none;
|
|
52
|
+
position: absolute;
|
|
53
|
+
right: $select-arrow-position-right;
|
|
54
|
+
top: $select-arrow-position-top;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&--border-bottom-only {
|
|
58
|
+
border-left: 0 !important;
|
|
59
|
+
border-radius: 0;
|
|
60
|
+
border-right: 0 !important;
|
|
61
|
+
border-top: 0 !important;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@include breakpoint-md {
|
|
66
|
+
.select {
|
|
67
|
+
font-size: $select-font-size-desktop;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{{#if this.field}}
|
|
2
|
+
<div class="select-wrapper">
|
|
3
|
+
<select class="select{{#if this.field.attributes.class}} {{this.field.attributes.class}}{{/if}}" {{{addAttributes this.field 'class'}}}>
|
|
4
|
+
{{#each this.field.options}}
|
|
5
|
+
<option value="{{this.attributes.value}}" {{{addAttributes this 'value'}}}>{{this.text}}</option>
|
|
6
|
+
{{/each}}
|
|
7
|
+
</select>
|
|
8
|
+
<span class="select__caret icon icon-caret-down"></span>
|
|
9
|
+
</div>
|
|
10
|
+
{{/if}}
|