@iris.interactive/handcook 7.1.2-beta → 8.0.0-alpha.1

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 (57) hide show
  1. package/.gitlab-ci.yml +2 -2
  2. package/.nvmrc +1 -1
  3. package/README.md +1 -1
  4. package/package.json +12 -18
  5. package/public/index.html +33 -36
  6. package/public/scripts/components/collapse/collapse.component.js +1 -95
  7. package/public/scripts/components/collapse/collapse.component.scss +4 -4
  8. package/public/scripts/components/dropdown/dropdown.component.js +1 -81
  9. package/public/scripts/components/lazyload/lazyload.component.js +1 -61
  10. package/public/scripts/components/lightbox/lightbox.component.js +1 -91
  11. package/public/scripts/components/modal/modal.component.js +1 -83
  12. package/public/scripts/components/nats/nats.component.js +1 -62
  13. package/public/scripts/components/overlay/overlay.component.js +1 -88
  14. package/public/scripts/components/popin/popin.component.js +1 -150
  15. package/public/scripts/components/scroll-reveal/scroll-reveal.component.js +1 -168
  16. package/public/scripts/components/scrollspy/scrollspy.component.js +1 -93
  17. package/public/scripts/components/share/share.component.js +1 -0
  18. package/public/scripts/components/slider/slider.component.js +1 -317
  19. package/public/scripts/components/smooth-scroll/smooth-scroll.component.js +1 -59
  20. package/public/scripts/components/tab/tab.component.js +1 -82
  21. package/public/scripts/components/toggle/toggle.component.js +1 -51
  22. package/public/scripts/components/tooltip/tooltip.component.js +1 -119
  23. package/public/scripts/enumerators/element.enum.js +1 -40
  24. package/public/scripts/enumerators/share.enum.js +1 -0
  25. package/public/scripts/enumerators/smooth-scroll.enum.js +1 -19
  26. package/public/scripts/enumerators/tooltip.enum.js +1 -25
  27. package/public/scripts/handcook.js +1 -49
  28. package/public/scripts/support/cookie.support.js +1 -0
  29. package/public/scripts/support/hash.support.js +1 -0
  30. package/public/scripts/support/toggle-html.support.js +1 -0
  31. package/public/scripts/support/wrap-select.support.js +1 -0
  32. package/public/static/css/989.b832cc44.css +1 -0
  33. package/public/static/css/index.0ac21166.css +1 -0
  34. package/public/static/js/989.a4a97e0e.js +23 -0
  35. package/public/static/js/989.a4a97e0e.js.LICENSE.txt +5 -0
  36. package/public/static/js/index.67977b9b.js +1 -0
  37. package/public/styles/scss/_utils.scss +21 -17
  38. package/public/styles/scss/_variables.scss +0 -5
  39. package/public/styles/scss/handcook.scss +5 -5
  40. package/public/styles/scss/mixins/_mixin-font.scss +8 -6
  41. package/public/styles/scss/mixins/_mixin-layout.scss +17 -14
  42. package/public/styles/scss/mixins/_mixin-style.scss +70 -63
  43. package/public/styles/scss/style.css +1 -172
  44. package/mix-manifest.json +0 -51
  45. package/public/scripts/components/collapse/collapse.component.min.js +0 -1
  46. package/public/scripts/components/dropdown/dropdown.component.min.js +0 -1
  47. package/public/scripts/components/lazyload/lazyload.component.min.js +0 -1
  48. package/public/scripts/components/lightbox/lightbox.component.min.js +0 -1
  49. package/public/scripts/components/modal/modal.component.min.js +0 -1
  50. package/public/scripts/components/scrollspy/scrollspy.component.min.js +0 -1
  51. package/public/scripts/components/slider/slider.component.min.js +0 -1
  52. package/public/scripts/components/smooth-scroll/smooth-scroll.component.min.js +0 -1
  53. package/public/scripts/components/tab/tab.component.min.js +0 -1
  54. package/public/scripts/components/toggle/toggle.component.min.js +0 -1
  55. package/public/scripts/components/tooltip/tooltip.component.min.js +0 -1
  56. package/public/scripts/index.js.LICENSE.txt +0 -1
  57. package/public/styles/style.css +0 -28
