<div class="search">
    <a class="search__trigger search__trigger--open header__trigger--close">
        <svg class="icon-search" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 57">
            <path fill="currentColor" d="M60 54.93 39.86 34.91a21.74 21.74 0 0 0 4.28-12.97C44.14 9.84 34.24 0 22.07 0S0 9.84 0 21.94s9.9 21.94 22.07 21.94c6.23 0 11.87-2.59 15.88-6.73L57.92 57 60 54.93ZM22.07 40.95c-10.55 0-19.13-8.53-19.13-19.02S11.52 2.92 22.07 2.92 41.2 11.45 41.2 21.94s-8.58 19.02-19.13 19.02Z" />
        </svg>

    </a>

    <div class="search__inner">
        <form action="https://pioneerdj.com/search-results" class="search__form">
            <div class="search__field">
                <input name="q" type="search" class="search__input input__search" data-search-page="/search-results?q=" data-no-results="Oops nothing can be found" data-nothing-entered="Please enter a search query">

                <a href="#0" class="search__closeTrigger search__trigger--close">
                    <svg class="icon-close" viewBox="0 0 12 14" version="1" xmlns="http://www.w3.org/2000/svg">
                        <path fill="currentColor" d="M6.066 5.492L2.372.931A1 1 0 1 0 .818 2.19l3.848 4.752L.418 11.34a1 1 0 0 0 1.439 1.39v-.001l4.077-4.222 3.694 4.561a1 1 0 1 0 1.554-1.259L7.334 7.059l4.248-4.399a1 1 0 0 0-1.439-1.39v.001L6.066 5.492z" />
                    </svg>

                    <span class="screenReader">Close</span>
                </a>
            </div>

            <span class="search__loader"></span>
        </form>

        <div class="search__overlay search__trigger--close"></div>

        <div class="search__results">
            <div class="search__results__inner">
                <h3 class="heading heading--2 heading--fancy">
                    Top results
                </h3>

                <ul class="search__list">
                    <!-- THIS WILL BE FILLED BY JS -->
                    <li class="search__item">
                        <a class="search__link" href="/en/news/2016/os-x-v10114-el-capitan-and-pioneer-dj-controllers-compatibility/">OS X v10114 El Capitan and Pioneer DJ controllers compatibility</a>
                    </li>

                    <li class="search__item">
                        <a class="search__link" href="/en/news/2016/windows-64-bit-driver-release/">Windows 64-bit driver release</a>
                    </li>

                    <li class="search__item">
                        <a class="search__link" href="/en/news/2018/ddj-rb-ddj-rr-ddj-rz-driver-for-windows-update-ver1300-ver1300-ver1200/">DDJ-RB DDJ-RR DDJ-RZ Driver for Windows update Ver1300 Ver1300 Ver1200</a>
                    </li>

                    <li class="search__item">
                        <a class="search__link" href="/en/product/accessories/djc-b-wego3-bag/">DJC-B-WEGO3-BAG</a>
                    </li>

                    <li class="search__item">
                        <a class="search__link" href="/en/news/2017/ddj-rr-ver104-and-ddj-rb-ver103-firmware-update/">DDJ-RR Ver104 and DDJ-RB Ver103 Firmware update</a>
                    </li>
                </ul>

                <a href="#" class="search__cta button trigger__searchpage"><span class="button__label">See all results</span></a>

                <p class="search__note">
                    Didn’t find what you’re looking for? Maybe use fewer words or a more general search term.<br />If you still have no luck you can contact our <a href="https://pioneerdj.com/en/support/contact">customer service</a>.
                </p>
            </div>
        </div>
    </div>
