Skip to content

Commit 3e8ed32

Browse files
authored
Merge pull request #1617 from algolia/feature/MAGE-899-mixin-compat
Feature/mage 899 mixin compat
2 parents 6e29daa + d74994c commit 3e8ed32

File tree

9 files changed

+1286
-1232
lines changed

9 files changed

+1286
-1232
lines changed

view/adminhtml/web/css/landing-page.css

Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,53 +1069,6 @@ a.ais-current-refined-values--link:hover {
10691069
margin-bottom: 20px;
10701070
}
10711071

1072-
/** Search Box */
1073-
1074-
#algolia-searchbox {
1075-
position: relative;
1076-
}
1077-
1078-
#algolia-searchbox .clear-cross, #algolia_instant_selector .clear-cross {
1079-
position: absolute;
1080-
display: none;
1081-
cursor: pointer;
1082-
width: 16px;
1083-
height: 16px;
1084-
}
1085-
1086-
#algolia-searchbox .clear-query-autocomplete {
1087-
bottom: 22px;
1088-
right: 9px;
1089-
}
1090-
1091-
#algolia_instant_selector .cross-wrapper .clear-refinement {
1092-
display: block;
1093-
position: relative;
1094-
top: 5px;
1095-
left: 5px;
1096-
}
1097-
1098-
#algolia-searchbox .magnifying-glass {
1099-
position: absolute;
1100-
bottom: 21px;
1101-
right: 7px;
1102-
width: 20px;
1103-
height: 20px;
1104-
display: block;
1105-
}
1106-
1107-
@media (min-width: 768px) {
1108-
#algolia-searchbox .magnifying-glass {
1109-
bottom: 6px;
1110-
}
1111-
}
1112-
1113-
@media (min-width: 768px) {
1114-
#algolia-searchbox .clear-query-autocomplete {
1115-
bottom: 8px;
1116-
}
1117-
}
1118-
11191072
/** PAGINATION */
11201073

11211074
#instant-search-pagination-container {
@@ -1157,21 +1110,6 @@ a.ais-current-refined-values--link:hover {
11571110
color: #606060;
11581111
}
11591112

1160-
1161-
#algolia-searchbox .algolia-search-input:focus:not([value=""]) {
1162-
background: transparent;
1163-
}
1164-
1165-
#algolia-searchbox .algolia-search-input {
1166-
position: static !important;
1167-
}
1168-
1169-
#algolia-searchbox .algolia-search-input:focus {
1170-
outline: 0;
1171-
box-shadow: none;
1172-
border: solid 1px #54A5CD;
1173-
}
1174-
11751113
#algolia_instant_selector .ais-current-refined-values.facet .ais-current-refined-values--body {
11761114
padding-left: 8px;
11771115
}

view/frontend/requirejs-config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ const config = {
5252
'algoliaMustacheLib': 'Algolia_AlgoliaSearch/js/lib/mustache.min',
5353
'algoliaHoganLib' : 'Algolia_AlgoliaSearch/js/lib/hogan.min',
5454

55+
// Utils
56+
'algoliaBase64' : 'Algolia_AlgoliaSearch/js/internals/base64',
57+
5558
// DEPRECATED - to be removed in a future release
5659
'algoliaBundle': 'Algolia_AlgoliaSearch/js/internals/algoliaBundle.min',
5760
'rangeSlider' : 'Algolia_AlgoliaSearch/js/navigation/range-slider-widget'

view/frontend/web/css/autocomplete.css

Lines changed: 1 addition & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -429,54 +429,11 @@ html {
429429
max-width: 130px;
430430
}
431431

432-
#algolia-searchbox .algolia-search-input:focus:not([value=""]) {
433-
background: transparent;
434-
}
435-
436-
#algolia-searchbox .algolia-search-input {
437-
position: static !important;
438-
}
439-
440-
#algolia-searchbox .algolia-search-input:focus {
441-
outline: 0;
442-
box-shadow: none;
443-
border: solid 1px #54A5CD;
444-
}
445-
446432
#algolia-autocomplete-container:after, .autocomplete-wrapper:after {
447433
clear: both;
448434
content: '';
449435
}
450436

451-
#algolia-searchbox {
452-
position: relative;
453-
}
454-
455-
#algolia-searchbox .clear-cross, #algolia_instant_selector .clear-cross {
456-
position: absolute;
457-
display: none;
458-
background: url("data:image/svg+xml;utf8,<svg width=\'12\' height=\'12\' viewBox=\'0 0 12 12\' xmlns=\'http://www.w3.org/2000/svg\' opacity=\'0.6\'><path d=\'M.566 1.698L0 1.13 1.132 0l.565.566L6 4.868 10.302.566 10.868 0 12 1.132l-.566.565L7.132 6l4.302 4.3.566.568L10.868 12l-.565-.566L6 7.132l-4.3 4.302L1.13 12 0 10.868l.566-.565L4.868 6 .566 1.698z\'></path></svg>") no-repeat center center / contain;
459-
cursor: pointer;
460-
width: 16px;
461-
height: 16px;
462-
}
463-
464-
#algolia-searchbox .clear-query-autocomplete {
465-
bottom: 8px;
466-
right: 9px;
467-
}
468-
469-
#algolia-searchbox .magnifying-glass {
470-
background: url("data:image/svg+xml;utf8,<svg width=\'40\' height=\'40\' viewBox=\'0 0 40 40\' fill=\'%23A6A6A6\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M15.553 31.107c8.59 0 15.554-6.964 15.554-15.554S24.143 0 15.553 0 0 6.964 0 15.553c0 8.59 6.964 15.554 15.553 15.554zm0-3.888c6.443 0 11.666-5.225 11.666-11.668 0-6.442-5.225-11.665-11.668-11.665-6.442 0-11.665 5.223-11.665 11.665 0 6.443 5.223 11.666 11.665 11.666zm12.21 3.84a2.005 2.005 0 0 1 .002-2.833l.463-.463a2.008 2.008 0 0 1 2.833-.003l8.17 8.168c.78.78.78 2.05-.004 2.833l-.462.463a2.008 2.008 0 0 1-2.834.004l-8.168-8.17z\' fill-rule=\'evenodd\'/></svg>") no-repeat center right / 20px;
471-
border: none;
472-
bottom: 7px;
473-
box-shadow: none;
474-
height: 20px;
475-
position: absolute;
476-
right: 7px;
477-
width: 20px;
478-
}
479-
480437
#algolia_instant_selector .cross-wrapper .clear-refinement {
481438
display: block;
482439
position: relative;
@@ -664,8 +621,4 @@ html {
664621
}
665622
.aa-Panel .aa-PanelLayout section .aa-SourceNoResults{
666623
padding: 5px;
667-
}
668-
669-
.clear-query-autocomplete {
670-
display: none !important;
671-
}
624+
}

0 commit comments

Comments
 (0)