Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
8.6 kB
2
Indexable
Never

html body #reviews [data-bv-show=reviews] .bv-header {
    display: block !important;
}

html body #reviews [data-bv-show=reviews] .bv-action-bar,
html body #reviews [data-bv-show=reviews] .bv-inline-form-container,
html body #reviews [data-bv-show=reviews] .bv-control-bar,
html body #reviews [data-bv-show=reviews] .bv-section-summary>div>div>div:nth-child(2),
html body #reviews [data-bv-show=reviews] .bv-section-summary>div>div>div:nth-child(1)>div>div:nth-child(1),
html body #reviews [data-bv-show=reviews] .bv-section-summary>div>div>div:nth-child(1)>div>p,
html body #reviews [data-bv-show=reviews] .bv-content-pagination,
html body #reviews #BVRRSearchContainer .bv-summary-bar>div>dl .bv-rating-ratio button>span.bv-rating-stars-off,
html body #reviews [data-bv-show=reviews] .bv-content-list-container>.bv-content-list>li:nth-child(n + 6) {
    display: none !important;
}

html body #reviews [data-bv-show=reviews] .bv-section-summary>div>div>div:nth-child(1)>div>div:last-child {
    width: 100% !important;
    margin: 0 !important;
    max-width: 250px !important;
    min-width: 250px !important;
    /*background: #f9f7f3 !important;
    border: 1px solid #333 !important;*/
    background: transparent !important;
    border: 0px solid #333 !important;
    margin-left: 5px !important;
}

html body #reviews [data-bv-show=reviews] .bv-section-summary>div>div>div:nth-child(1)>div>div:last-child>div>div[class*="histogram-ratings-star"]>span {
    color: #f3c73f !important;
}

html body #reviews [data-bv-show=reviews] .bv-section-summary>div>div>div:nth-child(1) {
    width: fit-content !important;
}

html body #reviews [data-bv-show=reviews] .bv-section-summary {
    background: transparent !important;
    margin: 0 !important;
}


html body #reviews #BVRRSearchContainer .bv-summary-bar {
    padding: 10px !important;
    border: none !important;
}

html body #reviews #BVRRSearchContainer .bv-summary-bar>div {
    float: unset !important;
    width: 100% !important;
}

html body #reviews #BVRRSearchContainer .bv-summary-bar>div>dl {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
}

html body #reviews #BVRRSearchContainer .bv-summary-bar>div>dl .bv-rating-ratio-number {
    display: inline-block !important;
    margin-left: 6px !important;
    margin-right: 1px !important;
}

html body #reviews #BVRRSearchContainer .bv-summary-bar>div>dl .bv-rating-ratio-number span {
    font-size: 19px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    font-family: ITCGaramondStd-LtCond,Helvetica Neue,Helvetica,Arial,sans-serif!important;
}

html body #reviews #BVRRSearchContainer .bv-summary-bar>div>dl .bv-rating-ratio-count a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 17px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

html body #reviews #BVRRSearchContainer .bv-summary-bar>div>dl .bv-rating-ratio button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: none !important;
    width: fit-content !important;
    outline: none !important;
}

html body #reviews #BVRRSearchContainer .bv-summary-bar>div>dl .bv-rating-ratio button>span.bv-rating-stars-on {
    margin: 0 !important;
    float: unset !important;
    width: unset !important;
}


html body #reviews #BVRRSearchContainer>div>div>div>div {
    border: none !important;
    box-shadow: none !important;
}



html body #reviews #BVRRSearchContainer .bv-summary-bar>div>dl .bv-rating-ratio-count a::before {
    content: "(";
}

html body #reviews #BVRRSearchContainer .bv-summary-bar>div>dl .bv-rating-ratio-count a::after {
    content: ")";
}

html body #reviews [data-bv-show=reviews] .bv-section-summary>div>div>div:nth-child(1)>div>div:last-child>div {
    border: none !important;
    outline: none !important;
}

html body #reviews [data-bv-show=reviews] .bv-content-list-container>.bv-content-filter>div:last-child {
    margin-top: 10px !important;
    margin-left: 0 !important;
}

