mod-build 4.0.102 → 4.0.104

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 (75) hide show
  1. package/CHANGELOG.md +7 -2
  2. package/package.json +1 -1
  3. package/src/scripts/globals.js +1 -3
  4. package/src/scripts/plugins.js +0 -3
  5. package/tasks/templates.js +2 -4
  6. package/gulp-tasks/add-path-subdirectories.js +0 -34
  7. package/gulp-tasks/build-stat.js +0 -9
  8. package/gulp-tasks/build.js +0 -28
  9. package/gulp-tasks/cache-bust.js +0 -19
  10. package/gulp-tasks/check-seasonal-variations.js +0 -21
  11. package/gulp-tasks/clean.js +0 -10
  12. package/gulp-tasks/combine-files.js +0 -7
  13. package/gulp-tasks/compile.js +0 -44
  14. package/gulp-tasks/copy-files-to-build-path.js +0 -8
  15. package/gulp-tasks/copy-fonts.js +0 -6
  16. package/gulp-tasks/copy-json.js +0 -6
  17. package/gulp-tasks/copy-resources-to-dist.js +0 -6
  18. package/gulp-tasks/copy-videos.js +0 -6
  19. package/gulp-tasks/extras.js +0 -22
  20. package/gulp-tasks/grab-cdn.js +0 -74
  21. package/gulp-tasks/grab-form-helpers.js +0 -55
  22. package/gulp-tasks/grab-global-images.js +0 -121
  23. package/gulp-tasks/grab-images.js +0 -79
  24. package/gulp-tasks/grab-shared-components.js +0 -46
  25. package/gulp-tasks/grab-shared-scripts.js +0 -275
  26. package/gulp-tasks/grab-theme-json.js +0 -24
  27. package/gulp-tasks/grab-tooltips-json.js +0 -33
  28. package/gulp-tasks/js-lint-husky.js +0 -35
  29. package/gulp-tasks/js-lint.js +0 -24
  30. package/gulp-tasks/minify.js +0 -131
  31. package/gulp-tasks/sass-lint.js +0 -15
  32. package/gulp-tasks/serve.js +0 -74
  33. package/gulp-tasks/settings.js +0 -22
  34. package/gulp-tasks/styles.js +0 -42
  35. package/gulp-tasks/tasks.js +0 -475
  36. package/gulp-tasks/templates.js +0 -288
  37. package/src/data/footer.js +0 -119
  38. package/src/resources/data/tcpa.json +0 -4
  39. package/src/resources/templates/modals/about/index.hbs +0 -9
  40. package/src/resources/templates/modals/about/index.html +0 -9
  41. package/src/resources/templates/modals/contact-us/index.hbs +0 -348
  42. package/src/resources/templates/modals/contact-us/index.html +0 -348
  43. package/src/resources/templates/modals/e-sign-consent/index.hbs +0 -35
  44. package/src/resources/templates/modals/e-sign-consent/index.html +0 -35
  45. package/src/resources/templates/modals/faq/index.hbs +0 -9
  46. package/src/resources/templates/modals/faq/index.html +0 -9
  47. package/src/resources/templates/modals/privacy/index.hbs +0 -238
  48. package/src/resources/templates/modals/privacy/index.html +0 -238
  49. package/src/resources/templates/modals/terms/index.hbs +0 -166
  50. package/src/resources/templates/modals/terms/index.html +0 -166
  51. package/src/scripts/default/additional-assets.js +0 -60
  52. package/src/scripts/default/rage-clicking.js +0 -54
  53. package/src/scripts/default/show-utility-providers.js +0 -28
  54. package/src/scripts/url-cleaner.js +0 -8
  55. package/src/scripts/vendor/google-tag-manager-head.js +0 -6
  56. package/src/scripts/vendor/heap-addeventproperties-identify.js +0 -262
  57. package/src/scripts/vendor/heap-tracking.js +0 -9
  58. package/src/styles/partials/_contact-us.scss +0 -196
  59. package/src/styles/partials/_google-address-autocomplete.scss +0 -52
  60. package/src/styles/partials/_mixins.scss +0 -39
  61. package/src/styles/partials/_modal-pages.scss +0 -125
  62. package/src/styles/partials/_modernize-colors.scss +0 -128
  63. package/src/styles/partials/_qs-footer.scss +0 -68
  64. package/src/styles/partials/_quote-footer-v1.scss +0 -79
  65. package/src/styles/partials/_quote-footer-v2.scss +0 -64
  66. package/src/styles/partials/_quote-footer-v3.scss +0 -65
  67. package/src/templates/_partials/scripts/deferred-styles.html +0 -16
  68. package/src/templates/_partials/scripts/heap-bundle.html +0 -5
  69. package/src/templates/_partials/scripts/heap.html +0 -4
  70. package/src/templates/_partials/scripts/utm-params.html +0 -9
  71. package/src/templates/components/qs-footer.html +0 -55
  72. package/src/templates/components/quote-footer-v1.html +0 -148
  73. package/src/templates/components/quote-footer-v2.html +0 -169
  74. /package/tasks/{addSeasonalchanges.js → add-seasonal-changes.js} +0 -0
  75. /package/tasks/{setupDevOpsTrackingId.js → setup-dev-ops-tracking-id.js} +0 -0