</div>
<div class="search">
  <a class="search__trigger search__trigger--open header__trigger--close">
    {{render '@icon-search' }}
  </a>

  <div class="search__inner">
    <form action="https://pioneerdj.com/search-results" class="search__form">
      <div class="search__field">
        <input name="q" type="search" class="search__input input__search" data-search-page="/search-results?q=" data-no-results="Oops nothing can be found" data-nothing-entered="Please enter a search query">

        <a href="#0" class="search__closeTrigger search__trigger--close">
          {{render '@icon-close' }}

          <span class="screenReader">Close</span>
        </a>
      </div>

      <span class="search__loader"></span>
    </form>

    <div class="search__overlay search__trigger--close"></div>

    <div class="search__results">
      <div class="search__results__inner">
        <h3 class="heading heading--2 heading--fancy">
          Top results
        </h3>

        <ul class="search__list">
          <!-- THIS WILL BE FILLED BY JS -->
          <li class="search__item">
            <a class="search__link" href="/en/news/2016/os-x-v10114-el-capitan-and-pioneer-dj-controllers-compatibility/">OS X v10114 El Capitan and Pioneer DJ controllers compatibility</a>
          </li>

          <li class="search__item">
            <a class="search__link" href="/en/news/2016/windows-64-bit-driver-release/">Windows 64-bit driver release</a>
          </li>

          <li class="search__item">
            <a class="search__link" href="/en/news/2018/ddj-rb-ddj-rr-ddj-rz-driver-for-windows-update-ver1300-ver1300-ver1200/">DDJ-RB DDJ-RR DDJ-RZ Driver for Windows update Ver1300 Ver1300 Ver1200</a>
          </li>

          <li class="search__item">
            <a class="search__link" href="/en/product/accessories/djc-b-wego3-bag/">DJC-B-WEGO3-BAG</a>
          </li>

          <li class="search__item">
            <a class="search__link" href="/en/news/2017/ddj-rr-ver104-and-ddj-rb-ver103-firmware-update/">DDJ-RR Ver104 and DDJ-RB Ver103 Firmware update</a>
          </li>
        </ul>

        <a href="#" class="search__cta button trigger__searchpage"><span class="button__label">See all results</span></a>

        <p class="search__note">
          Didn’t find what you’re looking for? Maybe use fewer words or a more general search term.<br />If you still have no luck you can contact our <a href="https://pioneerdj.com/en/support/contact">customer service</a>.
        </p>
      </div>
    </div>
  </div>