html body .testimonial {
    margin-bottom: 0 !important;
}

html body #reviews {
    padding-top: 10px !important;
}

html body #reviews .eg-load-more {
    background-color: #f1d27a;
    width: 100%;
    font-style: italic;
    font-weight: 500;
    border-radius: 26px;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, .75);
    font-size: 15px;
    text-transform: uppercase;
    font-family: OptimaLTP;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 10px;
    transition: all 0.3s;
    padding-left: 13px;
    padding-right: 13px;
    padding-bottom: 5px;
    margin-top: 15px;
    max-width: 148px;
    margin-left: auto;
    margin-right: auto;
}

html body #reviews .eg-load-more:hover {
    background-color: #f3c740 !important;
}

.product-ingredients+.drawer-accordion {
    margin-top: 0;
    margin-bottom: 10px !important;
}

@media(min-width:800px) {
    html body #reviews {
        padding-top: 5px !important;
    }
}


html body .bv-cv2-cleanslate .bv-core-container-73 .bv-inline-histogram-ratings .bv-flex-container div,
html body .bv-cv2-cleanslate .bv-core-container-73 .bv-popup-histogram-ratings .bv-flex-container div {
    font-family: ITCGaramondStd-LtCond,Helvetica Neue,Helvetica,Arial,sans-serif!important;
}

html body .bv-cv2-cleanslate .bv-core-container-73 .bv-flex-container-column .bv-flex-container {
    margin: 0px 0!important;
}



(function () {
    if (!document.querySelector(".eg-load-more")) {
      try {
        /* main variables */
        var debug = 0;
        var variation_name = "";
        var $;
        /* all Pure helper functions */
  
        function waitForElement(selector, trigger, delayInterval, delayTimeout) {
          var interval = setInterval(function () {
            if (
              document &&
              document.querySelector(selector) &&
              document.querySelectorAll(selector).length > 0
            ) {
              clearInterval(interval);
              trigger();
            }
          }, delayInterval);
          setTimeout(function () {
            clearInterval(interval);
          }, delayTimeout);
        }
        function listener() {
          /* These are the modifications: */
          window.addEventListener("locationchange", function () {
            if (window.location.href.indexOf("/products") != -1) {
              waitForElement('html body #reviews', init, 50, 15000);
            } else {
              document.querySelector(".eg-load-more") && document.querySelector(".eg-load-more").remove();
            }
          });
          history.pushState = ((f) =>
            function pushState() {
              var ret = f.apply(this, arguments);
              window.dispatchEvent(new Event("pushstate"));
              window.dispatchEvent(new Event("locationchange"));
              return ret;
            })(history.pushState);
          history.replaceState = ((f) =>
            function replaceState() {
              var ret = f.apply(this, arguments);
              window.dispatchEvent(new Event("replacestate"));
              window.dispatchEvent(new Event("locationchange"));
              return ret;
            })(history.replaceState);
          window.addEventListener("popstate", () => {
            window.dispatchEvent(new Event("locationchange"));
          });
        }
  
        let egLoadMore = `<button class="eg-load-more">LOAD MORE</button>`;
        /* Variation Init */
        function init() {
          if (!document.querySelector(".eg-load-more")) {
            document.querySelector("html body #reviews") && document.querySelector("html body #reviews").insertAdjacentHTML("beforeend", egLoadMore);
            if (document.querySelector(".eg-load-more")) {
              document.querySelector(".eg-load-more").addEventListener("click", function () {
                if (document.querySelector("html body #reviews .bv-content-pagination-buttons-item-next>*")) {
                  document.querySelector("html body #reviews .bv-content-pagination-buttons-item-next>*").click();
                }
              });
            }
          }
        }
  
        /* Initialize variation */
        if (window.location.href.indexOf("/products") != -1) {
          waitForElement('html body #reviews', init, 50, 15000);
        }
        listener();
      } catch (e) {
        if (debug) console.log(e, "error in Test" + variation_name);
      }
    }
  })();