
------------------------------------------------------------------------------
UPLOAD SEARCH CSS PREDICTIVE JS FILE IN ASSET FOLDER
<script src="{{ 'theme.js' | asset_url }}" defer="defer"></script>-------------------------------------------------------------------------------
FIND theme.Maps = (function() {-------------------------------------------------------------------------------
/* ADD NEW HEADER CODE IN SECTION */
theme.HeaderSection = (function(){function Header(){theme.Header.init();theme.MobileNav.init();theme.SearchDrawer.init();theme.Search.init()}Header.prototype = _.assignIn({},Header.prototype,{onUnload:function(){theme.Header.unload();theme.Search.unload()}});return Header})();/* FINISH HEADER CODE*/
-------------------------------------------------------------------------------
{{'search.css' | asset_url | stylesheet_tag }}------------------------------------------------------------------------------
button,input,optgroup,select,.disclosure__toggle,textarea {
color: inherit;
font: inherit;
margin: 0;
}
a,button,[role="button"],input,label,select,.disclosure__toggle,textarea {
touch-action: manipulation;
}
.text-right {
text-align: right !important;
}
.medium-up--one-quarter {
width: 25%;
}
.visually-hidden,.icon__fallback-text {
position: absolute !important;
overflow: hidden;
clip: rect(0 0 0 0);
height: 1px;
width: 1px;
margin: -1px;
padding: 0;
border: 0;
}
body,html {
background-color: #fff;
}
.main-content {
display: block;
padding-top: 35px;
}
@media only screen and (min-width: 750px) {
.main-content {
padding-top: 55px;
}
}
body,input,textarea,button,select,.disclosure__toggle {
font-size: 16px;
font-family: "Work Sans",sans-serif;
font-style: normal;
font-weight: 400;
color: #3d4246;
line-height: 1.5;
}
.icon {
display: inline-block;
width: 20px;
height: 20px;
vertical-align: middle;
fill: currentColor;
}
svg.icon:not(.icon--full-color) circle,svg.icon:not(.icon--full-color) ellipse,svg.icon:not(.icon--full-color) g,svg.icon:not(.icon--full-color) line,svg.icon:not(.icon--full-color) path,svg.icon:not(.icon--full-color) polygon,svg.icon:not(.icon--full-color) polyline,svg.icon:not(.icon--full-color) rect,symbol.icon:not(.icon--full-color) circle,symbol.icon:not(.icon--full-color) ellipse,symbol.icon:not(.icon--full-color) g,symbol.icon:not(.icon--full-color) line,symbol.icon:not(.icon--full-color) path,symbol.icon:not(.icon--full-color) polygon,symbol.icon:not(.icon--full-color) polyline,symbol.icon:not(.icon--full-color) rect {
fill: inherit;
stroke: inherit;
}
ul,ol {
margin: 0;
padding: 0;
}
a {
color: #3d4246;
text-decoration: none;
}
.btn--link {
background-color: transparent;
border: 0;
margin: 0;
color: #3d4246;
text-align: left;
}
.btn--link .icon {
vertical-align: middle;
}
svg:not(:root) {
overflow: hidden;
}
form {
margin: 0;
}
button {
cursor: pointer;
}
input,textarea,select,.disclosure__toggle {
border: 1px solid #949494;
background-color: #fff;
color: #000;
max-width: 100%;
line-height: 1.2;
border-radius: 2px;
}
::-webkit-input-placeholder {
color: #000;
opacity: 0.6;
}
input,textarea {
padding: 8px 15px;
}
@media only screen and (min-width: 750px) {
input,textarea {
padding: 10px 18px;
}
}
.page-container {
transition: all 400ms cubic-bezier(0.29, 0.63, 0.44, 1);
position: relative;
overflow: hidden;
}
@media only screen and (min-width: 750px) {
.page-container {
-ms-transform: translate3d(0, 0, 0);
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
}
.border-bottom {
border-bottom: 1px solid #e8e9eb;
}
.drawer--top {
width: 100%;
-ms-transform: translateY(-100%);
-webkit-transform: translateY(-100%);
transform: translateY(-100%);
}
.search-bar {
z-index: 999;
background-color: #fff;
}
.search-bar__interior {
height: 100%;
display: flex;
flex: 1;
}
@media only screen and (min-width: 750px) {
.search-bar__interior {
padding-left: 55px;
padding-right: 55px;
height: auto;
margin: -18px 61px 1px -3px;
}
}
.search-form__container {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
padding-left: 7px;
padding-right: 10px;
background-color: #fff;
}
.search-bar__form {
flex: 1 1 100%;
position: relative;
max-width: 750px;
border: 1px solid transparent;
}
.search-bar__actions {
display: flex;
flex: 0 0 auto;
align-items: center;
}
.search-bar__submit {
z-index: 1;
position: absolute;
right: 0;
top: 0;
display: inline-block;
padding: 0 12px;
height: 100%;
vertical-align: middle;
background-color: transparent;
border: 0;
margin: 0;
color: #000;
}
.search-bar__submit .icon {
position: relative;
top: -1px;
width: 1.2rem;
height: auto;
}
.search-bar__submit:hover,.search-bar__submit:focus {
color: rgba(0,0,0,0.6);
}
.search-bar__input {
padding-right: 45px;
width: 100%;
min-height: 44px;
color: #000;
background-color: #fff;
border: none;
border: 1px solid #949494;
}
.search-bar__close {
padding: calc(10em / 16) 0.75em;
margin-right: -10px;
}
.search-bar__close .icon {
width: 1rem;
height: auto;
}
.search--less-than-2-results {
height: 40vh;
}
.predictive-search-wrapper {
transition-property: opacity, visibility;
transition-duration: 100ms;
transition-timing-function: ease-in-out;
z-index: 1000;
position: absolute;
left: 0;
right: 0;
margin-top: -1px;
border: 1px solid #949494;
background-color: #fff;
overflow-y: auto;
display: none;
}
.search-bar .predictive-search-wrapper {
position: fixed;
width: 100%;
}
@media only screen and (max-width: 749px) {
.search-bar .predictive-search-wrapper {
border: none;
}
}
@media only screen and (min-width: 750px) {
.search-bar .predictive-search-wrapper {
position: absolute;
right: auto;
left: auto;
max-width: 748px;
}
}
@media only screen and (min-width: 750px) {
.predictive-search-wrapper {
max-height: 80vh;
}
}
.search-page-form .predictive-search-wrapper {
max-height: 60vh;
}
@media only screen and (max-width: 749px) {
.predictive-search-wrapper--drawer {
padding-top: 14px;
margin-top: 3px;
}
}
.predictive-search-wrapper--visible {
display: block;
}
.predictive-search {
height: 100%;
text-align: left;
}
@media only screen and (max-width: 989px) {
.search-bar .predictive-search {
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}
}
.predictive-search-loading {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
padding: 14px 0;
text-align: center;
}
.icon-predictive-search-spinner::before {
content: '';
display: block;
width: 28px;
height: 28px;
border-radius: 50%;
border: 4px solid;
border-color: currentColor currentColor currentColor transparent;
-moz-animation: spin 500ms infinite linear;
-o-animation: spin 500ms infinite linear;
-webkit-animation: spin 500ms infinite linear;
animation: spin 500ms infinite linear;
}
.predictive-search-loading__icon {
display: inline-block;
margin: 0;
color: #69727b;
width: 20px;
height: 20px;
}
.predictive-search-loading__icon .icon-predictive-search-spinner::before {
width: 100%;
height: 100%;
border-width: 3px;
}
.predictive-search-title {
position: relative;
display: flex;
align-items: center;
padding: 14px;
}
.predictive-search-title::before {
content: '';
position: absolute;
right: 0;
top: 0;
left: 0;
height: 0;
background-color: #e8e9eb;
}
.predictive-search-title::after {
content: '';
position: absolute;
right: 14px;
bottom: -1px;
left: 14px;
height: 1px;
background-color: #e8e9eb;
}
@media only screen and (max-width: 749px) {
.predictive-search-wrapper--drawer .predictive-search-title::before {
height: 1px;
}
}
.predictive-search-title__content {
flex: 1 1 auto;
margin-bottom: 0;
padding-right: 40px;
font-size: 0.875em;
font-family: "Work Sans",sans-serif;
font-weight: 400;
text-transform: uppercase;
color: #69727b;
white-space: normal;
}
.predictive-search-title__loading-spinner {
flex: 0 0 auto;
position: absolute;
top: 50%;
right: 14px;
margin-top: -10px;
width: 20px;
height: 20px;
color: #69727b;
}
.predictive-search-title__loading-spinner .icon-predictive-search-spinner::before {
width: 100%;
height: 100%;
border-width: 3px;
}
.predictive-search-item {
font-weight: 400;
white-space: normal;
}
.predictive-search-item__details {
display: flex;
width: 100%;
flex-wrap: wrap;
flex-direction: column;
margin-top: 0;
margin-bottom: 0;
}
.predictive-search-item__detail--inline {
display: flex;
flex-direction: row;
}
.predictive-search-item__link {
display: flex;
padding: 14px;
background-color: transparent;
transition: background-color 100ms ease-in-out;
}
.predictive-search-item__link:active {
background-color: transparent;
}
.predictive-search-item--selected .predictive-search-item__link,.predictive-search-item--selected .predictive-search-view-all__button,.predictive-search-item__link:hover {
background-color: #f2f2f2;
}
.predictive-search-item--selected .predictive-search-item__link .predictive-search-item__title-text,.predictive-search-item--selected .predictive-search-view-all__button .predictive-search-item__title-text,.predictive-search-item__link:hover .predictive-search-item__title-text {
border-bottom-color: #3d4246;
}
.predictive-search__column {
flex: 1 1 auto;
}
.predictive-search__column--image {
flex-grow: 0;
flex-shrink: 0;
width: 44px;
height: 44px;
margin-right: 12px;
position: relative;
}
.predictive-search-item__image {
object-fit: contain;
font-family: "object-fit: contain";
width: 100%;
height: 100%;
}
.predictive-search__column--content {
display: flex;
flex-wrap: wrap;
flex-direction: column;
}
.predictive-search__column--center {
justify-content: center;
}
.predictive-search-item__title-text {
display: inline-block;
color: #3d4246;
word-break: break-word;
border-bottom: 1px solid transparent;
line-height: 1.2;
font-family: "Work Sans",sans-serif;
font-weight: 600;
}
.predictive-search-item__vendor {
color: #69727b;
font-size: 0.8125em;
text-transform: uppercase;
}
.predictive-search-item__price {
padding-top: 6px;
flex: 0 0 auto;
color: #69727b;
}
.predictive-search-item__price--sale {
color: #557b97;
}
.predictive-search-item__price--compare {
text-decoration: line-through;
}
.predictive-search-view-all,.predictive-search-loading {
border-top: 1px solid #e8e9eb;
}
@media only screen and (min-width: 750px) {
.predictive-search__list .predictive-search-view-all:first-child,.predictive-search__list .predictive-search-loading:first-child {
border-top: none;
}
}
.predictive-search-view-all__button {
display: block;
width: 100%;
border: none;
padding: 14px;
text-align: left;
color: #3d4246;
background-color: transparent;
word-break: break-word;
white-space: normal;
font-family: "Work Sans",sans-serif;
font-weight: 600;
}
.predictive-search-view-all__button:hover,.predictive-search-view-all__button:focus {
background-color: #f2f2f2;
}
------------------------------------------------------------------------------------------------------------------------
Comments
Post a Comment