</div>
/* No context defined. */
  • Content:
    /*
    var url = location.pathname;
    const urlarray = url.split('/');
    var culturecode = urlarray[1];
    var search = (function (w, d, $, undefined) {
    
    
    	'use strict';
    
    	var s = {
    			selectors: {
    				theWrap: '.search',
    				theForm: '.search__form',
    				theTriggerOpen: '.search__trigger--open',
    				theTriggerClose: '.search__trigger--close',
    				theInput: '.search__input',
    				theList: '.search__list',
    				theCta: '.search__cta',
    				theLoader: '.search__loader'
    			},
    			classes: {
    				searchIsVisible: 'search-is-visible',
    				searchHasResults: 'search-has-results'
    			},
    			theMinLength: 2,
    			theCall: null,
    			theTimer: null
    		},
    		els = {},
    		init = function() {
    
    			// define variables
    			els.theWrap = $(s.selectors.theWrap);
    			els.theForm = $(s.selectors.theForm);
    			els.theInput = els.theWrap.find(s.selectors.theInput);
    			els.theTriggerOpen = els.theWrap.find(s.selectors.theTriggerOpen);
    			els.theTriggerClose = els.theWrap.find(s.selectors.theTriggerClose);
    			els.theList = els.theWrap.find(s.selectors.theList);
    			els.theCta = els.theWrap.find(s.selectors.theCta);
    			els.theLoader = els.theWrap.find(s.selectors.theLoader);
    
    			// define settings
    			s.noresults = els.theInput.data('no-results');
    			s.noQuery = els.theInput.data('nothing-entered');
    			s.searchPageUrl = els.theInput.data('search-page');
    			s.maxResults = 5;
    
    			// bind events
    			els.theTriggerOpen.on('click', function(e) { e.preventDefault(); openIt(); });
    			els.theTriggerClose.on('click', function(e) { e.preventDefault(); closeIt(); });
    			els.theInput.on('keyup', function(e) {
    
    				// define variables
    				var theValue;
    
    				// set search value
    				if(this.value.trim()) {
    
              if(e.key === 'Enter') { els.theForm.submit(); return; }
    
                        els.theCta[0].href ='/'+culturecode+(s.searchPageUrl + this.value.trim());
    
    				} else {
    
    					els.theCta[0].removeAttribute('href');
    
    				}
    
    				// if value length is bigger than the min length => performIt
    				theValue = this.value.trim();
    				theValue.length >= s.theMinLength && performIt(theValue);
    
    			});
    
    		},
    		openIt = function() {
    
    			// add class to the body
    			d.body.classList.add(s.classes.searchIsVisible);
    
    			// focus input field
    			els.theInput.focus();
    
    		},
    		closeIt = function() {
    
    			// remove class from the body
    			d.body.classList.remove(s.classes.searchIsVisible);
    
    			// clear all elements after fade out
    			setTimeout(function() {
    
    				// hide box and clear results
    				els.theWrap.removeClass(s.classes.searchHasResults);
    				els.theList.html('');
    
    				// empty input field
    				els.theInput.val('');
    
    				// hide the loader
    				els.theLoader.hide();
    
    			}, 700);
    
    		},
    		performIt = function(theQuery) {
    
    			// no param
    			if(!theQuery) { return; }
    
    			// show the loader
    			els.theLoader.show();
    
    			clearTimeout(s.theTimer);
    
    			s.theTimer = setTimeout(function() {
    
    				s.theCall = $.ajax({
    					url: "/api/item?q=" + theQuery,
    					contentType: "application/json; charset=utf-8",
    					dataType: "json",
    					success: function(data) {
    
    						// define result count
    						var resultCount = (data.length && data !== "") ? data.length : 0,
    							buildCount = 0,
    							resultHtml = '',
    							i;
    
    						// hide the loader
    						els.theLoader.hide();
    
    						// show content box
    						els.theWrap.addClass(s.classes.searchHasResults);
    
    						// set results in list
    						for(i = 0; i < resultCount; i += 1) {
    
    							if(data[i] !== '') {
    
    								// set build count
    								buildCount++;
    
    								// append result if possible
    								if(buildCount <= s.maxResults) {
    
    									resultHtml += '<li class="search__item">';
    									resultHtml += '<a class="search__link" href="' + data[i].AbsoluteUrl + '">' + data[i].Title + '</a></li>';
    
    								}
    
    							}
    
    						}
    
    						// append results to list
    						if(buildCount) {
    
    							// append results
    							els.theList.html(resultHtml);
    
    							// show button
    							els.theCta[0].removeAttribute('disabled');
    
    						} else {
    
    							// append nothing found text
    							els.theList.html('<li class="search__item search__item--noResult">' + s.noresults + '</li>');
    
    							// disable button
    							els.theCta[0].setAttribute('disabled', 'true');
    
    						}
    
    					}
    				});
    
    			}, 800);
    
    		};
    
    	w.addEventListener('DOMContentLoaded', init);
    
    }(window, window.document, window.jQuery));
    */
    
  • URL: /components/raw/search/_search.js
  • Filesystem Path: ../src/04_organisms/search/_search.js
  • Size: 4.3 KB
  • Content:
    /*
    var search = (function (w, d, $, undefined) {
    	'use strict';
    
    	var s = {
    			selectors: {
    				theWrap: '.search',
    				theForm: '.search__form',
    				theTriggerOpen: '.search__trigger--open',
    				theTriggerClose: '.search__trigger--close',
    				theInput: '.search__input',
    				theList: '.search__list',
    				theCta: '.search__cta',
    				theLoader: '.search__loader'
    			},
    			classes: {
    				searchIsVisible: 'search-is-visible',
    				searchHasResults: 'search-has-results'
    			},
    			theMinLength: 2,
    			theCall: null,
    			theTimer: null
    		},
    		els = {},
    		init = function() {
    
          if (!$ || !window.jQuery) { console.log('jQuery not defined for search.js'); return; }
    
    			// define variables
    			els.theWrap = $(s.selectors.theWrap);
    			els.theForm = $(s.selectors.theForm);
    			els.theInput = els.theWrap.find(s.selectors.theInput);
    			els.theTriggerOpen = els.theWrap.find(s.selectors.theTriggerOpen);
    			els.theTriggerClose = els.theWrap.find(s.selectors.theTriggerClose);
    			els.theList = els.theWrap.find(s.selectors.theList);
    			els.theCta = els.theWrap.find(s.selectors.theCta);
    			els.theLoader = els.theWrap.find(s.selectors.theLoader);
    
    			// define settings
    			s.noresults = els.theInput.data('no-results');
    			s.noQuery = els.theInput.data('nothing-entered');
    			s.searchPageUrl = els.theInput.data('search-page');
    			s.maxResults = 5;
          s.locale = location.pathname.split('/')[1];
    
    			// bind events
    			els.theTriggerOpen.on('click', function(e) { e.preventDefault(); openIt(); });
    			els.theTriggerClose.on('click', function(e) { e.preventDefault(); closeIt(); });
    			els.theInput.on('keyup', function(e) {
    
    				// define variables
    				var theValue;
    
    				// set search value
    				if(this.value.trim()) {
    
              if(e.key === 'Enter') { els.theForm.submit(); return; }
    
              if (s.locale) {
                els.theCta[0].href ='/' + s.locale + (s.searchPageUrl + this.value.trim());
              } else {
                els.theCta[0].href ='/'+(s.searchPageUrl + this.value.trim());
              }
    
    				} else {
    
    					els.theCta[0].removeAttribute('href');
    
    				}
    
    				// if value length is bigger than the min length => performIt
    				theValue = this.value.trim();
    				theValue.length >= s.theMinLength && performIt(theValue);
    
    			});
    
    		},
    		openIt = function() {
    
    			// add class to the body
    			d.body.classList.add(s.classes.searchIsVisible);
    
    			// focus input field
    			els.theInput.focus();
    
    		},
    		closeIt = function() {
    
    			// remove class from the body
    			d.body.classList.remove(s.classes.searchIsVisible);
    
    			// clear all elements after fade out
    			setTimeout(function() {
    
    				// hide box and clear results
    				els.theWrap.removeClass(s.classes.searchHasResults);
    				els.theList.html('');
    
    				// empty input field
    				els.theInput.val('');
    
    				// hide the loader
    				els.theLoader.hide();
    
    			}, 700);
    
    		},
    		performIt = function(theQuery) {
    
    			// no param
    			if(!theQuery) { return; }
    
    			// show the loader
    			els.theLoader.show();
    
    			clearTimeout(s.theTimer);
    
    			s.theTimer = setTimeout(function() {
    
    				s.theCall = $.ajax({
    					url: "/api/item?q=" + theQuery,
    					contentType: "application/json; charset=utf-8",
    					dataType: "json",
    					success: function(data) {
    
    						// define result count
    						var resultCount = (data.length && data !== "") ? data.length : 0,
    							buildCount = 0,
    							resultHtml = '',
    							i;
    
    						// hide the loader
    						els.theLoader.hide();
    
    						// show content box
    						els.theWrap.addClass(s.classes.searchHasResults);
    
    						// set results in list
    						for(i = 0; i < resultCount; i += 1) {
    
    							if(data[i] !== '') {
    
    								// set build count
    								buildCount++;
    
    								// append result if possible
    								if(buildCount <= s.maxResults) {
    
    									resultHtml += '<li class="search__item">';
    									resultHtml += '<a class="search__link" href="' + data[i].AbsoluteUrl + '">' + data[i].Title + '</a></li>';
    
    								}
    
    							}
    
    						}
    
    						// append results to list
    						if(buildCount) {
    
    							// append results
    							els.theList.html(resultHtml);
    
    							// show button
    							els.theCta[0].removeAttribute('disabled');
    
    						} else {
    
    							// append nothing found text
    							els.theList.html('<li class="search__item search__item--noResult">' + s.noresults + '</li>');
    
    							// disable button
    							els.theCta[0].setAttribute('disabled', 'true');
    
    						}
    
    					}
    				});
    
    			}, 800);
    
    		};
    
    	w.addEventListener('DOMContentLoaded', init);
    
    }(window, window.document, window.jQuery));
    */
    
  • URL: /components/raw/search/_search.last.js
  • Filesystem Path: ../src/04_organisms/search/_search.last.js
  • Size: 4.5 KB
  • Content:
    /*
    var search = function(n, t, i) {
        "use strict";
        var u = {
            selectors: {
                theWrap: ".search",
                theForm: ".search__form",
                theTriggerOpen: ".search__trigger--open",
                theTriggerClose: ".search__trigger--close",
                theInput: ".search__input",
                theList: ".search__list",
                theCta: ".search__cta",
                theLoader: ".search__loader"
            },
            classes: {
                searchIsVisible: "search-is-visible",
                searchHasResults: "search-has-results"
            },
            theMinLength: 2,
            theCall: null,
            theTimer: null
        }
          , r = {}
          , f = function() {
            r.theWrap = i(u.selectors.theWrap);
            r.theForm = i(u.selectors.theForm);
            r.theInput = r.theWrap.find(u.selectors.theInput);
            r.theTriggerOpen = r.theWrap.find(u.selectors.theTriggerOpen);
            r.theTriggerClose = r.theWrap.find(u.selectors.theTriggerClose);
            r.theList = r.theWrap.find(u.selectors.theList);
            r.theCta = r.theWrap.find(u.selectors.theCta);
            r.theLoader = r.theWrap.find(u.selectors.theLoader);
            u.noresults = r.theInput.data("no-results");
            u.noQuery = r.theInput.data("nothing-entered");
            u.searchPageUrl = r.theInput.data("search-page");
            u.maxResults = 5;
            r.theTriggerOpen.on("click", function(n) {
                n.preventDefault();
                e()
            });
            r.theTriggerClose.on("click", function(n) {
                n.preventDefault();
                o()
            });
            r.theInput.on("keyup", function(n) {
                var t;
                if (this.value.trim()) {
                    if (n.key === "Enter") {
                        r.theForm.submit();
                        return
                    }
                    r.theCta[0].href = u.searchPageUrl + this.value.trim()
                } else
                    r.theCta[0].removeAttribute("href");
                t = this.value.trim();
                t.length >= u.theMinLength && s(t)
            })
        }
          , e = function() {
            t.body.classList.add(u.classes.searchIsVisible);
            r.theInput.focus()
        }
          , o = function() {
            t.body.classList.remove(u.classes.searchIsVisible);
            setTimeout(function() {
                r.theWrap.removeClass(u.classes.searchHasResults);
                r.theList.html("");
                r.theInput.val("");
                r.theLoader.hide()
            }, 700)
        }
          , s = function(n) {
            n && (r.theLoader.show(),
            clearTimeout(u.theTimer),
            u.theTimer = setTimeout(function() {
                u.theCall = i.ajax({
                    url: "/api/item?q=" + n,
                    contentType: "application/json; charset=utf-8",
                    dataType: "json",
                    success: function(n) {
                        var e = n.length && n !== "" ? n.length : 0, i = 0, f = "", t;
                        for (r.theLoader.hide(),
                        r.theWrap.addClass(u.classes.searchHasResults),
                        t = 0; t < e; t += 1)
                            n[t] !== "" && (i++,
                            i <= u.maxResults && (f += '<li class="search__item">',
                            f += '<a class="search__link" href="' + n[t].AbsoluteUrl + '">' + n[t].Title + "<\/a><\/li>"));
                        i ? (r.theList.html(f),
                        r.theCta[0].removeAttribute("disabled")) : (r.theList.html('<li class="search__item search__item--noResult">' + u.noresults + "<\/li>"),
                        r.theCta[0].setAttribute("disabled", "true"))
                    }
                })
            }, 800))
        };
        n.addEventListener("DOMContentLoaded", f)
    }(window, window.document, window.jQuery);
    */
    
  • URL: /components/raw/search/_search.old.js
  • Filesystem Path: ../src/04_organisms/search/_search.old.js
  • Size: 3.7 KB
  • Content:
    if (!window.search) {
      var search = (function (w, d, $, undefined) {
        'use strict';
    
        var s = {
            selectors: {
              theWrap: '.search',
              theForm: '.search__form',
              theTriggerOpen: '.search__trigger--open',
              theTriggerClose: '.search__trigger--close',
              theInput: '.search__input',
              theList: '.search__list',
              theCta: '.search__cta',
              theLoader: '.search__loader'
            },
            classes: {
              searchIsVisible: 'search-is-visible',
              searchHasResults: 'search-has-results'
            },
            theMinLength: 2,
            theCall: null,
            theTimer: null,
            searchPath: '/api/item?q=', // '/fapi/search.json?q=',
          },
          els = {},
          init = function() {
    
            if (!$ || !window.jQuery) { console.log('jQuery not defined for search.js'); return; }
    
            // define variables
            els.theWrap = $(s.selectors.theWrap);
            els.theForm = $(s.selectors.theForm);
            els.theInput = els.theWrap.find(s.selectors.theInput);
            els.theTriggerOpen = els.theWrap.find(s.selectors.theTriggerOpen);
            els.theTriggerClose = els.theWrap.find(s.selectors.theTriggerClose);
            els.theList = els.theWrap.find(s.selectors.theList);
            els.theCta = els.theWrap.find(s.selectors.theCta);
            els.theLoader = els.theWrap.find(s.selectors.theLoader);
    
            // define settings
            s.noresults = els.theInput.data('no-results');
            s.noQuery = els.theInput.data('nothing-entered');
            s.searchPageUrl = els.theInput.data('search-page');
            s.maxResults = 5;
    
            // language extra checks
            const htmlLang = (d.querySelector('html').lang || '').toLowerCase();
            const urlPath = w.location.pathname.split('/').filter(n => n);
            s.locale = urlPath[0] || htmlLang;
    
            // bind events
            els.theTriggerOpen.on('click', function(e) { e.preventDefault(); openIt(); });
            els.theTriggerClose.on('click', function(e) { e.preventDefault(); closeIt(); });
            els.theInput.on('keyup', function(e) {
    
              // define variables
              var theValue;
    
              // set search value
              if(this.value.trim()) {
    
                if(e.key === 'Enter') { els.theForm.submit(); return; }
    
                if (s.locale) {
                  els.theCta[0].href = '/' + s.locale + (s.searchPageUrl + this.value.trim());
                } else {
                  els.theCta[0].href = '/' + (s.searchPageUrl + this.value.trim());
                }
    
              } else {
    
                els.theCta[0].removeAttribute('href');
    
              }
    
              // if value length is bigger than the min length => performIt
              theValue = this.value.trim();
              theValue.length >= s.theMinLength && performIt(theValue);
    
            });
    
          },
          openIt = function() {
    
            // add class to the body
            d.body.classList.add(s.classes.searchIsVisible);
    
            // focus input field
            els.theInput.focus();
    
          },
          closeIt = function() {
    
            // remove class from the body
            d.body.classList.remove(s.classes.searchIsVisible);
    
            // clear all elements after fade out
            setTimeout(function() {
    
              // hide box and clear results
              els.theWrap.removeClass(s.classes.searchHasResults);
              els.theList.html('');
    
              // empty input field
              els.theInput.val('');
    
              // hide the loader
              els.theLoader.hide();
    
            }, 700);
    
          },
          performIt = function(theQuery) {
    
            // no param
            if(!theQuery) { return; }
    
            // show the loader
            els.theLoader.show();
    
            clearTimeout(s.theTimer);
    
            s.theTimer = setTimeout(function() {
    
              s.theCall = $.ajax({
                url: s.searchPath + theQuery,
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function(data) {
    
                  // define result count
                  var resultCount = (data.length && data !== "") ? data.length : 0,
                    buildCount = 0,
                    resultHtml = '',
                    i;
    
                  // hide the loader
                  els.theLoader.hide();
    
                  // show content box
                  els.theWrap.addClass(s.classes.searchHasResults);
    
                  // set results in list
                  for(i = 0; i < resultCount; i += 1) {
    
                    if(data[i] !== '') {
    
                      // set build count
                      buildCount++;
    
                      // append result if possible
                      if(buildCount <= s.maxResults) {
    
                        resultHtml += '<li class="search__item">';
                        resultHtml += '<a class="search__link" href="' + data[i].AbsoluteUrl + '">' + data[i].Title + '</a></li>';
    
                      }
    
                    }
    
                  }
    
                  // append results to list
                  if(buildCount) {
    
                    // append results
                    els.theList.html(resultHtml);
    
                    // show button
                    els.theCta[0].removeAttribute('disabled');
    
                  } else {
    
                    // append nothing found text
                    els.theList.html('<li class="search__item search__item--noResult">' + s.noresults + '</li>');
    
                    // disable button
                    els.theCta[0].setAttribute('disabled', 'true');
    
                  }
    
                }
              });
    
            }, 800);
    
          };
    
        w.addEventListener('DOMContentLoaded', init);
    
      }(window, window.document, window.jQuery));
    }
    
  • URL: /components/raw/search/search.js
  • Filesystem Path: ../src/04_organisms/search/search.js
  • Size: 5.5 KB
  • Content:
    .search {
      display: block;
      flex: 1 1 auto;
    }
    
    .search__trigger {
      display: flex;
      flex: 0 0 auto;
      align-items: center;
      justify-content: center;
      width: 22px;
      height: 22px;
      color: #25F6D6 !important;
    
      .theme-2020 & {
        color: var(--color--neutrals-0) !important;
      }
    }
    
    .search__trigger svg {
      display: block;
      width: 100%;
      height: 100%;
    }
    
    .search__inner {
      transition: left 0s 500ms, opacity 500ms;
      position: fixed;
      top: 0;
      left: 100%;
      z-index: 90210;
      display: block;
      width: 100%;
      height: 100%;
      overflow: auto;
      border: 8px solid #1A1928;
      opacity: 0;
    
      @media all and (min-width: 768px) {
        border-width: 16px;
      }
    
      .theme-2020 & {
        border: none;
      }
    }
    
    .search-is-visible .search__inner {
      transition: left 0s, opacity 500ms;
      left: 0;
      opacity: 1;
    }
    
    .search__form {
      position: relative;
      z-index: 3;
      padding-bottom: 16px;
      background-color: #1A1928;
    
      @media all and (min-width: 768px) {
        padding-right: 32px;
        padding-left: 32px;
      }
    
      .theme-2020 & {
        display: flex;
        align-items: center;
        height: 95px;
        padding-left: var(--gap--4);
        padding-right: var(--gap--4);
        background-color: var(--color--neutrals-9);
      }
    }
    
    .search__overlay {
      position: absolute;
      top: 0;
      left: 0;
      z-index: 1;
      display: block;
      width: 100%;
      height: 100%;
      background-color: rgba(26,25,40,.8);
    
      .theme-2020 & {
        background-color: rgba(#000, .2);
      }
    }
    
    .search__field {
      position: relative;
      display: flex;
      align-items: center;
      width: 100% !important;
      max-width: 1024px;
      margin: 0 auto;
      padding: 8px !important;
      border-bottom: 3px solid #395EE2;
      border-radius: 6px;
    
      .theme-2020 & {
        padding: 0 !important;
        border-bottom: 1px solid var(--color--neutrals-0);
        border-radius: 0;
      }
    }
    
    .search__input {
      display: block;
      flex: 1 1 auto;
      width: 100%;
      height: 44px !important;
      margin: 0;
      padding: 0;
      color: #FFF;
      font-size: 35px;
      font-weight: 500;
      line-height: 1;
      text-transform: uppercase;
      border: none !important;
      outline: none;
      background-color: transparent;
      box-shadow: none;
    
      .theme-2020 & {
        padding: 0 !important;
      }
    }
    
    .search__input::-ms-clear {
      display: none;
      appearance: none;
    }
    
    .search__input::-webkit-search-cancel-button {
      display: none;
      appearance: none;
    }
    
    .search__closeTrigger {
      transition: color 300ms;
      display: flex;
      flex: 0 0 30px;
      align-items: center;
      justify-content: center;
      width: 30px;
      height: 30px;
      color: #395EE2;
      text-decoration: none;
    
      .theme-2020 & {
        width: 23px;
        height: 23px;
        color: var(--color--neutrals-0) !important;
      }
    }
    
    .search__closeTrigger:hover {
      color: #25F6D6;
    }
    
    .search__results {
      position: relative;
      z-index: 3;
      max-width: 1024px;
      margin: 0 auto;
      padding: 0 32px;
    }
    
    .search__results__inner {
      display: none;
      padding: 16px;
      color: #FFF;
      background-color: #3B3B53;
    
      @media all and (min-width: 768px) {
        padding: 32px;
      }
    
      .theme-2020 & {
        color: var(--color--neutrals-8);
        background-color: var(--color--neutrals-0);
      }
    }
    
    .search-has-results .search__results__inner {
      display: block;
    }
    
    .search__results__inner h3 {
      color: #FFF;
    
      .theme-2020 & {
        color: var(--color--neutrals-10);
        font-weight: 500;
        text-transform: none;
      }
    }
    
    .search__results__inner h3:after {
      .theme-2020 & {
        content: initial;
      }
    }
    
    .search__list {
      display: block;
      width: 100%;
      margin: 0;
      padding: 16px 0;
      list-style-type: none;
    
      @media all and (min-width: 768px) {
        padding: 32px 0;
      }
    }
    
    .search__link {
      transition: padding-left 300ms, background-color 300ms;
      display: block;
      padding: 16px 0;
      color: #FFF;
      font-weight: 500;
      text-decoration: none;
      border-bottom: 1px solid #54547D;
      cursor: pointer;
    
      &:hover {
        padding-left: 16px;
        color: #FFF;
        text-decoration: none;
        background-color: #2D2D45;
    
        .theme-2020 & {
          color: inherit;
          background-color: var(--color--neutrals-1);
        }
      }
    
      .theme-2020 & {
        color: inherit;
        font-weight: 400;
        border-bottom: 1px solid var(--color--neutrals-2);
      }
    }
    
    .search__item:first-child .search__link {
      border-top: none;
    }
    
    .search__cta {
      width: 100%;
    }
    
    .search__note {
      display: block;
      width: 100%;
      margin: 16px 0 0;
      color: #FFF;
    
      .theme-2020 & {
        color: inherit;
      }
    }
    
    .search__note a {
      .theme-2020 & {
        color: var(--color--action);
      }
    }
    
  • URL: /components/raw/search/search.scss
  • Filesystem Path: ../src/04_organisms/search/search.scss
  • Size: 4.4 KB

No notes defined.