@@ -0,0 +1,5 @@
1
+ /**!
2
+ * tippy.js v6.3.7
3
+ * (c) 2017-2021 atomiks
4
+ * MIT License
5
+ */
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var t={2826:function(t,e,i){var a=i("7412"),r=i("3315");i("3347");class o{}(0,a._)(o,"tooltip","[data-hc-tooltip], [data-hc-popover]"),(0,a._)(o,"popover","[data-hc-popover]"),(0,a._)(o,"scrollSmooth","[data-hc-smooth-scroll]"),(0,a._)(o,"modal","[data-hc-modal]"),(0,a._)(o,"modalClose","[data-hc-modal-close]"),(0,a._)(o,"lightboxAttr","data-hc-lightbox"),(0,a._)(o,"lightbox",`[${o.lightboxAttr}]`),(0,a._)(o,"dropdown","[data-hc-dropdown]"),(0,a._)(o,"collapse","[data-hc-collapse]"),(0,a._)(o,"collapseItem","[data-hc-collapse-item]"),(0,a._)(o,"popin","[data-hc-popin]"),(0,a._)(o,"tab","[data-hc-tab]"),(0,a._)(o,"toggle","[data-hc-toggle]"),(0,a._)(o,"slider","[data-hc-slider]"),(0,a._)(o,"scrollspy","[data-hc-scrollspy]"),(0,a._)(o,"scrollspyNav","[data-hc-scrollspy-nav]"),(0,a._)(o,"scrollspyNavItem","[data-hc-scrollspy-nav-item]"),(0,a._)(o,"scrollspyNavItemHref","[data-hc-scrollspy-nav-item-href]"),(0,a._)(o,"scrollReveal","[data-hc-scroll-reveal]"),(0,a._)(o,"scrollRevealDisable","[data-hc-noscroll-reveal]"),(0,a._)(o,"scrollRevealParent","[data-hc-scroll-reveal-parent]"),(0,a._)(o,"scrollRevealChildren",`${o.scrollRevealParent} > *:not(${o.scrollRevealDisable}):not(${o.scrollRevealParent}):not(${o.scrollReveal})`),(0,a._)(o,"overlay","[data-hc-overlay]");class s{}(0,a._)(s,"attrPopover","data-hc-popover"),(0,a._)(s,"attrContent","data-hc-tooltip-content"),(0,a._)(s,"attrPlacement","data-hc-tooltip-placement"),(0,a._)(s,"attrInteractive","data-hc-tooltip-interactive"),(0,a._)(s,"attrBackgroundColor","data-hc-tooltip-background-color"),(0,a._)(s,"attrColor","data-hc-tooltip-color"),(0,a._)(s,"attrFontSize","data-hc-tooltip-font-size");class l{createEvent(){this.showEvent=new Event("show.hc.tooltip"),this.shownEvent=new Event("shown.hc.tooltip"),this.hideEvent=new Event("hide.hc.tooltip"),this.hiddenEvent=new Event("hidden.hc.tooltip")}show(){this.instances.forEach(t=>{t.show()})}hide(){this.instances.forEach(t=>{t.hide()})}disable(){this.instances.forEach(t=>{t.disable()})}enable(){this.instances.forEach(t=>{t.enable()})}constructor(t=o.tooltip,e={}){(0,a._)(this,"showEvent",void 0),(0,a._)(this,"shownEvent",void 0),(0,a._)(this,"hideEvent",void 0),(0,a._)(this,"hiddenEvent",void 0),(0,a._)(this,"instances",[]),(0,a._)(this,"defaultOptions",{placement:"",content:"",trigger:"",interactive:!1,allowHTML:!0}),this.createEvent(),document.querySelectorAll(t).forEach(t=>{let i={};Object.assign(i,this.defaultOptions,e),i.trigger=""!=i.trigger?i.trigger:t.hasAttribute(s.attrPopover)?"click":"mouseenter",i.content=""!=i.content?i.content:t.hasAttribute(s.attrContent)?t.getAttribute(s.attrContent):"",i.placement=""!=i.placement?i.placement:t.hasAttribute(s.attrPlacement)?t.getAttribute(s.attrPlacement):"bottom",i.interactive=""!=i.interactive?i.interactive:!!t.hasAttribute(s.attrInteractive)&&t.getAttribute(s.attrInteractive);let a=t.hasAttribute(s.attrBackgroundColor)?t.getAttribute(s.attrBackgroundColor):"",o=t.hasAttribute(s.attrColor)?t.getAttribute(s.attrColor):"",l=t.hasAttribute(s.attrFontSize)?t.getAttribute(s.attrFontSize):"";"click"===i.trigger?t.addEventListener("click",t=>{t.preventDefault()}):i.touch=!1,i.onShow=t=>{a&&t.popper.querySelector(".tippy-box").style.setProperty("--iris--tooltip--background-color",a),o&&t.popper.querySelector(".tippy-box").style.setProperty("--iris--tooltip--color",o),l&&t.popper.querySelector(".tippy-box").style.setProperty("--iris--tooltip--font-size",l),t.reference.dispatchEvent(this.showEvent)},i.onShown=t=>{t.reference.dispatchEvent(this.shownEvent)},i.onHide=t=>{t.reference.dispatchEvent(this.hideEvent)},i.onHidden=t=>{t.reference.dispatchEvent(this.hiddenEvent)};let n=(0,r.ZP)(t,i);this.instances.push(n)})}}class n{}(0,a._)(n,"attrHref","data-hc-smooth-scroll-href"),(0,a._)(n,"attrShift","data-hc-smooth-scroll-shift");class c{easeInCubic(t){return t*t*t}scrollToElem(t,e,i,a,r){let o=e-t,s=o/i;s=Math.min(s,1);let l=this.easeInCubic(s);window.scroll(0,r+a*l),o<i&&requestAnimationFrame(e=>{let o=e||new Date().getTime();this.scrollToElem(t,o,i,a,r)})}constructor(t=o.scrollSmooth,e=1e3){document.querySelectorAll(t).forEach(t=>{t.addEventListener("click",t=>{t.preventDefault();let i=null!=t.currentTarget.getAttribute("href")?document.querySelector(t.currentTarget.getAttribute("href")):document.querySelector(t.currentTarget.dataset.hcSmoothScrollHref),a=null!==t.currentTarget.getAttribute(n.attrShift)?t.currentTarget.getAttribute(n.attrShift):0;requestAnimationFrame(t=>{let r=t||new Date().getTime(),o=window.pageYOffset,s=i.getBoundingClientRect().top-a;this.scrollToElem(r,r,e,s,o)})})})}}var d=i("2689");i("2055");class h{static show(t){d.KR.show([t])}static close(t){d.KR.close(t)}initOptions(){this.options={src:"",type:"inline",parentEl:null}}createEvent(){this.showEvent=new Event("show.hc.modal"),this.hideEvent=new Event("hide.hc.modal")}constructor(t=o.modal,e={}){(0,a._)(this,"showEvent",void 0),(0,a._)(this,"hideEvent",void 0),(0,a._)(this,"options",{}),this.createEvent(),document.querySelectorAll(t).forEach(t=>{this.initOptions(),Object.assign(this.options,e),this.options.src=""!=this.options.src?this.options.src:t.hasAttribute("href")?t.getAttribute("href"):t.hasAttribute("data-src")?t.dataset.src:"",this.options.parentEl=null!==this.options.parentEl?document.querySelector(this.options.parentEl):t.hasAttribute("data-hc-modal-parent")?document.querySelector(t.getAttribute("data-hc-modal-parent")):"",this.options.autoFocus=!!t.hasAttribute("data-hc-modal-autofocus");let i=`${o.modal}[${t.hasAttribute("data-src")?"data-src":"href"}="${this.options.src}"]`;d.KR.bind(i,Object.assign(this.options,{on:{done:()=>{document.dispatchEvent(this.showEvent)},closing:()=>{document.dispatchEvent(this.hideEvent)}}}))}),document.querySelectorAll(o.modalClose).forEach(t=>{t.addEventListener("click",t=>{t.preventDefault();let e=""===t.currentTarget.dataset.hcModalClose||t.currentTarget.dataset.hcModalClose;h.close(e)})})}}class u{attachEventToShowButton(){document.querySelectorAll("[data-hc-lightbox-show]").forEach(t=>{t.addEventListener("click",e=>{e.preventDefault(),document.querySelector(t.getAttribute("href")+" img").click()})})}getTranslation(){var t;let e=null===(t=document.querySelector("html"))||void 0===t?void 0:t.getAttribute("lang");return"string"==typeof e&&!1!==e.indexOf("fr-FR")?{CLOSE:"Fermer",NEXT:"Suivant",PREV:"Pr\xe9c\xe9dent",MODAL:"Vous pouvez fermer la modal avec la touche echap",ERROR:"Quelque chose c'est mal pass\xe9. Merci d'essayer plus tard\n",IMAGE_ERROR:"Image introuvable",ELEMENT_NOT_FOUND:"\xc9lement HTML introuvable",AJAX_NOT_FOUND:"Erreur de chargement AJAX : Introuvable",AJAX_FORBIDDEN:"Erreur de chargement AJAX : Interdit",IFRAME_ERROR:"Erreur du chargement de la page",TOGGLE_ZOOM:"Zoome/dezoome",TOGGLE_THUMBS:"Affiche/cache les miniatures",TOGGLE_SLIDESHOW:"Active/d\xe9sactive le d\xe9filement automatique",TOGGLE_FULLSCREEN:"Bascule le mode plein \xe9cran",DOWNLOAD:"T\xe9l\xe9charger"}:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",MODAL:"You can close this modal content with the ESC key",ERROR:"Something Went Wrong, Please Try Again Later",IMAGE_ERROR:"Image Not Found",ELEMENT_NOT_FOUND:"HTML Element Not Found",AJAX_NOT_FOUND:"Error Loading AJAX : Not Found",AJAX_FORBIDDEN:"Error Loading AJAX : Forbidden",IFRAME_ERROR:"Error Loading Page",TOGGLE_ZOOM:"Toggle zoom level",TOGGLE_THUMBS:"Toggle thumbnails",TOGGLE_SLIDESHOW:"Toggle slideshow",TOGGLE_FULLSCREEN:"Toggle full-screen mode",DOWNLOAD:"Download"}}constructor(t=o.lightbox,e={}){t===o.lightbox&&Object.assign(e,{groupAttr:o.lightboxAttr,l10n:this.getTranslation()}),d.KR.bind(t,e),this.attachEventToShowButton()}}class p{static hideAll(){void 0!==window.hc_dropdown&&window.hc_dropdown.forEach(t=>{t.hide()})}createEvent(){this.showEvent=new Event("show.hc.dropdown"),this.shownEvent=new Event("shown.hc.dropdown"),this.hideEvent=new Event("hide.hc.dropdown"),this.hiddenEvent=new Event("hidden.hc.dropdown")}constructor(t=o.dropdown){(0,a._)(this,"showEvent",void 0),(0,a._)(this,"shownEvent",void 0),(0,a._)(this,"hideEvent",void 0),(0,a._)(this,"hiddenEvent",void 0),window.hc_dropdown=window.hc_dropdown||[],this.createEvent(),document.querySelectorAll(t).forEach(t=>{let e=document.querySelector(t.dataset.hcDropdownMenu),i=(0,r.ZP)(t,{trigger:"click",allowHTML:!0,content:e.innerHTML,arrow:!1,placement:"bottom",theme:"dropdown",interactive:!0,onShow:t=>{t.reference.dispatchEvent(this.showEvent)},onShown:t=>{t.reference.dispatchEvent(this.shownEvent)},onHide:t=>{t.reference.dispatchEvent(this.hideEvent)},onHidden:t=>{t.reference.dispatchEvent(this.hiddenEvent)}});window.hc_dropdown.push(i)})}}var v=i("6029");class g{createEvent(){this.showEvent=new Event("show.hc.collapse"),this.shownEvent=new Event("shown.hc.collapse"),this.hideEvent=new Event("hide.hc.collapse"),this.hiddenEvent=new Event("hidden.hc.collapse")}constructor(t=o.collapse,e="collapse"){(0,a._)(this,"showEvent",void 0),(0,a._)(this,"shownEvent",void 0),(0,a._)(this,"hideEvent",void 0),(0,a._)(this,"hiddenEvent",void 0),this.createEvent(),[].slice.call(document.querySelectorAll(t)).map(function(t){let e=t.getAttribute("data-hc-collapse-parent"),i={toggle:!1};return null!==e&&(i.parent=e),new v.Z(t,i)}).map(function(t){document.querySelectorAll(`[data-hc-collapse-trigger="${t._element.getAttribute("data-hc-collapse")}"]`).forEach(e=>{e.addEventListener("click",function(e){e.preventDefault(),t.toggle()})})}),document.querySelectorAll("[data-hc-collapse]").forEach(t=>{let e=document.querySelectorAll(`[data-hc-collapse-trigger="${t.getAttribute("id")}"]`);t.addEventListener("hide.bs.collapse",i=>{e.forEach(t=>{t.classList.contains("active")&&t.classList.remove("active")}),t.dispatchEvent(this.hideEvent)}),t.addEventListener("hidden.bs.collapse",e=>{t.dispatchEvent(this.hiddenEvent)}),t.addEventListener("show.bs.collapse",i=>{e.forEach(t=>{!t.classList.contains("active")&&t.classList.add("active")}),t.dispatchEvent(this.showEvent)}),t.addEventListener("shown.bs.collapse",e=>{t.dispatchEvent(this.shownEvent)})})}}var E=i("2732"),m=i.n(E);class f{static getInstance(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!f.instance&&(f.instance=new f(t)),f.instance.lazyLoadInstance}static update(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=f.getInstance(t);e&&"function"==typeof e.update&&e.update()}static loadAll(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=f.getInstance(t);e&&"function"==typeof e.loadAll&&e.loadAll()}constructor(t={}){t=Object.assign({elements_selector:"[data-hc-src], [data-hc-bg], [data-hc-bg-hidpi], [data-hc-srcset]",data_src:"hc-src",data_bg:"hc-bg",data_bg_hidpi:"hc-bg-hidpi",data_srcset:"hc-srcset"},t),this.lazyLoadInstance=new(m())(t)}}(0,a._)(f,"instance",void 0);var b=i("7233");class w{buildDOM(){document.querySelectorAll("[data-hc-tab-wrapper]").forEach(t=>{!t.classList.contains("nav")&&t.classList.add("nav")})}createEvent(){this.showEvent=new Event("show.hc.tab"),this.shownEvent=new Event("shown.hc.tab"),this.hideEvent=new Event("hide.hc.tab"),this.hiddenEvent=new Event("hidden.hc.tab")}static show(t){[].slice.call(document.querySelectorAll(t)).forEach(function(t){new b.Z(t).show()})}constructor(t=o.tab){(0,a._)(this,"showEvent",void 0),(0,a._)(this,"shownEvent",void 0),(0,a._)(this,"hideEvent",void 0),(0,a._)(this,"hiddenEvent",void 0),this.createEvent(),this.buildDOM(),[].slice.call(document.querySelectorAll(t)).forEach(function(t){let e=new b.Z(t);t.addEventListener("click",function(t){t.preventDefault(),e.show()})}),document.querySelectorAll(t).forEach(t=>{t.addEventListener("hide.bs.tab",e=>{t.dispatchEvent(this.hideEvent)}),t.addEventListener("show.bs.tab",e=>{t.dispatchEvent(this.showEvent)}),t.addEventListener("shown.bs.tab",e=>{t.dispatchEvent(this.shownEvent)}),t.addEventListener("hidden.bs.tab",e=>{t.dispatchEvent(this.hiddenEvent)})})}}class y{constructor(t=o.toggle){document.querySelectorAll(t).forEach(t=>{t.addEventListener("click",t=>{t.preventDefault();let e=t.currentTarget.dataset.hcToggleAttribute,i=t.currentTarget.dataset.hcToggleValue,a=t.currentTarget.getAttribute("href")?t.currentTarget.getAttribute("href"):t.currentTarget.dataset.hcToggleTarget;document.querySelectorAll(a).forEach(t=>{null!==t.getAttribute(e)&&-1!==t.getAttribute(e).indexOf(i)?"class"===e?t.classList.remove(i):t.removeAttribute(e):"class"===e?t.classList.add(i):t.setAttribute(e,i)})})})}}var A=i("1460");i("1374"),i("5311");class _{setOptions(){let t=this.slider.getAttribute("data-hc-slider-autoplay");null!==t&&(this.options.autoplay={delay:t});let e={},i=[{hcKey:"gap",libKey:"spaceBetween",callback:"parseFloat"},{hcKey:"slides-per-view",libKey:"slidesPerView",callback:"parseFloat"},{hcKey:"no-swipe",libKey:"allowTouchMove",callback:"parseReverseBool"}];if(i.map(t=>{let e=this.slider.getAttribute(`data-hc-slider-${t.hcKey}`);null!==e&&("parseReverseBool"===t.callback&&(e="true"!==e),"parseBool"===t.callback&&(e="true"===e),"parseFloat"===t.callback&&(e=parseFloat(e)),this.options[t.libKey]=e)}),this.breakpoints.forEach(t=>{let a={};i.map(e=>{let i=this.slider.getAttribute(`data-hc-slider-${e.hcKey}-${t.name}`);null!==i&&("parseReverseBool"===e.callback&&(i="true"!==i),"parseBool"===e.callback&&(i="true"===i),"parseFloat"===e.callback&&(i=parseFloat(i)),a[e.libKey]=i)}),Object.getOwnPropertyNames(a).length>0&&(e[t.value]=a)}),this.options.breakpoints=e,null!==this.slider.getAttribute("data-hc-slider-free-mode")&&(this.options.freeMode={enabled:!0}),this.slider.hasAttribute("data-hc-slider-pagination")&&(this.options.pagination={el:".hc-slider-pagination",type:"bullets",clickable:!0,dynamicBullets:!1,bulletClass:"hc-slider-pagination-bullet",clickableClass:"hc-slider-pagination-clickable",currentClass:"hc-slider-pagination-current",bulletActiveClass:"hc-slider-pagination-bullet-active"}),this.slider.hasAttribute("data-hc-slider-arrows")){let t=this.slider.getAttribute("data-hc-slider-arrows"),e=this.slider.hasAttribute("data-hc-slider-arrows-wrapper")?".hc-slider-buttons":null,i=this.slider.hasAttribute("data-hc-slider-arrow-prev")?this.slider.getAttribute("data-hc-slider-arrow-prev"):`.hc-slider-button-prev${t}`,a=this.slider.hasAttribute("data-hc-slider-arrow-next")?this.slider.getAttribute("data-hc-slider-arrow-next"):`.hc-slider-button-next${t}`;this.options.navigation={prevEl:i,nextEl:a,wrapperEl:e,disabledClass:`hc-slider-button-disabled${t}`,hiddenClass:`hc-slider-button-hidden${t}`}}this.slider.hasAttribute("data-hc-slider-fade-effect")&&(this.options.effect="fade",this.options.fadeEffect={crossFade:!0}),this.slider.hasAttribute("data-hc-slider-infinite")&&(this.options.loop=!0),this.slider.hasAttribute("data-hc-slider-disable-mousewheel")&&(this.options.mousewheel=!1),this.slider.hasAttribute("data-hc-slider-lazy")&&(this.options.lazy={enabled:!0,checkInView:!0,loadPrevNext:!0,elementClass:"hc-slider-lazy",loadedClass:"hc-slider-lazy-loaded",loadingClass:"hc-slider-lazy-loading",preloaderClass:"hc-slider-lazy-preloader"}),this.options.watchOverflow=!0}buildDom(){if(0===this.slider.querySelectorAll(".swiper-wrapper").length){let t=[].slice.call(this.slider.children);t.forEach(t=>{t.classList.add("swiper-slide")});let e=document.createElement("div");if(e.classList.add("swiper-wrapper"),t.forEach(t=>{e.appendChild(t)}),this.slider.appendChild(e),!1!==this.options.pagination&&0===this.slider.querySelectorAll(this.options.pagination.el).length){let t=document.createElement("div");t.classList.add(this.options.pagination.el.substr(1)),this.slider.appendChild(t)}if(!1!==this.options.navigation){let t=this.slider.querySelectorAll(this.options.navigation.prevEl),e=this.slider.querySelectorAll(this.options.navigation.nextEl);if(this.slider.hasAttribute("data-hc-slider-arrows-wrapper")&&0===t.length&&0===e.length){let t=document.createElement("div"),e=document.createElement("div"),i=document.createElement("div");e.classList.add(this.options.navigation.prevEl.substr(1)),i.classList.add(this.options.navigation.nextEl.substr(1)),t.classList.add(this.options.navigation.wrapperEl.substr(1)),t.appendChild(e),t.appendChild(i),this.slider.appendChild(t)}else{if(!this.slider.hasAttribute("data-hc-slider-arrow-prev")&&0===t.length){let t=document.createElement("div");t.classList.add(this.options.navigation.prevEl.substr(1)),this.slider.appendChild(t)}if(!this.slider.hasAttribute("data-hc-slider-arrow-next")&&0===e.length){let t=document.createElement("div");t.classList.add(this.options.navigation.nextEl.substr(1)),this.slider.appendChild(t)}}}}}initOptions(){this.options={slidesPerView:"auto",pagination:!1,navigation:!1,mousewheel:{forceToAxis:!0},grabCursor:!0,loop:!1,watchSlidesProgress:!0,on:{init:t=>{t.$el.find(".swiper-wrapper").addClass("hc-slider-wrapper"),t.$el.addClass("hc-slider-initialized"),t.$el.find(".swiper-slide").addClass("hc-slider-slide"),t.$el.find(".swiper-slide-active").addClass("hc-slider-slide-active"),t.$el.find(".swiper-slide-next").addClass("hc-slider-slide-next"),t.$el.find(".swiper-slide-prev").addClass("hc-slider-slide-prev"),t.isLocked&&t.$el.addClass("hc-slider-lock"),this.slider.dispatchEvent(this.initEvent)},slideChangeTransitionEnd:t=>{t.$el.find(".swiper-slide").removeClass("hc-slider-slide-active").removeClass("hc-slider-slide-next").removeClass("hc-slider-slide-prev"),t.$el.find(".swiper-slide-active").addClass("hc-slider-slide-active"),t.$el.find(".swiper-slide-next").addClass("hc-slider-slide-next"),t.$el.find(".swiper-slide-prev").addClass("hc-slider-slide-prev")}},breakpoints:{}}}constructor(t=o.slider){(0,a._)(this,"slider",void 0),(0,a._)(this,"instances",[]),(0,a._)(this,"breakpoints",[{name:"medium",value:651},{name:"large",value:1001},{name:"xlarge",value:1454}]),(0,a._)(this,"options",{}),(0,a._)(this,"initEvent",void 0),document.querySelectorAll(t).forEach(t=>{this.initEvent=new Event("init.hc.slider"),this.initOptions(),this.slider=t,this.setOptions(),this.buildDom();let e=new A.Z(t,this.options);this.instances.push(e)})}}class L{getPartsConfig(t,e){let i=[];return t.querySelectorAll(e).forEach(t=>{let e=null!==t.getAttribute("href")?{id:t.getAttribute("href"),value:0,attribute:"href"}:{id:t.getAttribute(o.scrollspyNavItemHref),value:0,attribute:o.scrollspyNavItemHref};null!==document.querySelector(e.id)&&(e.value=this.getOffset(document.querySelector(e.id)).top,i=[...i,e])}),i}activeItem(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=t.querySelector(`${e}:first-child`);window.addEventListener("scroll",()=>{let r=this.getPartsConfig(t,e),o=window.scrollY;if(r.forEach(e=>{o>e.value-(i+50)&&(a=t.querySelector("["+e.attribute+'="'+e.id+'"]'))}),t.querySelectorAll(e).forEach(e=>{if(e!==a){let i=new CustomEvent("deactive.hc.scrollspy",{detail:{nav:t,item:a}});document.dispatchEvent(i),e.classList.contains("active")&&e.classList.remove("active")}}),!a.classList.contains("active")){let e=new CustomEvent("active.hc.scrollspy",{detail:{nav:t,item:a}});document.dispatchEvent(e),a.classList.add("active")}})}getOffset(t){let e=0,i=0;for(;t&&!isNaN(t.offsetLeft)&&!isNaN(t.offsetTop);)e+=t.offsetLeft-t.scrollLeft,i+=t.offsetTop-t.scrollTop,t=t.offsetParent;return{top:i,left:e}}constructor(t=o.scrollspy){(0,a._)(this,"activeEvent",void 0),document.querySelectorAll(t).forEach(t=>{let e=document.querySelector(t.dataset.hcScrollspy),i=null!==t.getAttribute("data-hc-scrollspy-shift")?parseInt(t.getAttribute("data-hc-scrollspy-shift")):0;null!==e&&this.activeItem(e,o.scrollspyNavItem,i)})}}class S{show(t){t.classList.add("hc-popin-show");let e=t.parentNode;e.hasAttribute("data-hc-popin-overlay-background")&&e.classList.add("hc-popin-overlay-show"),document.dispatchEvent(this.showEvent)}close(t){t.classList.remove("hc-popin-show");let e=t.parentNode;e.hasAttribute("data-hc-popin-overlay-background")&&e.classList.remove("hc-popin-overlay-show"),document.dispatchEvent(this.hideEvent)}createEvent(t){this.showEvent=new CustomEvent("show.hc.popin",{detail:{element:t}}),this.hideEvent=new CustomEvent("hide.hc.popin",{detail:{element:t}})}constructor(t=o.popin){(0,a._)(this,"showEvent",void 0),(0,a._)(this,"hideEvent",void 0),document.querySelectorAll(t).forEach(t=>{this.createEvent(t);let e=document.createElement("button");if(e.setAttribute("data-hc-popin-close",""),e.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M20 20L4 4m16 0L4 20"></path></svg>',t.prepend(e),t.hasAttribute("data-hc-popin-overlay")){let e=document.createElement("div");e.setAttribute("data-hc-popin-overlay-background",""),t.prepend(e),t.parentNode.insertBefore(e,t),e.appendChild(t),document.querySelectorAll("[data-hc-popin-overlay-background]")[0].addEventListener("click",e=>{!e.composedPath().includes(t)&&this.close(t)})}t.hasAttribute("data-hc-popin-position-top")&&(t.style.top=t.getAttribute("data-hc-popin-position-top")),t.hasAttribute("data-hc-popin-position-bottom")&&(t.style.bottom=t.getAttribute("data-hc-popin-position-bottom")),t.hasAttribute("data-hc-popin-position-left")&&(t.style.left=t.getAttribute("data-hc-popin-position-left")),t.hasAttribute("data-hc-popin-position-right")&&(t.style.right=t.getAttribute("data-hc-popin-position-right")),!t.hasAttribute("data-hc-popin-position-top")&&!t.hasAttribute("data-hc-popin-position-top")&&(t.style.bottom="20px"),!t.hasAttribute("data-hc-popin-position-left")&&!t.hasAttribute("data-hc-popin-position-right")&&(t.style.right="20px"),t.hasAttribute("data-hc-popin-mode")&&"trigger"===t.getAttribute("data-hc-popin-mode")?document.querySelectorAll("[data-hc-popin-trigger]").forEach(t=>{t.addEventListener("click",t=>{let e=t.currentTarget.getAttribute("href");this.show(document.getElementById(e.substring(1)))})}):t.hasAttribute("data-hc-popin-delay")?setTimeout(()=>{this.show(t)},t.getAttribute("data-hc-popin-delay")):this.show(t),t.querySelectorAll("[data-hc-popin-close]")[0].addEventListener("click",e=>{e.preventDefault(),this.close(t)})})}}class C{static init(t){let e=0,i=1,a=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting?t.target.classList.contains("hc-sr")&&t.target.classList.add("hc-sr--show"):t.target.classList.add("hc-sr")})},{root:null,rootMargin:"-20px 0px -20px 0px",threshold:0});t.forEach(t=>{let r;let o=!1;if(t.hasAttribute("data-hc-scroll-reveal-parent")||t.hasAttribute("data-hc-scroll-reveal")||t.hasAttribute("data-hc-noscroll-reveal"))r=C.getOptions(t);else{let e=t.parentElement;o=!0,r=C.getOptions(e)}if(r.distance!==C.distanceDefault&&""!==r.distance&&t.style.setProperty("--hc-scroll-reveal-distance",r.distance),r.delay!==C.delayDefault&&null!==r.delay&&t.style.setProperty("--hc-scroll-reveal-delay",r.delay),r.duration!==C.durationDefault&&null!==r.duration&&t.style.setProperty("--hc-scroll-reveal-duration",r.duration),r.timing!==C.timingFunctionDefault&&null!==r.timing&&t.style.setProperty("--hc-scroll-reveal-timing-function",r.timing),null!==r.interval&&null!==r.delay&&o){if(e==t.offsetTop){let t=parseInt(r.delay.replace("ms",""))+parseInt(r.interval.replace("ms",""))*i;r.delay=t+"ms",i++}else e=t.offsetTop,i=1;t.style.setProperty("--hc-scroll-reveal-delay",r.delay)}""!==r.origin&&(t.style.setProperty("--hc-scroll-reveal-origin",r.origin),"top"==r.origin?t.style.setProperty("--hc-scroll-reveal-translate","translateY(calc(var(--hc-scroll-reveal-distance) * -1))"):"left"==r.origin?t.style.setProperty("--hc-scroll-reveal-translate","translateX(calc(var(--hc-scroll-reveal-distance) * -1))"):"right"==r.origin?t.style.setProperty("--hc-scroll-reveal-translate","translateX(var(--hc-scroll-reveal-distance))"):t.style.setProperty("--hc-scroll-reveal-translate","translateY(var(--hc-scroll-reveal-distance))")),a.observe(t)})}static getOptions(t){let e={distance:C.distanceDefault,delay:C.delayDefault,duration:C.durationDefault,interval:C.intervalDefault,origin:C.originDefault,timing:C.timingFunctionDefault};return t.hasAttribute("data-hc-scroll-reveal-distance")&&(e.distance=t.getAttribute("data-hc-scroll-reveal-distance")),t.hasAttribute("data-hc-scroll-reveal-delay")&&(e.delay=t.getAttribute("data-hc-scroll-reveal-delay")+"ms"),t.hasAttribute("data-hc-scroll-reveal-duration")&&(e.duration=t.getAttribute("data-hc-scroll-reveal-duration")+"ms"),t.hasAttribute("data-hc-scroll-reveal-interval")&&(e.interval=t.getAttribute("data-hc-scroll-reveal-interval")+"ms"),t.hasAttribute("data-hc-scroll-reveal-origin")&&(e.origin=t.getAttribute("data-hc-scroll-reveal-origin")),t.hasAttribute("data-hc-scroll-reveal-timing-function")&&(e.timing=t.getAttribute("data-hc-scroll-reveal-timing-function")),e}constructor(){let t=Array.prototype.slice.call(document.querySelectorAll(o.scrollReveal)).concat(Array.prototype.slice.call(document.querySelectorAll(o.scrollRevealChildren)));C.init(t)}}(0,a._)(C,"distanceDefault",getComputedStyle(document.documentElement).getPropertyValue("--hc-scroll-reveal-distance")),(0,a._)(C,"delayDefault",getComputedStyle(document.documentElement).getPropertyValue("--hc-scroll-reveal-delay")),(0,a._)(C,"durationDefault",getComputedStyle(document.documentElement).getPropertyValue("--hc-scroll-reveal-duration")),(0,a._)(C,"intervalDefault",getComputedStyle(document.documentElement).getPropertyValue("--hc-scroll-reveal-interval")),(0,a._)(C,"originDefault",getComputedStyle(document.documentElement).getPropertyValue("--hc-scroll-reveal-origin")),(0,a._)(C,"timingFunctionDefault",getComputedStyle(document.documentElement).getPropertyValue("--hc-scroll-reveal-timing-function"));class O{show(t){t.classList.add("hc-overlay-show"),document.body.classList.add("hc-overlay-lock"),document.dispatchEvent(this.showEvent)}close(t){t.classList.remove("hc-overlay-show"),document.body.classList.remove("hc-overlay-lock"),document.dispatchEvent(this.hideEvent)}createEvent(t){this.showEvent=new CustomEvent("show.hc.overlay",{detail:{element:t}}),this.hideEvent=new CustomEvent("hide.hc.overlay",{detail:{element:t}})}constructor(t=o.overlay){(0,a._)(this,"showEvent",void 0),(0,a._)(this,"hideEvent",void 0);let e=this;document.querySelectorAll(t).forEach(t=>{e.createEvent(t),t.classList.add("hc-overlay-init"),document.querySelectorAll("[data-hc-overlay-trigger]").forEach(t=>{t.addEventListener("click",t=>{let i=t.currentTarget.getAttribute("data-hc-overlay-trigger")?t.currentTarget.getAttribute("data-hc-overlay-trigger"):t.currentTarget.getAttribute("href")?t.currentTarget.getAttribute("href").substring(1):null;e.show(document.getElementById(i))})}),document.querySelectorAll("[data-hc-overlay-close]").forEach(t=>{t.addEventListener("click",t=>{t.preventDefault();let i=t.currentTarget.getAttribute("data-hc-overlay-close");i&&e.close(document.getElementById(i))})}),document.querySelectorAll("[data-hc-overlay-background]").forEach(t=>{t.addEventListener("click",t=>{console.log("click"),t.preventDefault(),document.querySelectorAll(o.overlay).forEach(t=>{e.close(t)})})}),document.onkeyup=function(t){"Escape"===t.key&&document.querySelectorAll(o.overlay).forEach(t=>{e.close(t)})}})}}var T=i("6481");class k{static async initialize(){try{window.natsConnection=await (0,T.wsconnect)({servers:this.server,name:"IrisNatsSender",user:"irisinteractive",pass:"2G4cF4**#*72zBe5%HAmPc89"})}catch(t){console.log(`error connecting to ${JSON.stringify(t)}`)}}async publishMessage(t,e){try{void 0===window.natsConnection&&await k.initialize();let i={lat:window.IRISCollectionTheme.coordinates.latitude,long:window.IRISCollectionTheme.coordinates.longitude,blogName:window.IRISCollectionTheme.blogInfos.blogName,blogUrl:window.IRISCollectionTheme.blogInfos.blogUrl,content:e};window.natsConnection.publish(t,JSON.stringify(i))}catch(t){console.log(`error messaging to ${JSON.stringify(t)}`)}}constructor(){}}(0,a._)(k,"server","wss://nats.iris-interactive.fr:443");let q=function(t,e){return new l(t,e)},D=function(t,e){new c(t,e)},I=function(t,e){return new h(t,e)},R=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.lightbox,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new u(t,e)},P=function(t){return new p(t)},x=function(t){return new g(t)},N=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return f.getInstance(t)},F=function(t){return new w(t)},M=function(t){return new y(t)},$=function(t){return new _(t)},B=function(t){return new L(t)},z=function(t){new S(t)},H=function(){return new C},G=function(t){return new O(t)};document.addEventListener("DOMContentLoaded",function(){let t=q("#test",{trigger:"click",content:"Custom tooltip",placement:"right"});q(),setTimeout(function(){t.show()},1e3),setTimeout(function(){t.hide()},2e3),B(),D(),I(),I("#custom-trigger-modal"),R(),P(),x(),N(),F(),M(),$(),z(),H(),G(),document.addEventListener("show.hc.collapse",()=>{console.log("show hc collapse event dispatched")}),document.addEventListener("show.hc.overlay",()=>{console.log("show overlay")}),document.addEventListener("hide.hc.overlay",()=>{console.log("hide overlay")})})},1826:function(){}},e={};function i(a){var r=e[a];if(void 0!==r)return r.exports;var o=e[a]={exports:{}};return t[a].call(o.exports,o,o.exports,i),o.exports}i.m=t,i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,{a:e}),e},i.d=function(t,e){for(var a in e)i.o(e,a)&&!i.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:e[a]})},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},(()=>{var t=[];i.O=function(e,a,r,o){if(a){o=o||0;for(var s=t.length;s>0&&t[s-1][2]>o;s--)t[s]=t[s-1];t[s]=[a,r,o];return}for(var l=1/0,s=0;s<t.length;s++){for(var a=t[s][0],r=t[s][1],o=t[s][2],n=!0,c=0;c<a.length;c++)(!1&o||l>=o)&&Object.keys(i.O).every(function(t){return i.O[t](a[c])})?a.splice(c--,1):(n=!1,o<l&&(l=o));if(n){t.splice(s--,1);var d=r();void 0!==d&&(e=d)}}return e}})(),i.rv=function(){return"1.1.8"},(()=>{var t={980:0};i.O.j=function(e){return 0===t[e]};var e=function(e,a){var r=a[0],o=a[1],s=a[2],l,n,c=0;if(r.some(function(e){return 0!==t[e]})){for(l in o)i.o(o,l)&&(i.m[l]=o[l]);if(s)var d=s(i)}for(e&&e(a);c<r.length;c++)n=r[c],i.o(t,n)&&t[n]&&t[n][0](),t[n]=0;return i.O(d)},a=self.webpackChunk_iris_interactive_handcook=self.webpackChunk_iris_interactive_handcook||[];a.forEach(e.bind(null,0)),a.push=e.bind(null,a.push.bind(a))})(),i.ruid="bundler=rspack@1.1.8";var a=i.O(void 0,["989"],function(){return i("2826")});a=i.O(a)})();
@@ -1,3 +1,7 @@
1
+ @use "mixins/mixin-layout";
2
+ @use "mixins/mixin-style";
3
+ @use "variables";
4
+
1
5
  /*
2
6
  * Created by IRIS Interactive
3
7
  * User : IRIS Interactive
@@ -6,7 +10,7 @@
6
10
  /* Utils classes
7
11
  /* ============================================= */
8
12
  .stretched-link {
9
- @include stretched-link;
13
+ @include mixin-style.stretched-link;
10
14
  }
11
15
 
12
16
 
@@ -76,13 +80,13 @@
76
80
  .hover-item {
77
81
 
78
82
  img {
79
- @include transition;
83
+ @include mixin-style.transition;
80
84
  will-change: transform;
81
85
  }
82
86
 
83
87
  &:hover {
84
88
  img {
85
- @include animate;
89
+ @include mixin-style.animate;
86
90
  }
87
91
  }
88
92
  }
@@ -90,15 +94,15 @@
90
94
  /* Opening
91
95
  /* ============================================= */
92
96
  .is-open {
93
- color: $c-success;
97
+ color: variables.$c-success;
94
98
  }
95
99
 
96
100
  .soon-close {
97
- color: $c-warning;
101
+ color: variables.$c-warning;
98
102
  }
99
103
 
100
104
  .is-close {
101
- color: $c-error;
105
+ color: variables.$c-error;
102
106
  }
103
107
 
104
108
  /* Font
@@ -111,34 +115,34 @@
111
115
  /* Sizes
112
116
  /* ============================================= */
113
117
  .font-size-xsmall {
114
- font-size: $font-size-xsmall--rem;
118
+ font-size: variables.$font-size-xsmall--rem;
115
119
  }
116
120
 
117
121
  .font-size-small {
118
- font-size: $font-size-small--rem;
122
+ font-size: variables.$font-size-small--rem;
119
123
  }
120
124
 
121
125
  .font-size-regular {
122
- font-size: $font-size-regular--rem;
126
+ font-size: variables.$font-size-regular--rem;
123
127
 
124
- @include breakpoint(small) {
125
- font-size: $font-size-regular--small--rem;
128
+ @include mixin-layout.breakpoint(small) {
129
+ font-size: variables.$font-size-regular--small--rem;
126
130
  }
127
131
  }
128
132
 
129
133
  .font-size-large {
130
- font-size: $font-size-large--rem;
134
+ font-size: variables.$font-size-large--rem;
131
135
 
132
- @include breakpoint(small) {
133
- font-size: $font-size-large--small--rem;
136
+ @include mixin-layout.breakpoint(small) {
137
+ font-size: variables.$font-size-large--small--rem;
134
138
  }
135
139
  }
136
140
 
137
141
  .font-size-xlarge {
138
- font-size: $font-size-extra-large--rem;
142
+ font-size: variables.$font-size-extra-large--rem;
139
143
 
140
- @include breakpoint(small) {
141
- font-size: $font-size-extra-large--small--rem;
144
+ @include mixin-layout.breakpoint(small) {
145
+ font-size: variables.$font-size-extra-large--small--rem;
142
146
  }
143
147
  }
144
148
 
@@ -608,8 +608,3 @@ $c-medium: #1f70e3;
608
608
  $c-intermediate: #ff890e;
609
609
  $c-hard: #ef5350;
610
610
  $c-veryhard: #000;
611
-
612
- /* Gray
613
- / ================================================== */
614
- $c-gray: #757575;
615
- $c-lightgray: #ddd;
@@ -13,8 +13,8 @@
13
13
  * @copyright Copyright (c) 2002-2022 IRIS Interactive, Inc. (http://www.iris-interactive.fr)
14
14
  */
15
15
 
16
- @import "variables";
17
- @import "mixins/mixin-font";
18
- @import "mixins/mixin-layout";
19
- @import "mixins/mixin-style";
20
- @import "utils";
16
+ @use "variables";
17
+ @use "mixins/mixin-font";
18
+ @use "mixins/mixin-layout";
19
+ @use "mixins/mixin-style";
20
+ @use "utils";
@@ -1,3 +1,5 @@
1
+ @use "../variables";
2
+
1
3
  /*!
2
4
  * IRIS Interactive
3
5
  *
@@ -16,9 +18,9 @@
16
18
 
17
19
  /* Font icon
18
20
  /* ============================================= */
19
- @mixin fi($name) {
21
+ @mixin fi($name, $font: 'customer-font') {
20
22
  content: var(--font-icon--#{$name});
21
- font-family: "collection-font";
23
+ font-family: #{$font};
22
24
  font-style: initial;
23
25
  text-transform: none;
24
26
  font-weight: 400;
@@ -33,7 +35,7 @@
33
35
  }
34
36
 
35
37
  @function vw-size( $size ) {
36
- $ceil-size: ($container / 1px) / (1 - ($margin-xlarge / 100%) * 2);
38
+ $ceil-size: (variables.$container / 1px) / (1 - (variables.$margin-xlarge / 100%) * 2);
37
39
  @return calc(#{$size} * 100 / #{$ceil-size} * 1vw);
38
40
  }
39
41
 
@@ -59,13 +61,13 @@
59
61
  }
60
62
 
61
63
  @if $format == 'meta' {
62
- font-size: #{$meta-font-size--rem};
64
+ font-size: #{variables.$meta-font-size--rem};
63
65
  line-height: 1.2;
64
66
  }
65
67
 
66
68
  @if $icon != '' {
67
69
  &:#{$icon-position} {
68
- color: #{$icon-color};
70
+ color: #{variables.$icon-color};
69
71
  @include fi(#{$icon});
70
72
  }
71
73
  }
@@ -74,4 +76,4 @@
74
76
  @if $alignment != '' {
75
77
  align-items: flex-#{$alignment};
76
78
  }
77
- }
79
+ }
@@ -1,3 +1,6 @@
1
+ @use "sass:map";
2
+ @use "../variables";
3
+
1
4
  /*
2
5
  * Created by IRIS Interactive
3
6
  * User : IRIS Interactive
@@ -7,7 +10,7 @@
7
10
  /* Main gutter
8
11
  / ================================================== */
9
12
  @function viewport-border($index) {
10
- @return map_get($viewport-borders, $index);
13
+ @return map.get(variables.$viewport-borders, $index);
11
14
  }
12
15
 
13
16
 
@@ -16,27 +19,27 @@
16
19
  @mixin breakpoint($point) {
17
20
 
18
21
  @if $point == "xlarge" {
19
- @media screen and (min-width: #{$breakpoint-xlarge}) {
22
+ @media screen and (min-width: #{variables.$breakpoint-xlarge}) {
20
23
  @content;
21
24
  }
22
25
  } @else if $point == "desktop" {
23
- @media screen and (min-width: #{$breakpoint-desktop}) {
26
+ @media screen and (min-width: #{variables.$breakpoint-desktop}) {
24
27
  @content;
25
28
  }
26
29
  } @else if $point == "large" {
27
- @media screen and (max-width: #{$breakpoint-large}) {
30
+ @media screen and (max-width: #{variables.$breakpoint-large}) {
28
31
  @content;
29
32
  }
30
33
  } @else if $point == "medium" {
31
- @media screen and (max-width: #{$breakpoint-medium}) {
34
+ @media screen and (max-width: #{variables.$breakpoint-medium}) {
32
35
  @content;
33
36
  }
34
37
  } @else if $point == "small" {
35
- @media screen and (max-width: #{$breakpoint-small}) {
38
+ @media screen and (max-width: #{variables.$breakpoint-small}) {
36
39
  @content;
37
40
  }
38
41
  } @else if $point == "xsmall" {
39
- @media screen and (max-width: #{$breakpoint-xsmall}) {
42
+ @media screen and (max-width: #{variables.$breakpoint-xsmall}) {
40
43
  @content;
41
44
  }
42
45
  } @else {
@@ -58,15 +61,15 @@
58
61
  /* Hover
59
62
  /* ============================================= */
60
63
  @mixin hover {
61
- body.iris-hover & {
64
+ @media (hover: hover) and (pointer: fine) {
62
65
  &:hover {
63
66
  @content;
64
67
  }
65
68
  }
66
69
  }
67
70
 
68
- @mixin hover-focus() {
69
- body.iris-hover & {
71
+ @mixin hover-focus {
72
+ @media (hover: hover) and (pointer: fine) {
70
73
  &:hover,
71
74
  &:focus {
72
75
  @content;
@@ -74,8 +77,8 @@
74
77
  }
75
78
  }
76
79
 
77
- @mixin hover-focus-active() {
78
- body.iris-hover & {
80
+ @mixin hover-focus-active {
81
+ @media (hover: hover) and (pointer: fine) {
79
82
  &:hover,
80
83
  &:focus,
81
84
  &:active {
@@ -84,8 +87,8 @@
84
87
  }
85
88
  }
86
89
 
87
- @mixin hover-focus-visited() {
88
- body.iris-hover & {
90
+ @mixin hover-focus-visited {
91
+ @media (hover: hover) and (pointer: fine) {
89
92
  &:hover,
90
93
  &:focus,
91
94
  &:visited {
@@ -1,3 +1,6 @@
1
+ @use "../variables";
2
+ @use "mixin-layout";
3
+
1
4
  /*
2
5
  * Created by IRIS Interactive
3
6
  * User : IRIS Interactive
@@ -36,19 +39,19 @@
36
39
  padding-bottom: $padding;
37
40
 
38
41
  @if $padding-medium != 0 {
39
- @include breakpoint(medium) {
42
+ @include mixin-layout.breakpoint(medium) {
40
43
  padding-bottom: $padding-medium;
41
44
  }
42
45
  }
43
46
 
44
47
  @if $padding-small != 0 {
45
- @include breakpoint(small) {
48
+ @include mixin-layout.breakpoint(small) {
46
49
  padding-bottom: $padding-small;
47
50
  }
48
51
  }
49
52
 
50
53
  @if $padding-small != 0 {
51
- @include breakpoint(xsmall) {
54
+ @include mixin-layout.breakpoint(xsmall) {
52
55
  padding-bottom: $padding-xsmall;
53
56
  }
54
57
  }
@@ -141,51 +144,53 @@
141
144
  line-height: 1.4;
142
145
  cursor: pointer;
143
146
  border: none;
144
- font-weight: $button-font-weight;
145
- font-family: $button-font-family;
146
- text-transform: $button-text-transform;
147
- letter-spacing: $button-letter-spacing;
148
- padding: $button-padding-y $button-padding-x;
149
- border-radius: $button-border-radius;
150
- font-size: $button-font-size--rem;
151
- color: $button-color;
152
- background-color: $button-background-color;
153
- background-image: $button-background-image;
154
- background-size: $button-gradient-background-image-size;
155
- background-position: $button-gradient-background-image-position;
156
- border: $button-border;
147
+ font-weight: variables.$button-font-weight;
148
+ font-family: variables.$button-font-family;
149
+ text-transform: variables.$button-text-transform;
150
+ letter-spacing: variables.$button-letter-spacing;
151
+ padding: variables.$button-padding-y variables.$button-padding-x;
152
+ border-radius: variables.$button-border-radius;
153
+ font-size: variables.$button-font-size--rem;
154
+ color: variables.$button-color;
155
+ background-color: variables.$button-background-color;
156
+ background-image: variables.$button-background-image;
157
+ background-size: variables.$button-gradient-background-image-size;
158
+ background-position: variables.$button-gradient-background-image-position;
159
+ border: variables.$button-border;
157
160
  word-break: normal;
158
161
  @include transition;
159
162
 
160
- @include breakpoint(small) {
161
- padding: $button-padding-y-small $button-padding-x-small;
162
- font-size: $button-font-size-small--rem;
163
+ @include mixin-layout.breakpoint(small) {
164
+ padding: variables.$button-padding-y-small variables.$button-padding-x-small;
165
+ font-size: variables.$button-font-size-small--rem;
163
166
  }
164
167
 
165
168
  &:before,
166
169
  &.fi:before,
167
170
  .fi:before {
168
- color: $button-color;
171
+ color: variables.$button-color;
169
172
  @include transition;
170
173
  }
171
174
 
172
- &:visited {
173
- color: $button-color;
174
- background-color: $button-background-color;
175
- background-image: $button-background-image;
176
- background-size: $button-gradient-background-image-size;
177
- background-position: $button-gradient-background-image-position;
178
- border: $button-border;
175
+ &:visited,
176
+ &:focus,
177
+ &:focus-within {
178
+ color: variables.$button-color;
179
+ background-color: variables.$button-background-color;
180
+ background-image: variables.$button-background-image;
181
+ background-size: variables.$button-gradient-background-image-size;
182
+ background-position: variables.$button-gradient-background-image-position;
183
+ border: variables.$button-border;
179
184
  }
180
185
 
181
- @include hover-focus {
182
- color: $button-color-hover;
183
- background-color: $button-background-color-hover;
184
- border: $button-border-hover;
185
- background-position: $button-gradient-background-image-position-hover;
186
+ @include mixin-layout.hover {
187
+ color: variables.$button-color-hover;
188
+ background-color: variables.$button-background-color-hover;
189
+ border: variables.$button-border-hover;
190
+ background-position: variables.$button-gradient-background-image-position-hover;
186
191
 
187
192
  &:before {
188
- color: $button-color-hover;
193
+ color: variables.$button-color-hover;
189
194
  }
190
195
  }
191
196
  }
@@ -198,51 +203,53 @@
198
203
  line-height: 1.4;
199
204
  cursor: pointer;
200
205
  border: none;
201
- font-weight: $secondary-button-font-weight;
202
- font-family: $secondary-button-font-family;
203
- text-transform: $secondary-button-text-transform;
204
- letter-spacing: $secondary-button-letter-spacing;
205
- padding: $secondary-button-padding-y $secondary-button-padding-x;
206
- border-radius: $secondary-button-border-radius;
207
- font-size: $secondary-button-font-size--rem;
208
- color: $secondary-button-color;
209
- background-color: $secondary-button-background-color;
210
- background-image: $secondary-button-background-image;
211
- background-size: $secondary-button-gradient-background-image-size;
212
- background-position: $secondary-button-gradient-background-image-position;
213
- border: $secondary-button-border;
206
+ font-weight: variables.$secondary-button-font-weight;
207
+ font-family: variables.$secondary-button-font-family;
208
+ text-transform: variables.$secondary-button-text-transform;
209
+ letter-spacing: variables.$secondary-button-letter-spacing;
210
+ padding: variables.$secondary-button-padding-y variables.$secondary-button-padding-x;
211
+ border-radius: variables.$secondary-button-border-radius;
212
+ font-size: variables.$secondary-button-font-size--rem;
213
+ color: variables.$secondary-button-color;
214
+ background-color: variables.$secondary-button-background-color;
215
+ background-image: variables.$secondary-button-background-image;
216
+ background-size: variables.$secondary-button-gradient-background-image-size;
217
+ background-position: variables.$secondary-button-gradient-background-image-position;
218
+ border: variables.$secondary-button-border;
214
219
  word-break: normal;
215
220
  @include transition;
216
221
 
217
- @include breakpoint(small) {
218
- padding: $secondary-button-padding-y-small $secondary-button-padding-x-small;
219
- font-size: $secondary-button-font-size-small--rem;
222
+ @include mixin-layout.breakpoint(small) {
223
+ padding: variables.$secondary-button-padding-y-small variables.$secondary-button-padding-x-small;
224
+ font-size: variables.$secondary-button-font-size-small--rem;
220
225
  }
221
226
 
222
227
  &:before,
223
228
  &.fi:before,
224
229
  .fi:before {
225
- color: $secondary-button-color;
230
+ color: variables.$secondary-button-color;
226
231
  @include transition;
227
232
  }
228
233
 
229
- &:visited {
230
- color: $secondary-button-color;
231
- background-color: $secondary-button-background-color;
232
- background-image: $secondary-button-background-image;
233
- background-size: $secondary-button-gradient-background-image-size;
234
- background-position: $secondary-button-gradient-background-image-position;
235
- border: $secondary-button-border;
234
+ &:visited,
235
+ &:focus,
236
+ &:focus-within {
237
+ color: variables.$secondary-button-color;
238
+ background-color: variables.$secondary-button-background-color;
239
+ background-image: variables.$secondary-button-background-image;
240
+ background-size: variables.$secondary-button-gradient-background-image-size;
241
+ background-position: variables.$secondary-button-gradient-background-image-position;
242
+ border: variables.$secondary-button-border;
236
243
  }
237
244
 
238
- @include hover-focus {
239
- color: $secondary-button-color-hover;
240
- background-color: $secondary-button-background-color-hover;
241
- border: $secondary-button-border-hover;
242
- background-position: $secondary-button-gradient-background-image-position-hover;
245
+ @include mixin-layout.hover {
246
+ color: variables.$secondary-button-color-hover;
247
+ background-color: variables.$secondary-button-background-color-hover;
248
+ border: variables.$secondary-button-border-hover;
249
+ background-position: variables.$secondary-button-gradient-background-image-position-hover;
243
250
 
244
251
  &:before {
245
- color: $secondary-button-color-hover;
252
+ color: variables.$secondary-button-color-hover;
246
253
  }
247
254
  }
248
255
  }