@@ -1,54 +0,0 @@
1
- export const preventRageClicks = (steps = '.step', swiperEl = '.swiper') => {
2
- const $allButtons = document.querySelectorAll('button');
3
- const $steps = document.querySelectorAll(steps);
4
- const swiper = document.querySelector(swiperEl).swiper;
5
- const $formContainer = document.querySelector('.hero__form-container');
6
-
7
- if ($allButtons && swiper && $steps) {
8
- let isTransitionStart = false;
9
- let clickHandler = (e) => {
10
- e.preventDefault();
11
- e.stopPropagation();
12
- };
13
-
14
- swiper.on('slideChange', () => {
15
- isTransitionStart = true;
16
- if ($formContainer) {
17
- $formContainer.style.overflow = 'hidden';
18
- }
19
-
20
- $allButtons.forEach((button) => {
21
- button.addEventListener('click', clickHandler);
22
- button.disabled = true;
23
- });
24
- });
25
-
26
- swiper.on('slideChangeTransitionEnd', () => {
27
- if ($formContainer) {
28
- $formContainer.style.overflow = 'initial';
29
- }
30
- if (isTransitionStart) {
31
- isTransitionStart = false;
32
-
33
- $allButtons.forEach((button) => {
34
- button.disabled = false;
35
- button.removeEventListener('click', clickHandler);
36
- });
37
-
38
- $steps.forEach((step) => {
39
- step.classList.remove(window.modForm.opts.stepActiveCls);
40
- });
41
-
42
- document
43
- .querySelector(`${steps}.swiper-slide-active`)
44
- .classList.add(window.modForm.opts.stepActiveCls);
45
-
46
- document
47
- .querySelector(`${steps}.step[aria-hidden="false"]`)
48
- .focus({ preventScroll: true });
49
-
50
- swiper.update();
51
- }
52
- });
53
- }
54
- };
@@ -1,28 +0,0 @@
1
- export const showUtilityProviders = (utilityProviders, skipStep) => {
2
- let oldUtilProviders = '';
3
- const utilityProviderWrapper = document.querySelector('[name="UtilityProvider"]');
4
-
5
- if (JSON.stringify(utilityProviders) === JSON.stringify(oldUtilProviders)) {
6
- return;
7
- }
8
-
9
- utilityProviderWrapper.innerHTML = '';
10
- oldUtilProviders = utilityProviders;
11
-
12
- const defaultOption = document.createElement('option');
13
- defaultOption.value = '';
14
- defaultOption.textContent = 'Select an option';
15
- utilityProviderWrapper.appendChild(defaultOption);
16
-
17
- utilityProviders.forEach(function (utilityProvider, i) {
18
- const utilityProviderName = utilityProvider.name;
19
-
20
- const option = document.createElement('option');
21
- option.textContent = utilityProviderName;
22
- if (i === 0 && skipStep) {
23
- option.selected = true;
24
- }
25
-
26
- utilityProviderWrapper.appendChild(option);
27
- });
28
- };
@@ -1,8 +0,0 @@
1
- // On page load if hash has an ampersand all text after is removed, if there's a hash with only 'q + number' format we replace history without hash
2
- let hash = window.location.hash;
3
- if (hash.indexOf('&') > -1) {
4
- window.location.hash = hash = hash.split('&')[0];
5
- }
6
- if (/^#q\d$/.test(hash)) {
7
- history.replaceState(null, '', window.location.href.split('#')[0]);
8
- }
@@ -1,6 +0,0 @@
1
- var gtm_container_ID = (window.isQSPage && '{{qs_gtm_container_ID}}'.length > 0) ? '{{qs_gtm_container_ID}}' : '{{gtm_container_ID}}';
2
- (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
3
- new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
4
- j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
5
- 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
6
- })(window,document,'script','dataLayer',gtm_container_ID);
@@ -1,262 +0,0 @@
1
- (function() {
2
- var heapUserTracking = {
3
- /**
4
- * Supported tracking params
5
- */
6
- supportedParams: ['formpath', 'projectid'],
7
- supportedTrackingParams: ['src', 'sub_id', 'sub2_id', 'pub_id', 'account', 'campaign', 'ad_group', 'keyword', 'campaignid', 'adgroupid', 'agid', 'keywordid', 'loc1', 'loc2', 'kw', 'gclid', 'utm_campaign', 'utm_source', 'utm_medium', 'utm_term', 'utm_content', 'program', 'motivation', 'quadlink', 'ccid', 'clk', 'qtr', 'fb_campaign_id'],
8
- isHRC: window.location.href.split('?')[0].indexOf('/my/') > -1,
9
-
10
- /**
11
- * Tracking params translations from GET param name to Heap prop name (if needed)
12
- */
13
- trackingParamsTranslations: {
14
- projectid: 'project_id',
15
- formpath: 'form_path'
16
- },
17
-
18
- /**
19
- * Get URL params into LC key/value object
20
- * @returns {Object} - object containing url params
21
- */
22
- getUrlParamsLC: function() {
23
- var results = {},
24
- url = window.location.href.replace(window.location.hash, '');
25
-
26
- if (url.indexOf('?') > -1) {
27
- var pairs = url.substring(url.indexOf('?') + 1).split('&');
28
-
29
- for (var i = 0; i < pairs.length; i ++) {
30
- if (!pairs[i]) {
31
- continue;
32
- }
33
-
34
- var pair = pairs[i].split('='),
35
- name = decodeURIComponent(pair[0]).toLowerCase(),
36
- value = 'undefined' !== typeof pair[1] ? decodeURIComponent(pair[1].replace(/\+/g, '%20')) : null;
37
-
38
- if (results[name] === undefined) {
39
- results[name] = value;
40
- }
41
- }
42
- }
43
- return results;
44
- },
45
-
46
- /**
47
- * Get current page trade
48
- * @param {String} pageUrl - page url
49
- * @returns {String} - trade
50
- */
51
- getCurrentPageTrade: function(pageUrl) {
52
- var trade = null,
53
- urlSubstringToTrade = {
54
- window: 'windows',
55
- solar: 'solar',
56
- hvac: 'hvac',
57
- roof: 'roofing',
58
- siding: 'siding'
59
- };
60
-
61
- if (!pageUrl) {
62
- pageUrl = window.location.pathname;
63
- }
64
-
65
- pageUrl = pageUrl.split('/');
66
-
67
- outerLoop:
68
- for (var i = 1; i < pageUrl.length; i ++) {
69
- for (var substr in urlSubstringToTrade) {
70
- if (urlSubstringToTrade.hasOwnProperty(substr)) {
71
- if (pageUrl[i].indexOf(substr) > -1) {
72
- trade = urlSubstringToTrade[substr];
73
- break outerLoop;
74
- } else {
75
- trade = 'general';
76
- }
77
- }
78
- }
79
- }
80
-
81
- return trade;
82
- },
83
-
84
- /**
85
- * Get default src
86
- */
87
- getDefaultSrc: function() {
88
- var seoSrcParamValuesByTrade = {
89
- general: 'Mod001',
90
- solar: 'Mod002',
91
- windows: 'Mod003',
92
- hvac: 'Mod004',
93
- roofing: 'Mod005',
94
- siding: 'Mod006'
95
- },
96
- pageTrade = this.getCurrentPageTrade();
97
-
98
- return seoSrcParamValuesByTrade[pageTrade];
99
- },
100
-
101
- /**
102
- * Gets cookie
103
- * @param {String} name - cookie's name
104
- * @returns {Mixed} - cookie's value
105
- */
106
- getCookie: function(name) {
107
- var cookieName = name + '=',
108
- cookieData = document.cookie.split(';');
109
-
110
- for (var i = 0; i < cookieData.length; i ++) {
111
- var c = cookieData[i];
112
- while (c.charAt(0) === ' ') {
113
- c = c.substring(1, c.length);
114
- }
115
- if (c.indexOf(cookieName) === 0) {
116
- return c.substring(cookieName.length, c.length);
117
- }
118
- }
119
-
120
- return null;
121
- },
122
-
123
- /**
124
- * Check Heap cookie for tracking params
125
- * @returns {String} trackingParamsObject - object list of tracking params
126
- */
127
- getHeapCookieData: function() {
128
- if (window.heap && window.heap.appid) {
129
- var cookieVal = this.getCookie('_hp2_props.' + window.heap.appid);
130
-
131
- if (cookieVal) {
132
- try {
133
- return JSON.parse(decodeURIComponent(cookieVal));
134
- }
135
- catch (e) {}
136
- }
137
- }
138
- },
139
-
140
- /**
141
- * Check if timestamp from Heap cookie is older than 24 hours
142
- * @returns {Boolean}
143
- */
144
- checkLastSrc: function() {
145
- var heapCookie = this.getHeapCookieData();
146
- if (heapCookie) {
147
- var prevDate = heapCookie.timestamp,
148
- currentDate = Date.now(),
149
- oneDay = 24 * 60 * 60 * 1000;
150
-
151
- if ((currentDate - prevDate) > oneDay) {
152
- return true;
153
- }
154
- }
155
- return false;
156
- },
157
-
158
- /**
159
- * Init
160
- */
161
- init: function() {
162
- var getParams = this.getUrlParamsLC(),
163
- eventProperties = {};
164
-
165
- // If not on TYP, then support marketing params as well
166
- if (!this.isHRC) {
167
- this.supportedParams = this.supportedParams.concat(this.supportedParams, this.supportedTrackingParams);
168
- }
169
-
170
- // Check if there's a param to identify homeowner
171
- if (getParams.userid) {
172
- if ('undefined' !== typeof heap) {
173
- heap.identify(getParams.userid, 'ID');
174
- }
175
- else {
176
- console.log('Heap identify', getParams.userid, 'ID');
177
- }
178
- }
179
-
180
- // Check if there's a param to identify contractor
181
- if (getParams.contractorid) {
182
- if ('undefined' !== typeof heap) {
183
- heap.identify(getParams.contractorid, 'contractor_id');
184
- }
185
- else {
186
- console.log('Heap identify', getParams.contractorid, 'contractor_id');
187
- }
188
- }
189
-
190
- // Collect supported event properties from URL
191
- for (var name in getParams) {
192
- if (getParams.hasOwnProperty(name)) {
193
- var eventName = 'undefined' !== typeof this.trackingParamsTranslations[name] ? this.trackingParamsTranslations[name] : name;
194
-
195
- if (this.supportedParams.indexOf(name) > -1) {
196
- eventProperties[eventName] = getParams[name];
197
- }
198
- }
199
- }
200
-
201
- // Set timestamp whenever we find src parameter on url
202
- if (eventProperties.hasOwnProperty('src') || eventProperties.hasOwnProperty('utm_source')) {
203
- eventProperties.timestamp = Date.now();
204
- }
205
- else if (window.isWordpress) { // I'm sorry
206
- // Set default src if no tracking params are available (in url or in cookie)
207
- if (Object.keys(eventProperties).length === 0) {
208
- var heapCookieData = this.getHeapCookieData();
209
-
210
- // if no heap cookie, add a src
211
- if (!heapCookieData) {
212
- eventProperties.src = this.getDefaultSrc();
213
- }
214
-
215
- else if (!heapCookieData.src && !heapCookieData.utm_source) {
216
- eventProperties.src = this.getDefaultSrc();
217
- }
218
-
219
- // 24 hour last touched default check
220
- else if ((heapCookieData.src || heapCookieData.utm_source) && this.checkLastSrc()) {
221
- if (heapCookieData.src) {
222
- eventProperties.src = this.getDefaultSrc();
223
- }
224
- else if (heapCookieData.utm_source) {
225
- eventProperties.utm_source = '';
226
- }
227
- }
228
- }
229
- }
230
- else { // non wordpress attribution flow
231
- if (this.checkLastSrc()) {
232
- var heapCookie = this.getHeapCookieData();
233
-
234
- if (heapCookie.src) {
235
- eventProperties.src = 'Mod001';
236
- }
237
- else if (heapCookie.utm_source) {
238
- eventProperties.utm_source = '';
239
- }
240
- }
241
- }
242
-
243
- // Check if Heap event props are available
244
- if (Object.keys(eventProperties).length) {
245
- // If no Heap tag available on a page, console log event props
246
- if (typeof heap === 'undefined') {
247
- console.log('Heap addEventProperties', eventProperties);
248
- } else {
249
- // Clear previous Heap event props if there's "src" or "utm_source" param and it's not a TYP
250
- if (!this.isHRC && (eventProperties.hasOwnProperty('src') || eventProperties.hasOwnProperty('utm_source'))) {
251
- heap.clearEventProperties();
252
- }
253
- heap.addEventProperties(eventProperties);
254
- }
255
- }
256
- }
257
- };
258
-
259
- if (window.Modalytics) {
260
- heapUserTracking.init();
261
- }
262
- })();
@@ -1,9 +0,0 @@
1
- if (window.Modalytics) {
2
- var heapIsDevEnv = window.location.host.match(new RegExp('(' + ['qa.', 'staging.', 'localhost', '.local', '[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}'].join('|') + ')', 'i'));
3
- // dev env id "3986615799"
4
- if (!heapIsDevEnv) {
5
- window.heap = window.heap || [], heap.load = function(e, t) { window.heap.appid = e, window.heap.config = t = t || {}; var r = t.forceSSL || "https:" === document.location.protocol, a = document.createElement("script"); a.type = "text/javascript", a.async = !0, a.src = (r ? "https:" : "http:") + "//cdn.heapanalytics.com/js/heap-" + e + ".js"; var n = document.getElementsByTagName("script")[0]; n.parentNode.insertBefore(a, n); for (var o = function(e) { return function() { heap.push([e].concat(Array.prototype.slice.call(arguments, 0))) } }, p = ["addEventProperties", "addUserProperties", "clearEventProperties", "identify", "resetIdentity", "removeEventProperty", "setEventProperties", "track", "unsetEventProperty"], c = 0; c < p.length; c++)heap[p[c]] = o(p[c]) };
6
-
7
- heap.load("3246578271"); // dynamic tracker ID based on env
8
- }
9
- }
@@ -1,196 +0,0 @@
1
- @import '../../node_modules/mod-style-bootstrap/src/styles/icons/fill';
2
-
3
- $color-purple-dark: #2849CA;
4
- $color-purple-light: #E5E8F9;
5
- $color-white: #FFF;
6
- $color-black: #000;
7
- $color-gray: #888;
8
- $color-red: #E97158;
9
-
10
- .contact-us {
11
- &__thankyou {
12
- display: none;
13
- text-align: center;
14
- }
15
-
16
- &__thankyou-title {
17
- color: $color-purple-dark;
18
- font-size: 38px;
19
- font-weight: bold;
20
- margin-bottom: 10px;
21
- }
22
-
23
- &__thankyou-img {
24
- margin: 30px auto;
25
- width: auto;
26
- }
27
-
28
- .step {
29
- display: none;
30
-
31
- &--active {
32
- display: block;
33
- }
34
-
35
- &__header {
36
- background-color: $color-purple-light;
37
- color: $color-purple-dark;
38
- display: flex;
39
- font-size: 14px;
40
- margin-bottom: 20px;
41
- }
42
-
43
- &__header-number {
44
- align-items: center;
45
- background-color: $color-purple-dark;
46
- color: $color-white;
47
- display: flex;
48
- font-weight: bold;
49
- justify-content: center;
50
- padding: 10px 15px;
51
- width: 30%;
52
- }
53
-
54
- &__header-text {
55
- padding: 10px 15px;
56
- width: 70%;
57
- }
58
-
59
- &__content-item {
60
- text-align: center;
61
- }
62
-
63
- &__image {
64
- margin: 15px auto;
65
- width: auto;
66
- }
67
-
68
- &__error {
69
- color: $color-red;
70
- font-weight: bold;
71
- text-align: center;
72
- }
73
-
74
- &__list {
75
- list-style-type: none;
76
- margin: 0;
77
- text-align: left;
78
-
79
- li {
80
- border: 1px solid $color-gray;
81
- margin-bottom: 15px;
82
- padding: 10px;
83
- }
84
-
85
- a {
86
- color: $color-black;
87
- display: block;
88
- text-decoration: underline;
89
-
90
- + a {
91
- margin-top: 5px;
92
- }
93
- }
94
- }
95
- }
96
-
97
- .field {
98
- border: 1px solid $color-gray;
99
- display: flex;
100
- margin-bottom: 15px;
101
- padding: 10px;
102
- text-align: left;
103
-
104
- label {
105
- cursor: pointer;
106
- display: block;
107
- font-weight: 400;
108
- margin: 0;
109
- padding-left: 35px;
110
- position: relative;
111
- width: 100%;
112
-
113
- &::before {
114
- background-color: $color-purple-light;
115
- content: '';
116
- height: 22px;
117
- left: 0;
118
- position: absolute;
119
- top: 50%;
120
- transform: translate(0, -50%);
121
- width: 22px;
122
- }
123
- }
124
-
125
- input {
126
- &:checked + label {
127
- &::before {
128
- @include icon-fill;
129
- align-items: center;
130
- background-color: $color-purple-dark;
131
- color: $color-white;
132
- content: '\e920';
133
- display: flex;
134
- font-size: 18px;
135
- justify-content: center;
136
- }
137
- }
138
- }
139
- }
140
-
141
- .form-group {
142
- label {
143
- color: $color-gray;
144
- font-size: 14px;
145
- font-weight: 400;
146
- margin-bottom: 0;
147
- }
148
-
149
- textarea {
150
- max-width: 100%;
151
- }
152
- }
153
-
154
- .form-controls {
155
- display: flex;
156
- justify-content: space-between;
157
- margin: 15px auto;
158
- }
159
-
160
- .btn-back {
161
- border-radius: 100%;
162
- }
163
-
164
- .btn-submit {
165
- background-color: transparent;
166
- border: 2px solid $color-purple-dark;
167
- border-radius: 30px;
168
- color: $color-purple-dark;
169
- display: block;
170
- font-weight: 500;
171
- max-width: 300px;
172
-
173
- &:active,
174
- &:focus,
175
- &:hover {
176
- background-color: $color-purple-dark;
177
- color: $color-white;
178
- }
179
- }
180
-
181
- .btn {
182
- &__spinner {
183
- &::after {
184
- border: 4px solid $color-purple-dark;
185
- border-right-color: $color-white;
186
- border-top-color: $color-white;
187
- }
188
- }
189
- }
190
- }
191
-
192
- .g-recaptcha {
193
- display: flex;
194
- justify-content: center;
195
- margin: 20px 0;
196
- }
@@ -1,52 +0,0 @@
1
- .pac {
2
- &-container {
3
- background: $color-white;
4
- border: $pac-border;
5
- border-radius: 4px;
6
- box-shadow: 0 2px 2px rgba(0, 0, 0, .1);
7
- box-sizing: content-box;
8
- font-family: inherit;
9
- font-size: $pac-font-size;
10
- font-weight: inherit;
11
- line-height: $pac-line-height;
12
- overflow: hidden;
13
- }
14
-
15
- &-item {
16
- background: transparent;
17
- border-bottom: $pac-item-border;
18
- border-top: 0;
19
- color: $pac-text-color;
20
- cursor: pointer;
21
- font-size: $pac-font-size;
22
- line-height: $pac-line-height;
23
- padding: $pac-item-padding;
24
- transition: background-color $trans-time $trans-func;
25
-
26
- &:hover,
27
- &-selected {
28
- background: $pac-item-hover-bg;
29
- }
30
-
31
- &-query {
32
- color: $pac-text-color;
33
- font-size: $pac-font-size;
34
- line-height: $pac-line-height;
35
- }
36
- }
37
-
38
- &-logo {
39
- &::after {
40
- margin: 10px;
41
- padding: 0;
42
- }
43
- }
44
-
45
- &-icon {
46
- &,
47
- .hdpi & {
48
- background: none;
49
- display: none;
50
- }
51
- }
52
- }
@@ -1,39 +0,0 @@
1
- /**
2
- * Media condition tag for a retina (1.3 or higher) DPI
3
- */
4
- @mixin retina {
5
- @media (min-device-pixel-ratio: 1.3), (min-resolution: 1.3dppx) {
6
- @content
7
- }
8
- }
9
-
10
- /**
11
- * Shortcode for including normal and retina image. Requirements:
12
- * - images are located in /images/ folder
13
- * - retina image equals to non-retina + "@2x" (e.g. logo.png & logo@2x.png)
14
- * - retina image width & height are 2 times of normal image (e.g. 100x50px & 200x100px)
15
- */
16
- @mixin background-image-2x($filename, $width, $height, $extention: 'png') {
17
- @include retina {
18
- background-image: url('../images/#{$filename}@2x.#{$extention}');
19
- }
20
-
21
- background-image: url('../images/#{$filename}.#{$extention}');
22
- background-repeat: no-repeat;
23
- background-size: $width $height;
24
- }
25
-
26
- /**
27
- * Responsive breakpoints
28
- */
29
- @mixin breakpoint-tablet {
30
- @media (max-width: 991px) {
31
- @content
32
- }
33
- }
34
-
35
- @mixin breakpoint-phone {
36
- @media (max-width: 767px) {
37
- @content
38
- }
39
- }