diff --git a/dist/vue-silentbox.esm.js b/dist/vue-silentbox.esm.js index 0136e03..ecbc3cb 100644 --- a/dist/vue-silentbox.esm.js +++ b/dist/vue-silentbox.esm.js @@ -369,6 +369,7 @@ var __vue_render__ = function() { : _c("img", { attrs: { src: _vm.overlayItem.src, + alt: _vm.overlayItem.alt, width: "auto", height: "auto" } @@ -467,7 +468,7 @@ __vue_render__._withStripped = true; /* style */ const __vue_inject_styles__ = function (inject) { if (!inject) return - inject("data-v-006fe535_0", { source: ".silentbox-is-opened {\n overflow: hidden;\n}\n#silentbox-overlay {\n display: block;\n height: 100vh;\n left: 0;\n position: fixed;\n top: 0;\n width: 100vw;\n z-index: 999;\n}\n#silentbox-overlay__background {\n background: rgba(0, 0, 0, 0.75);\n backdrop-filter: blur(20px);\n cursor: default;\n display: block;\n height: 100%;\n left: 0;\n position: absolute;\n top: 0;\n width: 100%;\n}\n#silentbox-overlay__content {\n cursor: default;\n display: block;\n height: 100%;\n position: relative;\n width: 100%;\n}\n#silentbox-overlay__embed {\n bottom: 0;\n cursor: default;\n display: block;\n height: 80%;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: -2.5rem;\n width: 75%;\n}\n#silentbox-overlay__embed img,\n#silentbox-overlay__embed iframe {\n background-color: #000;\n bottom: 0;\n box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.45);\n cursor: default;\n display: block;\n left: 0;\n margin: auto;\n max-height: 100%;\n max-width: 100%;\n position: absolute;\n right: 0;\n top: 0;\n}\n#silentbox-overlay__container {\n cursor: default;\n height: 100%;\n margin: 0 0 1.5rem 0;\n position: relative;\n text-align: center;\n width: 100%;\n}\n#silentbox-overlay__description {\n display: block;\n padding-top: 1rem;\n text-align: center;\n color: #fff;\n}\n#silentbox-overlay__close-button {\n background: rgba(0, 0, 0, 0);\n border: none;\n color: #fff;\n cursor: pointer;\n height: 2.5rem;\n position: absolute;\n right: 0;\n top: 0;\n transition: background-color 250ms ease-out;\n width: 2.5rem;\n}\n#silentbox-overlay__close-button:hover, #silentbox-overlay__close-button:focus {\n background-color: rgba(0, 0, 0, 0.5);\n outline: none;\n}\n#silentbox-overlay__close-button .icon {\n color: #fff;\n cursor: pointer;\n height: 1rem;\n left: 0.7rem;\n margin: 50% 50% 0 0;\n position: absolute;\n right: 0px;\n top: -0.5rem;\n transition: 250ms ease;\n width: 1rem;\n}\n#silentbox-overlay__close-button .icon:before, #silentbox-overlay__close-button .icon:after {\n background: #fff;\n content: \"\";\n height: 2px;\n left: 5%;\n position: absolute;\n top: 50%;\n transition: 250ms ease;\n width: 100%;\n}\n#silentbox-overlay__close-button .icon:before {\n transform: rotate(-45deg);\n}\n#silentbox-overlay__close-button .icon:after {\n transform: rotate(45deg);\n}\n#silentbox-overlay__close-button .icon:hover:before, #silentbox-overlay__close-button .icon:hover:after, #silentbox-overlay__close-button .icon:focus:before, #silentbox-overlay__close-button .icon:focus:after {\n background: #58e8d2;\n left: 25%;\n width: 50%;\n}\n#silentbox-overlay__arrow-buttons .arrow {\n border-left: 2px solid #fff;\n border-top: 2px solid #fff;\n cursor: pointer;\n height: 1.5rem;\n position: absolute;\n width: 1.5rem;\n}\n#silentbox-overlay__arrow-buttons .arrow:hover, #silentbox-overlay__arrow-buttons .arrow:focus {\n outline: none;\n border-color: #58e8d2;\n}\n#silentbox-overlay__arrow-buttons .arrow-previous {\n left: 2rem;\n top: 50%;\n transform: rotate(-45deg);\n}\n#silentbox-overlay__arrow-buttons .arrow-previous:hover, #silentbox-overlay__arrow-buttons .arrow-previous:focus {\n animation-duration: 1s;\n animation-iteration-count: infinite;\n animation-name: pulsingPrevious;\n}\n#silentbox-overlay__arrow-buttons .arrow-next {\n right: 2rem;\n top: 50%;\n transform: rotate(135deg);\n}\n#silentbox-overlay__arrow-buttons .arrow-next:hover, #silentbox-overlay__arrow-buttons .arrow-next:focus {\n animation-duration: 1s;\n animation-iteration-count: infinite;\n animation-name: pulsingNext;\n}\n#silentbox-overlay .silentbox-video__frame {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n}\n#silentbox-overlay .silentbox-video__embed {\n outline: none;\n}\n#silentbox-overlay .silentbox-video__embed:active, #silentbox-overlay .silentbox-video__embed:focus, #silentbox-overlay .silentbox-video__embed:hover {\n outline: none;\n}\n@keyframes pulsingNext {\n0% {\n animation-timing-function: ease-in;\n right: 2rem;\n}\n25% {\n animation-timing-function: ease-in;\n right: 1.75rem;\n}\n75% {\n animation-timing-function: ease-in;\n right: 2.25rem;\n}\n100% {\n animation-timing-function: ease-in;\n right: 2rem;\n}\n}\n@keyframes pulsingPrevious {\n0% {\n animation-timing-function: ease-in;\n left: 2rem;\n}\n25% {\n animation-timing-function: ease-in;\n left: 1.75rem;\n}\n75% {\n animation-timing-function: ease-in;\n left: 2.25rem;\n}\n100% {\n animation-timing-function: ease-in;\n left: 2rem;\n}\n}\n\n/*# sourceMappingURL=overlay.vue.map */", map: {"version":3,"sources":["/Users/silencesys/Projects/Silencesys/silentbox-website/src/Silentbox/src/components/overlay.vue","overlay.vue"],"names":[],"mappings":"AAuMA;EACA,gBAAA;ACtMA;ADyMA;EACA,cAAA;EACA,aAAA;EACA,OAAA;EACA,eAAA;EACA,MAAA;EACA,YAAA;EACA,YAAA;ACtMA;ADiLA;EAwBA,+BAAA;EACA,2BAAA;EACA,eAAA;EACA,cAAA;EACA,YAAA;EACA,OAAA;EACA,kBAAA;EACA,MAAA;EACA,WAAA;ACtMA;ADsKA;EAoCA,eAAA;EACA,cAAA;EACA,YAAA;EACA,kBAAA;EACA,WAAA;ACvMA;AD+JA;EA4CA,SAAA;EACA,eAAA;EACA,cAAA;EACA,WAAA;EACA,OAAA;EACA,YAAA;EACA,kBAAA;EACA,QAAA;EACA,YAAA;EACA,UAAA;ACxMA;AD0MA;;EAEA,sBAjDA;EAkDA,SAAA;EACA,0CAAA;EACA,eAAA;EACA,cAAA;EACA,OAAA;EACA,YAAA;EACA,gBAAA;EACA,eAAA;EACA,kBAAA;EACA,QAAA;EACA,MAAA;ACxMA;ADoIA;EAyEA,eAAA;EACA,YAAA;EACA,oBAAA;EACA,kBAAA;EACA,kBAAA;EACA,WAAA;AC1MA;AD4HA;EAkFA,cAAA;EACA,iBAAA;EACA,kBAAA;EACA,WA/EA;AC5HA;ADsHA;EAyFA,4BAAA;EACA,YAAA;EACA,WArFA;EAsFA,eAAA;EACA,cAAA;EACA,kBAAA;EACA,QAAA;EACA,MAAA;EACA,2CAAA;EACA,aAAA;AC5MA;AD6MA;EAEA,oCAAA;EACA,aAAA;AC5MA;AD+MA;EACA,WApGA;EAqGA,eAAA;EACA,YAAA;EACA,YAAA;EACA,mBAAA;EACA,kBAAA;EACA,UAAA;EACA,YAAA;EACA,sBAAA;EACA,WAAA;AC7MA;AD8MA;EAEA,gBAhHA;EAiHA,WAAA;EACA,WAAA;EACA,QAAA;EACA,kBAAA;EACA,QAAA;EACA,sBAAA;EACA,WAAA;AC7MA;AD+MA;EACA,yBAAA;AC7MA;AD+MA;EACA,wBAAA;AC7MA;ADiNA;EAEA,mBAlIA;EAmIA,SAAA;EACA,UAAA;AChNA;ADuNA;EACA,2BAAA;EACA,0BAAA;EACA,eAAA;EACA,cAAA;EACA,kBAAA;EACA,aAAA;ACrNA;ADsNA;EAEA,aAAA;EACA,qBArJA;AChEA;ADwNA;EACA,UAAA;EACA,QAAA;EACA,yBAAA;ACtNA;ADuNA;EAEA,sBAAA;EACA,mCAAA;EACA,+BAAA;ACtNA;ADyNA;EACA,WAAA;EACA,QAAA;EACA,yBAAA;ACvNA;ADwNA;EAEA,sBAAA;EACA,mCAAA;EACA,2BAAA;ACvNA;AD2NA;EACA,aAAA;EACA,uBAAA;EACA,mBAAA;EACA,WAAA;EACA,YAAA;ACzNA;AD2NA;EACA,aAAA;ACzNA;AD0NA;EAGA,aAAA;AC1NA;ADgOA;AACA;IACA,kCAAA;IACA,WAAA;AC7NE;AD+NF;IACA,kCAAA;IACA,cAAA;AC7NE;AD+NF;IACA,kCAAA;IACA,cAAA;AC7NE;AD+NF;IACA,kCAAA;IACA,WAAA;AC7NE;AACF;AD+NA;AACA;IACA,kCAAA;IACA,UAAA;AC7NE;AD+NF;IACA,kCAAA;IACA,aAAA;AC7NE;AD+NF;IACA,kCAAA;IACA,aAAA;AC7NE;AD+NF;IACA,kCAAA;IACA,UAAA;AC7NE;AACF;;AAEA,sCAAsC","file":"overlay.vue","sourcesContent":["\r\n\r\n\r\n\r\n\r\n",".silentbox-is-opened {\n overflow: hidden;\n}\n\n#silentbox-overlay {\n display: block;\n height: 100vh;\n left: 0;\n position: fixed;\n top: 0;\n width: 100vw;\n z-index: 999;\n}\n#silentbox-overlay__background {\n background: rgba(0, 0, 0, 0.75);\n backdrop-filter: blur(20px);\n cursor: default;\n display: block;\n height: 100%;\n left: 0;\n position: absolute;\n top: 0;\n width: 100%;\n}\n#silentbox-overlay__content {\n cursor: default;\n display: block;\n height: 100%;\n position: relative;\n width: 100%;\n}\n#silentbox-overlay__embed {\n bottom: 0;\n cursor: default;\n display: block;\n height: 80%;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: -2.5rem;\n width: 75%;\n}\n#silentbox-overlay__embed img,\n#silentbox-overlay__embed iframe {\n background-color: #000;\n bottom: 0;\n box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.45);\n cursor: default;\n display: block;\n left: 0;\n margin: auto;\n max-height: 100%;\n max-width: 100%;\n position: absolute;\n right: 0;\n top: 0;\n}\n#silentbox-overlay__container {\n cursor: default;\n height: 100%;\n margin: 0 0 1.5rem 0;\n position: relative;\n text-align: center;\n width: 100%;\n}\n#silentbox-overlay__description {\n display: block;\n padding-top: 1rem;\n text-align: center;\n color: #fff;\n}\n#silentbox-overlay__close-button {\n background: rgba(0, 0, 0, 0);\n border: none;\n color: #fff;\n cursor: pointer;\n height: 2.5rem;\n position: absolute;\n right: 0;\n top: 0;\n transition: background-color 250ms ease-out;\n width: 2.5rem;\n}\n#silentbox-overlay__close-button:hover, #silentbox-overlay__close-button:focus {\n background-color: rgba(0, 0, 0, 0.5);\n outline: none;\n}\n#silentbox-overlay__close-button .icon {\n color: #fff;\n cursor: pointer;\n height: 1rem;\n left: 0.7rem;\n margin: 50% 50% 0 0;\n position: absolute;\n right: 0px;\n top: -0.5rem;\n transition: 250ms ease;\n width: 1rem;\n}\n#silentbox-overlay__close-button .icon:before, #silentbox-overlay__close-button .icon:after {\n background: #fff;\n content: \"\";\n height: 2px;\n left: 5%;\n position: absolute;\n top: 50%;\n transition: 250ms ease;\n width: 100%;\n}\n#silentbox-overlay__close-button .icon:before {\n transform: rotate(-45deg);\n}\n#silentbox-overlay__close-button .icon:after {\n transform: rotate(45deg);\n}\n#silentbox-overlay__close-button .icon:hover:before, #silentbox-overlay__close-button .icon:hover:after, #silentbox-overlay__close-button .icon:focus:before, #silentbox-overlay__close-button .icon:focus:after {\n background: #58e8d2;\n left: 25%;\n width: 50%;\n}\n#silentbox-overlay__arrow-buttons .arrow {\n border-left: 2px solid #fff;\n border-top: 2px solid #fff;\n cursor: pointer;\n height: 1.5rem;\n position: absolute;\n width: 1.5rem;\n}\n#silentbox-overlay__arrow-buttons .arrow:hover, #silentbox-overlay__arrow-buttons .arrow:focus {\n outline: none;\n border-color: #58e8d2;\n}\n#silentbox-overlay__arrow-buttons .arrow-previous {\n left: 2rem;\n top: 50%;\n transform: rotate(-45deg);\n}\n#silentbox-overlay__arrow-buttons .arrow-previous:hover, #silentbox-overlay__arrow-buttons .arrow-previous:focus {\n animation-duration: 1s;\n animation-iteration-count: infinite;\n animation-name: pulsingPrevious;\n}\n#silentbox-overlay__arrow-buttons .arrow-next {\n right: 2rem;\n top: 50%;\n transform: rotate(135deg);\n}\n#silentbox-overlay__arrow-buttons .arrow-next:hover, #silentbox-overlay__arrow-buttons .arrow-next:focus {\n animation-duration: 1s;\n animation-iteration-count: infinite;\n animation-name: pulsingNext;\n}\n#silentbox-overlay .silentbox-video__frame {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n}\n#silentbox-overlay .silentbox-video__embed {\n outline: none;\n}\n#silentbox-overlay .silentbox-video__embed:active, #silentbox-overlay .silentbox-video__embed:focus, #silentbox-overlay .silentbox-video__embed:hover {\n outline: none;\n}\n\n@keyframes pulsingNext {\n 0% {\n animation-timing-function: ease-in;\n right: 2rem;\n }\n 25% {\n animation-timing-function: ease-in;\n right: 1.75rem;\n }\n 75% {\n animation-timing-function: ease-in;\n right: 2.25rem;\n }\n 100% {\n animation-timing-function: ease-in;\n right: 2rem;\n }\n}\n@keyframes pulsingPrevious {\n 0% {\n animation-timing-function: ease-in;\n left: 2rem;\n }\n 25% {\n animation-timing-function: ease-in;\n left: 1.75rem;\n }\n 75% {\n animation-timing-function: ease-in;\n left: 2.25rem;\n }\n 100% {\n animation-timing-function: ease-in;\n left: 2rem;\n }\n}\n\n/*# sourceMappingURL=overlay.vue.map */"]}, media: undefined }); + inject("data-v-473fdecd_0", { source: ".silentbox-is-opened {\n overflow: hidden;\n}\n#silentbox-overlay {\n display: block;\n height: 100vh;\n left: 0;\n position: fixed;\n top: 0;\n width: 100vw;\n z-index: 999;\n}\n#silentbox-overlay__background {\n background: rgba(0, 0, 0, 0.75);\n backdrop-filter: blur(20px);\n cursor: default;\n display: block;\n height: 100%;\n left: 0;\n position: absolute;\n top: 0;\n width: 100%;\n}\n#silentbox-overlay__content {\n cursor: default;\n display: block;\n height: 100%;\n position: relative;\n width: 100%;\n}\n#silentbox-overlay__embed {\n bottom: 0;\n cursor: default;\n display: block;\n height: 80%;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: -2.5rem;\n width: 75%;\n}\n#silentbox-overlay__embed img,\n#silentbox-overlay__embed iframe {\n background-color: #000;\n bottom: 0;\n box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.45);\n cursor: default;\n display: block;\n left: 0;\n margin: auto;\n max-height: 100%;\n max-width: 100%;\n position: absolute;\n right: 0;\n top: 0;\n}\n#silentbox-overlay__container {\n cursor: default;\n height: 100%;\n margin: 0 0 1.5rem 0;\n position: relative;\n text-align: center;\n width: 100%;\n}\n#silentbox-overlay__description {\n display: block;\n padding-top: 1rem;\n text-align: center;\n color: #fff;\n}\n#silentbox-overlay__close-button {\n background: rgba(0, 0, 0, 0);\n border: none;\n color: #fff;\n cursor: pointer;\n height: 2.5rem;\n position: absolute;\n right: 0;\n top: 0;\n transition: background-color 250ms ease-out;\n width: 2.5rem;\n}\n#silentbox-overlay__close-button:hover, #silentbox-overlay__close-button:focus {\n background-color: rgba(0, 0, 0, 0.5);\n outline: none;\n}\n#silentbox-overlay__close-button .icon {\n color: #fff;\n cursor: pointer;\n height: 1rem;\n left: 0.7rem;\n margin: 50% 50% 0 0;\n position: absolute;\n right: 0px;\n top: -0.5rem;\n transition: 250ms ease;\n width: 1rem;\n}\n#silentbox-overlay__close-button .icon:before, #silentbox-overlay__close-button .icon:after {\n background: #fff;\n content: \"\";\n height: 2px;\n left: 5%;\n position: absolute;\n top: 50%;\n transition: 250ms ease;\n width: 100%;\n}\n#silentbox-overlay__close-button .icon:before {\n transform: rotate(-45deg);\n}\n#silentbox-overlay__close-button .icon:after {\n transform: rotate(45deg);\n}\n#silentbox-overlay__close-button .icon:hover:before, #silentbox-overlay__close-button .icon:hover:after, #silentbox-overlay__close-button .icon:focus:before, #silentbox-overlay__close-button .icon:focus:after {\n background: #58e8d2;\n left: 25%;\n width: 50%;\n}\n#silentbox-overlay__arrow-buttons .arrow {\n border-left: 2px solid #fff;\n border-top: 2px solid #fff;\n cursor: pointer;\n height: 1.5rem;\n position: absolute;\n width: 1.5rem;\n}\n#silentbox-overlay__arrow-buttons .arrow:hover, #silentbox-overlay__arrow-buttons .arrow:focus {\n outline: none;\n border-color: #58e8d2;\n}\n#silentbox-overlay__arrow-buttons .arrow-previous {\n left: 2rem;\n top: 50%;\n transform: rotate(-45deg);\n}\n#silentbox-overlay__arrow-buttons .arrow-previous:hover, #silentbox-overlay__arrow-buttons .arrow-previous:focus {\n animation-duration: 1s;\n animation-iteration-count: infinite;\n animation-name: pulsingPrevious;\n}\n#silentbox-overlay__arrow-buttons .arrow-next {\n right: 2rem;\n top: 50%;\n transform: rotate(135deg);\n}\n#silentbox-overlay__arrow-buttons .arrow-next:hover, #silentbox-overlay__arrow-buttons .arrow-next:focus {\n animation-duration: 1s;\n animation-iteration-count: infinite;\n animation-name: pulsingNext;\n}\n#silentbox-overlay .silentbox-video__frame {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n}\n#silentbox-overlay .silentbox-video__embed {\n outline: none;\n}\n#silentbox-overlay .silentbox-video__embed:active, #silentbox-overlay .silentbox-video__embed:focus, #silentbox-overlay .silentbox-video__embed:hover {\n outline: none;\n}\n@keyframes pulsingNext {\n0% {\n animation-timing-function: ease-in;\n right: 2rem;\n}\n25% {\n animation-timing-function: ease-in;\n right: 1.75rem;\n}\n75% {\n animation-timing-function: ease-in;\n right: 2.25rem;\n}\n100% {\n animation-timing-function: ease-in;\n right: 2rem;\n}\n}\n@keyframes pulsingPrevious {\n0% {\n animation-timing-function: ease-in;\n left: 2rem;\n}\n25% {\n animation-timing-function: ease-in;\n left: 1.75rem;\n}\n75% {\n animation-timing-function: ease-in;\n left: 2.25rem;\n}\n100% {\n animation-timing-function: ease-in;\n left: 2rem;\n}\n}\n\n/*# sourceMappingURL=overlay.vue.map */", map: {"version":3,"sources":["/Users/silencesys/Projects/Silencesys/silentbox-website/src/Silentbox/src/components/overlay.vue","overlay.vue"],"names":[],"mappings":"AAuMA;EACA,gBAAA;ACtMA;ADyMA;EACA,cAAA;EACA,aAAA;EACA,OAAA;EACA,eAAA;EACA,MAAA;EACA,YAAA;EACA,YAAA;ACtMA;ADiLA;EAwBA,+BAAA;EACA,2BAAA;EACA,eAAA;EACA,cAAA;EACA,YAAA;EACA,OAAA;EACA,kBAAA;EACA,MAAA;EACA,WAAA;ACtMA;ADsKA;EAoCA,eAAA;EACA,cAAA;EACA,YAAA;EACA,kBAAA;EACA,WAAA;ACvMA;AD+JA;EA4CA,SAAA;EACA,eAAA;EACA,cAAA;EACA,WAAA;EACA,OAAA;EACA,YAAA;EACA,kBAAA;EACA,QAAA;EACA,YAAA;EACA,UAAA;ACxMA;AD0MA;;EAEA,sBAjDA;EAkDA,SAAA;EACA,0CAAA;EACA,eAAA;EACA,cAAA;EACA,OAAA;EACA,YAAA;EACA,gBAAA;EACA,eAAA;EACA,kBAAA;EACA,QAAA;EACA,MAAA;ACxMA;ADoIA;EAyEA,eAAA;EACA,YAAA;EACA,oBAAA;EACA,kBAAA;EACA,kBAAA;EACA,WAAA;AC1MA;AD4HA;EAkFA,cAAA;EACA,iBAAA;EACA,kBAAA;EACA,WA/EA;AC5HA;ADsHA;EAyFA,4BAAA;EACA,YAAA;EACA,WArFA;EAsFA,eAAA;EACA,cAAA;EACA,kBAAA;EACA,QAAA;EACA,MAAA;EACA,2CAAA;EACA,aAAA;AC5MA;AD6MA;EAEA,oCAAA;EACA,aAAA;AC5MA;AD+MA;EACA,WApGA;EAqGA,eAAA;EACA,YAAA;EACA,YAAA;EACA,mBAAA;EACA,kBAAA;EACA,UAAA;EACA,YAAA;EACA,sBAAA;EACA,WAAA;AC7MA;AD8MA;EAEA,gBAhHA;EAiHA,WAAA;EACA,WAAA;EACA,QAAA;EACA,kBAAA;EACA,QAAA;EACA,sBAAA;EACA,WAAA;AC7MA;AD+MA;EACA,yBAAA;AC7MA;AD+MA;EACA,wBAAA;AC7MA;ADiNA;EAEA,mBAlIA;EAmIA,SAAA;EACA,UAAA;AChNA;ADuNA;EACA,2BAAA;EACA,0BAAA;EACA,eAAA;EACA,cAAA;EACA,kBAAA;EACA,aAAA;ACrNA;ADsNA;EAEA,aAAA;EACA,qBArJA;AChEA;ADwNA;EACA,UAAA;EACA,QAAA;EACA,yBAAA;ACtNA;ADuNA;EAEA,sBAAA;EACA,mCAAA;EACA,+BAAA;ACtNA;ADyNA;EACA,WAAA;EACA,QAAA;EACA,yBAAA;ACvNA;ADwNA;EAEA,sBAAA;EACA,mCAAA;EACA,2BAAA;ACvNA;AD2NA;EACA,aAAA;EACA,uBAAA;EACA,mBAAA;EACA,WAAA;EACA,YAAA;ACzNA;AD2NA;EACA,aAAA;ACzNA;AD0NA;EAGA,aAAA;AC1NA;ADgOA;AACA;IACA,kCAAA;IACA,WAAA;AC7NE;AD+NF;IACA,kCAAA;IACA,cAAA;AC7NE;AD+NF;IACA,kCAAA;IACA,cAAA;AC7NE;AD+NF;IACA,kCAAA;IACA,WAAA;AC7NE;AACF;AD+NA;AACA;IACA,kCAAA;IACA,UAAA;AC7NE;AD+NF;IACA,kCAAA;IACA,aAAA;AC7NE;AD+NF;IACA,kCAAA;IACA,aAAA;AC7NE;AD+NF;IACA,kCAAA;IACA,UAAA;AC7NE;AACF;;AAEA,sCAAsC","file":"overlay.vue","sourcesContent":["\r\n\r\n\r\n\r\n\r\n",".silentbox-is-opened {\n overflow: hidden;\n}\n\n#silentbox-overlay {\n display: block;\n height: 100vh;\n left: 0;\n position: fixed;\n top: 0;\n width: 100vw;\n z-index: 999;\n}\n#silentbox-overlay__background {\n background: rgba(0, 0, 0, 0.75);\n backdrop-filter: blur(20px);\n cursor: default;\n display: block;\n height: 100%;\n left: 0;\n position: absolute;\n top: 0;\n width: 100%;\n}\n#silentbox-overlay__content {\n cursor: default;\n display: block;\n height: 100%;\n position: relative;\n width: 100%;\n}\n#silentbox-overlay__embed {\n bottom: 0;\n cursor: default;\n display: block;\n height: 80%;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: -2.5rem;\n width: 75%;\n}\n#silentbox-overlay__embed img,\n#silentbox-overlay__embed iframe {\n background-color: #000;\n bottom: 0;\n box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.45);\n cursor: default;\n display: block;\n left: 0;\n margin: auto;\n max-height: 100%;\n max-width: 100%;\n position: absolute;\n right: 0;\n top: 0;\n}\n#silentbox-overlay__container {\n cursor: default;\n height: 100%;\n margin: 0 0 1.5rem 0;\n position: relative;\n text-align: center;\n width: 100%;\n}\n#silentbox-overlay__description {\n display: block;\n padding-top: 1rem;\n text-align: center;\n color: #fff;\n}\n#silentbox-overlay__close-button {\n background: rgba(0, 0, 0, 0);\n border: none;\n color: #fff;\n cursor: pointer;\n height: 2.5rem;\n position: absolute;\n right: 0;\n top: 0;\n transition: background-color 250ms ease-out;\n width: 2.5rem;\n}\n#silentbox-overlay__close-button:hover, #silentbox-overlay__close-button:focus {\n background-color: rgba(0, 0, 0, 0.5);\n outline: none;\n}\n#silentbox-overlay__close-button .icon {\n color: #fff;\n cursor: pointer;\n height: 1rem;\n left: 0.7rem;\n margin: 50% 50% 0 0;\n position: absolute;\n right: 0px;\n top: -0.5rem;\n transition: 250ms ease;\n width: 1rem;\n}\n#silentbox-overlay__close-button .icon:before, #silentbox-overlay__close-button .icon:after {\n background: #fff;\n content: \"\";\n height: 2px;\n left: 5%;\n position: absolute;\n top: 50%;\n transition: 250ms ease;\n width: 100%;\n}\n#silentbox-overlay__close-button .icon:before {\n transform: rotate(-45deg);\n}\n#silentbox-overlay__close-button .icon:after {\n transform: rotate(45deg);\n}\n#silentbox-overlay__close-button .icon:hover:before, #silentbox-overlay__close-button .icon:hover:after, #silentbox-overlay__close-button .icon:focus:before, #silentbox-overlay__close-button .icon:focus:after {\n background: #58e8d2;\n left: 25%;\n width: 50%;\n}\n#silentbox-overlay__arrow-buttons .arrow {\n border-left: 2px solid #fff;\n border-top: 2px solid #fff;\n cursor: pointer;\n height: 1.5rem;\n position: absolute;\n width: 1.5rem;\n}\n#silentbox-overlay__arrow-buttons .arrow:hover, #silentbox-overlay__arrow-buttons .arrow:focus {\n outline: none;\n border-color: #58e8d2;\n}\n#silentbox-overlay__arrow-buttons .arrow-previous {\n left: 2rem;\n top: 50%;\n transform: rotate(-45deg);\n}\n#silentbox-overlay__arrow-buttons .arrow-previous:hover, #silentbox-overlay__arrow-buttons .arrow-previous:focus {\n animation-duration: 1s;\n animation-iteration-count: infinite;\n animation-name: pulsingPrevious;\n}\n#silentbox-overlay__arrow-buttons .arrow-next {\n right: 2rem;\n top: 50%;\n transform: rotate(135deg);\n}\n#silentbox-overlay__arrow-buttons .arrow-next:hover, #silentbox-overlay__arrow-buttons .arrow-next:focus {\n animation-duration: 1s;\n animation-iteration-count: infinite;\n animation-name: pulsingNext;\n}\n#silentbox-overlay .silentbox-video__frame {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n}\n#silentbox-overlay .silentbox-video__embed {\n outline: none;\n}\n#silentbox-overlay .silentbox-video__embed:active, #silentbox-overlay .silentbox-video__embed:focus, #silentbox-overlay .silentbox-video__embed:hover {\n outline: none;\n}\n\n@keyframes pulsingNext {\n 0% {\n animation-timing-function: ease-in;\n right: 2rem;\n }\n 25% {\n animation-timing-function: ease-in;\n right: 1.75rem;\n }\n 75% {\n animation-timing-function: ease-in;\n right: 2.25rem;\n }\n 100% {\n animation-timing-function: ease-in;\n right: 2rem;\n }\n}\n@keyframes pulsingPrevious {\n 0% {\n animation-timing-function: ease-in;\n left: 2rem;\n }\n 25% {\n animation-timing-function: ease-in;\n left: 1.75rem;\n }\n 75% {\n animation-timing-function: ease-in;\n left: 2.25rem;\n }\n 100% {\n animation-timing-function: ease-in;\n left: 2rem;\n }\n}\n\n/*# sourceMappingURL=overlay.vue.map */"]}, media: undefined }); }; /* scoped */ @@ -512,8 +513,8 @@ var script$1 = { return { src: '', alt: '', - width: '200px', - height: 'auto', + thumbnailWidth: '200px', + thumbnailHeight: 'auto', thumbnail: '', autoplay: false, controls: true, @@ -552,8 +553,8 @@ var script$1 = { item: { src: '', alt: '', - width: '200px', - height: 'auto', + thumbnailWidth: '200px', + thumbnailHeight: 'auto', thumbnail: '', autoplay: false, controls: true, @@ -660,8 +661,8 @@ var __vue_render__$1 = function() { attrs: { src: image.thumbnail, alt: image.alt, - width: image.width, - height: image.height + width: image.thumbnailWidth, + height: image.thumbnailHeight } }) ] @@ -690,7 +691,7 @@ __vue_render__$1._withStripped = true; /* style */ const __vue_inject_styles__$1 = function (inject) { if (!inject) return - inject("data-v-26477a4e_0", { source: ".silentbox-item {\n cursor: pointer;\n display: inline-block;\n text-decoration: underline;\n}\n\n/*# sourceMappingURL=gallery.vue.map */", map: {"version":3,"sources":["/Users/silencesys/Projects/Silencesys/silentbox-website/src/Silentbox/src/components/gallery.vue","gallery.vue"],"names":[],"mappings":"AAgKA;EACA,eAAA;EACA,qBAAA;EACA,0BAAA;AC/JA;;AAEA,sCAAsC","file":"gallery.vue","sourcesContent":["\r\n\r\n\r\n\r\n\r\n",".silentbox-item {\n cursor: pointer;\n display: inline-block;\n text-decoration: underline;\n}\n\n/*# sourceMappingURL=gallery.vue.map */"]}, media: undefined }); + inject("data-v-f065e5fe_0", { source: ".silentbox-item {\n cursor: pointer;\n display: inline-block;\n text-decoration: underline;\n}\n\n/*# sourceMappingURL=gallery.vue.map */", map: {"version":3,"sources":["/Users/silencesys/Projects/Silencesys/silentbox-website/src/Silentbox/src/components/gallery.vue","gallery.vue"],"names":[],"mappings":"AAgKA;EACA,eAAA;EACA,qBAAA;EACA,0BAAA;AC/JA;;AAEA,sCAAsC","file":"gallery.vue","sourcesContent":["\r\n\r\n\r\n\r\n\r\n",".silentbox-item {\n cursor: pointer;\n display: inline-block;\n text-decoration: underline;\n}\n\n/*# sourceMappingURL=gallery.vue.map */"]}, media: undefined }); }; /* scoped */ diff --git a/dist/vue-silentbox.min.js b/dist/vue-silentbox.min.js index fbaa85f..6fec90d 100644 --- a/dist/vue-silentbox.min.js +++ b/dist/vue-silentbox.min.js @@ -372,6 +372,7 @@ var VueSilentbox = (function (exports) { : _c("img", { attrs: { src: _vm.overlayItem.src, + alt: _vm.overlayItem.alt, width: "auto", height: "auto" } @@ -470,7 +471,7 @@ var VueSilentbox = (function (exports) { /* style */ const __vue_inject_styles__ = function (inject) { if (!inject) return - inject("data-v-006fe535_0", { source: ".silentbox-is-opened {\n overflow: hidden;\n}\n#silentbox-overlay {\n display: block;\n height: 100vh;\n left: 0;\n position: fixed;\n top: 0;\n width: 100vw;\n z-index: 999;\n}\n#silentbox-overlay__background {\n background: rgba(0, 0, 0, 0.75);\n backdrop-filter: blur(20px);\n cursor: default;\n display: block;\n height: 100%;\n left: 0;\n position: absolute;\n top: 0;\n width: 100%;\n}\n#silentbox-overlay__content {\n cursor: default;\n display: block;\n height: 100%;\n position: relative;\n width: 100%;\n}\n#silentbox-overlay__embed {\n bottom: 0;\n cursor: default;\n display: block;\n height: 80%;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: -2.5rem;\n width: 75%;\n}\n#silentbox-overlay__embed img,\n#silentbox-overlay__embed iframe {\n background-color: #000;\n bottom: 0;\n box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.45);\n cursor: default;\n display: block;\n left: 0;\n margin: auto;\n max-height: 100%;\n max-width: 100%;\n position: absolute;\n right: 0;\n top: 0;\n}\n#silentbox-overlay__container {\n cursor: default;\n height: 100%;\n margin: 0 0 1.5rem 0;\n position: relative;\n text-align: center;\n width: 100%;\n}\n#silentbox-overlay__description {\n display: block;\n padding-top: 1rem;\n text-align: center;\n color: #fff;\n}\n#silentbox-overlay__close-button {\n background: rgba(0, 0, 0, 0);\n border: none;\n color: #fff;\n cursor: pointer;\n height: 2.5rem;\n position: absolute;\n right: 0;\n top: 0;\n transition: background-color 250ms ease-out;\n width: 2.5rem;\n}\n#silentbox-overlay__close-button:hover, #silentbox-overlay__close-button:focus {\n background-color: rgba(0, 0, 0, 0.5);\n outline: none;\n}\n#silentbox-overlay__close-button .icon {\n color: #fff;\n cursor: pointer;\n height: 1rem;\n left: 0.7rem;\n margin: 50% 50% 0 0;\n position: absolute;\n right: 0px;\n top: -0.5rem;\n transition: 250ms ease;\n width: 1rem;\n}\n#silentbox-overlay__close-button .icon:before, #silentbox-overlay__close-button .icon:after {\n background: #fff;\n content: \"\";\n height: 2px;\n left: 5%;\n position: absolute;\n top: 50%;\n transition: 250ms ease;\n width: 100%;\n}\n#silentbox-overlay__close-button .icon:before {\n transform: rotate(-45deg);\n}\n#silentbox-overlay__close-button .icon:after {\n transform: rotate(45deg);\n}\n#silentbox-overlay__close-button .icon:hover:before, #silentbox-overlay__close-button .icon:hover:after, #silentbox-overlay__close-button .icon:focus:before, #silentbox-overlay__close-button .icon:focus:after {\n background: #58e8d2;\n left: 25%;\n width: 50%;\n}\n#silentbox-overlay__arrow-buttons .arrow {\n border-left: 2px solid #fff;\n border-top: 2px solid #fff;\n cursor: pointer;\n height: 1.5rem;\n position: absolute;\n width: 1.5rem;\n}\n#silentbox-overlay__arrow-buttons .arrow:hover, #silentbox-overlay__arrow-buttons .arrow:focus {\n outline: none;\n border-color: #58e8d2;\n}\n#silentbox-overlay__arrow-buttons .arrow-previous {\n left: 2rem;\n top: 50%;\n transform: rotate(-45deg);\n}\n#silentbox-overlay__arrow-buttons .arrow-previous:hover, #silentbox-overlay__arrow-buttons .arrow-previous:focus {\n animation-duration: 1s;\n animation-iteration-count: infinite;\n animation-name: pulsingPrevious;\n}\n#silentbox-overlay__arrow-buttons .arrow-next {\n right: 2rem;\n top: 50%;\n transform: rotate(135deg);\n}\n#silentbox-overlay__arrow-buttons .arrow-next:hover, #silentbox-overlay__arrow-buttons .arrow-next:focus {\n animation-duration: 1s;\n animation-iteration-count: infinite;\n animation-name: pulsingNext;\n}\n#silentbox-overlay .silentbox-video__frame {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n}\n#silentbox-overlay .silentbox-video__embed {\n outline: none;\n}\n#silentbox-overlay .silentbox-video__embed:active, #silentbox-overlay .silentbox-video__embed:focus, #silentbox-overlay .silentbox-video__embed:hover {\n outline: none;\n}\n@keyframes pulsingNext {\n0% {\n animation-timing-function: ease-in;\n right: 2rem;\n}\n25% {\n animation-timing-function: ease-in;\n right: 1.75rem;\n}\n75% {\n animation-timing-function: ease-in;\n right: 2.25rem;\n}\n100% {\n animation-timing-function: ease-in;\n right: 2rem;\n}\n}\n@keyframes pulsingPrevious {\n0% {\n animation-timing-function: ease-in;\n left: 2rem;\n}\n25% {\n animation-timing-function: ease-in;\n left: 1.75rem;\n}\n75% {\n animation-timing-function: ease-in;\n left: 2.25rem;\n}\n100% {\n animation-timing-function: ease-in;\n left: 2rem;\n}\n}\n\n/*# sourceMappingURL=overlay.vue.map */", map: {"version":3,"sources":["/Users/silencesys/Projects/Silencesys/silentbox-website/src/Silentbox/src/components/overlay.vue","overlay.vue"],"names":[],"mappings":"AAuMA;EACA,gBAAA;ACtMA;ADyMA;EACA,cAAA;EACA,aAAA;EACA,OAAA;EACA,eAAA;EACA,MAAA;EACA,YAAA;EACA,YAAA;ACtMA;ADiLA;EAwBA,+BAAA;EACA,2BAAA;EACA,eAAA;EACA,cAAA;EACA,YAAA;EACA,OAAA;EACA,kBAAA;EACA,MAAA;EACA,WAAA;ACtMA;ADsKA;EAoCA,eAAA;EACA,cAAA;EACA,YAAA;EACA,kBAAA;EACA,WAAA;ACvMA;AD+JA;EA4CA,SAAA;EACA,eAAA;EACA,cAAA;EACA,WAAA;EACA,OAAA;EACA,YAAA;EACA,kBAAA;EACA,QAAA;EACA,YAAA;EACA,UAAA;ACxMA;AD0MA;;EAEA,sBAjDA;EAkDA,SAAA;EACA,0CAAA;EACA,eAAA;EACA,cAAA;EACA,OAAA;EACA,YAAA;EACA,gBAAA;EACA,eAAA;EACA,kBAAA;EACA,QAAA;EACA,MAAA;ACxMA;ADoIA;EAyEA,eAAA;EACA,YAAA;EACA,oBAAA;EACA,kBAAA;EACA,kBAAA;EACA,WAAA;AC1MA;AD4HA;EAkFA,cAAA;EACA,iBAAA;EACA,kBAAA;EACA,WA/EA;AC5HA;ADsHA;EAyFA,4BAAA;EACA,YAAA;EACA,WArFA;EAsFA,eAAA;EACA,cAAA;EACA,kBAAA;EACA,QAAA;EACA,MAAA;EACA,2CAAA;EACA,aAAA;AC5MA;AD6MA;EAEA,oCAAA;EACA,aAAA;AC5MA;AD+MA;EACA,WApGA;EAqGA,eAAA;EACA,YAAA;EACA,YAAA;EACA,mBAAA;EACA,kBAAA;EACA,UAAA;EACA,YAAA;EACA,sBAAA;EACA,WAAA;AC7MA;AD8MA;EAEA,gBAhHA;EAiHA,WAAA;EACA,WAAA;EACA,QAAA;EACA,kBAAA;EACA,QAAA;EACA,sBAAA;EACA,WAAA;AC7MA;AD+MA;EACA,yBAAA;AC7MA;AD+MA;EACA,wBAAA;AC7MA;ADiNA;EAEA,mBAlIA;EAmIA,SAAA;EACA,UAAA;AChNA;ADuNA;EACA,2BAAA;EACA,0BAAA;EACA,eAAA;EACA,cAAA;EACA,kBAAA;EACA,aAAA;ACrNA;ADsNA;EAEA,aAAA;EACA,qBArJA;AChEA;ADwNA;EACA,UAAA;EACA,QAAA;EACA,yBAAA;ACtNA;ADuNA;EAEA,sBAAA;EACA,mCAAA;EACA,+BAAA;ACtNA;ADyNA;EACA,WAAA;EACA,QAAA;EACA,yBAAA;ACvNA;ADwNA;EAEA,sBAAA;EACA,mCAAA;EACA,2BAAA;ACvNA;AD2NA;EACA,aAAA;EACA,uBAAA;EACA,mBAAA;EACA,WAAA;EACA,YAAA;ACzNA;AD2NA;EACA,aAAA;ACzNA;AD0NA;EAGA,aAAA;AC1NA;ADgOA;AACA;IACA,kCAAA;IACA,WAAA;AC7NE;AD+NF;IACA,kCAAA;IACA,cAAA;AC7NE;AD+NF;IACA,kCAAA;IACA,cAAA;AC7NE;AD+NF;IACA,kCAAA;IACA,WAAA;AC7NE;AACF;AD+NA;AACA;IACA,kCAAA;IACA,UAAA;AC7NE;AD+NF;IACA,kCAAA;IACA,aAAA;AC7NE;AD+NF;IACA,kCAAA;IACA,aAAA;AC7NE;AD+NF;IACA,kCAAA;IACA,UAAA;AC7NE;AACF;;AAEA,sCAAsC","file":"overlay.vue","sourcesContent":["\r\n\r\n\r\n\r\n\r\n",".silentbox-is-opened {\n overflow: hidden;\n}\n\n#silentbox-overlay {\n display: block;\n height: 100vh;\n left: 0;\n position: fixed;\n top: 0;\n width: 100vw;\n z-index: 999;\n}\n#silentbox-overlay__background {\n background: rgba(0, 0, 0, 0.75);\n backdrop-filter: blur(20px);\n cursor: default;\n display: block;\n height: 100%;\n left: 0;\n position: absolute;\n top: 0;\n width: 100%;\n}\n#silentbox-overlay__content {\n cursor: default;\n display: block;\n height: 100%;\n position: relative;\n width: 100%;\n}\n#silentbox-overlay__embed {\n bottom: 0;\n cursor: default;\n display: block;\n height: 80%;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: -2.5rem;\n width: 75%;\n}\n#silentbox-overlay__embed img,\n#silentbox-overlay__embed iframe {\n background-color: #000;\n bottom: 0;\n box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.45);\n cursor: default;\n display: block;\n left: 0;\n margin: auto;\n max-height: 100%;\n max-width: 100%;\n position: absolute;\n right: 0;\n top: 0;\n}\n#silentbox-overlay__container {\n cursor: default;\n height: 100%;\n margin: 0 0 1.5rem 0;\n position: relative;\n text-align: center;\n width: 100%;\n}\n#silentbox-overlay__description {\n display: block;\n padding-top: 1rem;\n text-align: center;\n color: #fff;\n}\n#silentbox-overlay__close-button {\n background: rgba(0, 0, 0, 0);\n border: none;\n color: #fff;\n cursor: pointer;\n height: 2.5rem;\n position: absolute;\n right: 0;\n top: 0;\n transition: background-color 250ms ease-out;\n width: 2.5rem;\n}\n#silentbox-overlay__close-button:hover, #silentbox-overlay__close-button:focus {\n background-color: rgba(0, 0, 0, 0.5);\n outline: none;\n}\n#silentbox-overlay__close-button .icon {\n color: #fff;\n cursor: pointer;\n height: 1rem;\n left: 0.7rem;\n margin: 50% 50% 0 0;\n position: absolute;\n right: 0px;\n top: -0.5rem;\n transition: 250ms ease;\n width: 1rem;\n}\n#silentbox-overlay__close-button .icon:before, #silentbox-overlay__close-button .icon:after {\n background: #fff;\n content: \"\";\n height: 2px;\n left: 5%;\n position: absolute;\n top: 50%;\n transition: 250ms ease;\n width: 100%;\n}\n#silentbox-overlay__close-button .icon:before {\n transform: rotate(-45deg);\n}\n#silentbox-overlay__close-button .icon:after {\n transform: rotate(45deg);\n}\n#silentbox-overlay__close-button .icon:hover:before, #silentbox-overlay__close-button .icon:hover:after, #silentbox-overlay__close-button .icon:focus:before, #silentbox-overlay__close-button .icon:focus:after {\n background: #58e8d2;\n left: 25%;\n width: 50%;\n}\n#silentbox-overlay__arrow-buttons .arrow {\n border-left: 2px solid #fff;\n border-top: 2px solid #fff;\n cursor: pointer;\n height: 1.5rem;\n position: absolute;\n width: 1.5rem;\n}\n#silentbox-overlay__arrow-buttons .arrow:hover, #silentbox-overlay__arrow-buttons .arrow:focus {\n outline: none;\n border-color: #58e8d2;\n}\n#silentbox-overlay__arrow-buttons .arrow-previous {\n left: 2rem;\n top: 50%;\n transform: rotate(-45deg);\n}\n#silentbox-overlay__arrow-buttons .arrow-previous:hover, #silentbox-overlay__arrow-buttons .arrow-previous:focus {\n animation-duration: 1s;\n animation-iteration-count: infinite;\n animation-name: pulsingPrevious;\n}\n#silentbox-overlay__arrow-buttons .arrow-next {\n right: 2rem;\n top: 50%;\n transform: rotate(135deg);\n}\n#silentbox-overlay__arrow-buttons .arrow-next:hover, #silentbox-overlay__arrow-buttons .arrow-next:focus {\n animation-duration: 1s;\n animation-iteration-count: infinite;\n animation-name: pulsingNext;\n}\n#silentbox-overlay .silentbox-video__frame {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n}\n#silentbox-overlay .silentbox-video__embed {\n outline: none;\n}\n#silentbox-overlay .silentbox-video__embed:active, #silentbox-overlay .silentbox-video__embed:focus, #silentbox-overlay .silentbox-video__embed:hover {\n outline: none;\n}\n\n@keyframes pulsingNext {\n 0% {\n animation-timing-function: ease-in;\n right: 2rem;\n }\n 25% {\n animation-timing-function: ease-in;\n right: 1.75rem;\n }\n 75% {\n animation-timing-function: ease-in;\n right: 2.25rem;\n }\n 100% {\n animation-timing-function: ease-in;\n right: 2rem;\n }\n}\n@keyframes pulsingPrevious {\n 0% {\n animation-timing-function: ease-in;\n left: 2rem;\n }\n 25% {\n animation-timing-function: ease-in;\n left: 1.75rem;\n }\n 75% {\n animation-timing-function: ease-in;\n left: 2.25rem;\n }\n 100% {\n animation-timing-function: ease-in;\n left: 2rem;\n }\n}\n\n/*# sourceMappingURL=overlay.vue.map */"]}, media: undefined }); + inject("data-v-473fdecd_0", { source: ".silentbox-is-opened {\n overflow: hidden;\n}\n#silentbox-overlay {\n display: block;\n height: 100vh;\n left: 0;\n position: fixed;\n top: 0;\n width: 100vw;\n z-index: 999;\n}\n#silentbox-overlay__background {\n background: rgba(0, 0, 0, 0.75);\n backdrop-filter: blur(20px);\n cursor: default;\n display: block;\n height: 100%;\n left: 0;\n position: absolute;\n top: 0;\n width: 100%;\n}\n#silentbox-overlay__content {\n cursor: default;\n display: block;\n height: 100%;\n position: relative;\n width: 100%;\n}\n#silentbox-overlay__embed {\n bottom: 0;\n cursor: default;\n display: block;\n height: 80%;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: -2.5rem;\n width: 75%;\n}\n#silentbox-overlay__embed img,\n#silentbox-overlay__embed iframe {\n background-color: #000;\n bottom: 0;\n box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.45);\n cursor: default;\n display: block;\n left: 0;\n margin: auto;\n max-height: 100%;\n max-width: 100%;\n position: absolute;\n right: 0;\n top: 0;\n}\n#silentbox-overlay__container {\n cursor: default;\n height: 100%;\n margin: 0 0 1.5rem 0;\n position: relative;\n text-align: center;\n width: 100%;\n}\n#silentbox-overlay__description {\n display: block;\n padding-top: 1rem;\n text-align: center;\n color: #fff;\n}\n#silentbox-overlay__close-button {\n background: rgba(0, 0, 0, 0);\n border: none;\n color: #fff;\n cursor: pointer;\n height: 2.5rem;\n position: absolute;\n right: 0;\n top: 0;\n transition: background-color 250ms ease-out;\n width: 2.5rem;\n}\n#silentbox-overlay__close-button:hover, #silentbox-overlay__close-button:focus {\n background-color: rgba(0, 0, 0, 0.5);\n outline: none;\n}\n#silentbox-overlay__close-button .icon {\n color: #fff;\n cursor: pointer;\n height: 1rem;\n left: 0.7rem;\n margin: 50% 50% 0 0;\n position: absolute;\n right: 0px;\n top: -0.5rem;\n transition: 250ms ease;\n width: 1rem;\n}\n#silentbox-overlay__close-button .icon:before, #silentbox-overlay__close-button .icon:after {\n background: #fff;\n content: \"\";\n height: 2px;\n left: 5%;\n position: absolute;\n top: 50%;\n transition: 250ms ease;\n width: 100%;\n}\n#silentbox-overlay__close-button .icon:before {\n transform: rotate(-45deg);\n}\n#silentbox-overlay__close-button .icon:after {\n transform: rotate(45deg);\n}\n#silentbox-overlay__close-button .icon:hover:before, #silentbox-overlay__close-button .icon:hover:after, #silentbox-overlay__close-button .icon:focus:before, #silentbox-overlay__close-button .icon:focus:after {\n background: #58e8d2;\n left: 25%;\n width: 50%;\n}\n#silentbox-overlay__arrow-buttons .arrow {\n border-left: 2px solid #fff;\n border-top: 2px solid #fff;\n cursor: pointer;\n height: 1.5rem;\n position: absolute;\n width: 1.5rem;\n}\n#silentbox-overlay__arrow-buttons .arrow:hover, #silentbox-overlay__arrow-buttons .arrow:focus {\n outline: none;\n border-color: #58e8d2;\n}\n#silentbox-overlay__arrow-buttons .arrow-previous {\n left: 2rem;\n top: 50%;\n transform: rotate(-45deg);\n}\n#silentbox-overlay__arrow-buttons .arrow-previous:hover, #silentbox-overlay__arrow-buttons .arrow-previous:focus {\n animation-duration: 1s;\n animation-iteration-count: infinite;\n animation-name: pulsingPrevious;\n}\n#silentbox-overlay__arrow-buttons .arrow-next {\n right: 2rem;\n top: 50%;\n transform: rotate(135deg);\n}\n#silentbox-overlay__arrow-buttons .arrow-next:hover, #silentbox-overlay__arrow-buttons .arrow-next:focus {\n animation-duration: 1s;\n animation-iteration-count: infinite;\n animation-name: pulsingNext;\n}\n#silentbox-overlay .silentbox-video__frame {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n}\n#silentbox-overlay .silentbox-video__embed {\n outline: none;\n}\n#silentbox-overlay .silentbox-video__embed:active, #silentbox-overlay .silentbox-video__embed:focus, #silentbox-overlay .silentbox-video__embed:hover {\n outline: none;\n}\n@keyframes pulsingNext {\n0% {\n animation-timing-function: ease-in;\n right: 2rem;\n}\n25% {\n animation-timing-function: ease-in;\n right: 1.75rem;\n}\n75% {\n animation-timing-function: ease-in;\n right: 2.25rem;\n}\n100% {\n animation-timing-function: ease-in;\n right: 2rem;\n}\n}\n@keyframes pulsingPrevious {\n0% {\n animation-timing-function: ease-in;\n left: 2rem;\n}\n25% {\n animation-timing-function: ease-in;\n left: 1.75rem;\n}\n75% {\n animation-timing-function: ease-in;\n left: 2.25rem;\n}\n100% {\n animation-timing-function: ease-in;\n left: 2rem;\n}\n}\n\n/*# sourceMappingURL=overlay.vue.map */", map: {"version":3,"sources":["/Users/silencesys/Projects/Silencesys/silentbox-website/src/Silentbox/src/components/overlay.vue","overlay.vue"],"names":[],"mappings":"AAuMA;EACA,gBAAA;ACtMA;ADyMA;EACA,cAAA;EACA,aAAA;EACA,OAAA;EACA,eAAA;EACA,MAAA;EACA,YAAA;EACA,YAAA;ACtMA;ADiLA;EAwBA,+BAAA;EACA,2BAAA;EACA,eAAA;EACA,cAAA;EACA,YAAA;EACA,OAAA;EACA,kBAAA;EACA,MAAA;EACA,WAAA;ACtMA;ADsKA;EAoCA,eAAA;EACA,cAAA;EACA,YAAA;EACA,kBAAA;EACA,WAAA;ACvMA;AD+JA;EA4CA,SAAA;EACA,eAAA;EACA,cAAA;EACA,WAAA;EACA,OAAA;EACA,YAAA;EACA,kBAAA;EACA,QAAA;EACA,YAAA;EACA,UAAA;ACxMA;AD0MA;;EAEA,sBAjDA;EAkDA,SAAA;EACA,0CAAA;EACA,eAAA;EACA,cAAA;EACA,OAAA;EACA,YAAA;EACA,gBAAA;EACA,eAAA;EACA,kBAAA;EACA,QAAA;EACA,MAAA;ACxMA;ADoIA;EAyEA,eAAA;EACA,YAAA;EACA,oBAAA;EACA,kBAAA;EACA,kBAAA;EACA,WAAA;AC1MA;AD4HA;EAkFA,cAAA;EACA,iBAAA;EACA,kBAAA;EACA,WA/EA;AC5HA;ADsHA;EAyFA,4BAAA;EACA,YAAA;EACA,WArFA;EAsFA,eAAA;EACA,cAAA;EACA,kBAAA;EACA,QAAA;EACA,MAAA;EACA,2CAAA;EACA,aAAA;AC5MA;AD6MA;EAEA,oCAAA;EACA,aAAA;AC5MA;AD+MA;EACA,WApGA;EAqGA,eAAA;EACA,YAAA;EACA,YAAA;EACA,mBAAA;EACA,kBAAA;EACA,UAAA;EACA,YAAA;EACA,sBAAA;EACA,WAAA;AC7MA;AD8MA;EAEA,gBAhHA;EAiHA,WAAA;EACA,WAAA;EACA,QAAA;EACA,kBAAA;EACA,QAAA;EACA,sBAAA;EACA,WAAA;AC7MA;AD+MA;EACA,yBAAA;AC7MA;AD+MA;EACA,wBAAA;AC7MA;ADiNA;EAEA,mBAlIA;EAmIA,SAAA;EACA,UAAA;AChNA;ADuNA;EACA,2BAAA;EACA,0BAAA;EACA,eAAA;EACA,cAAA;EACA,kBAAA;EACA,aAAA;ACrNA;ADsNA;EAEA,aAAA;EACA,qBArJA;AChEA;ADwNA;EACA,UAAA;EACA,QAAA;EACA,yBAAA;ACtNA;ADuNA;EAEA,sBAAA;EACA,mCAAA;EACA,+BAAA;ACtNA;ADyNA;EACA,WAAA;EACA,QAAA;EACA,yBAAA;ACvNA;ADwNA;EAEA,sBAAA;EACA,mCAAA;EACA,2BAAA;ACvNA;AD2NA;EACA,aAAA;EACA,uBAAA;EACA,mBAAA;EACA,WAAA;EACA,YAAA;ACzNA;AD2NA;EACA,aAAA;ACzNA;AD0NA;EAGA,aAAA;AC1NA;ADgOA;AACA;IACA,kCAAA;IACA,WAAA;AC7NE;AD+NF;IACA,kCAAA;IACA,cAAA;AC7NE;AD+NF;IACA,kCAAA;IACA,cAAA;AC7NE;AD+NF;IACA,kCAAA;IACA,WAAA;AC7NE;AACF;AD+NA;AACA;IACA,kCAAA;IACA,UAAA;AC7NE;AD+NF;IACA,kCAAA;IACA,aAAA;AC7NE;AD+NF;IACA,kCAAA;IACA,aAAA;AC7NE;AD+NF;IACA,kCAAA;IACA,UAAA;AC7NE;AACF;;AAEA,sCAAsC","file":"overlay.vue","sourcesContent":["\r\n\r\n\r\n\r\n\r\n",".silentbox-is-opened {\n overflow: hidden;\n}\n\n#silentbox-overlay {\n display: block;\n height: 100vh;\n left: 0;\n position: fixed;\n top: 0;\n width: 100vw;\n z-index: 999;\n}\n#silentbox-overlay__background {\n background: rgba(0, 0, 0, 0.75);\n backdrop-filter: blur(20px);\n cursor: default;\n display: block;\n height: 100%;\n left: 0;\n position: absolute;\n top: 0;\n width: 100%;\n}\n#silentbox-overlay__content {\n cursor: default;\n display: block;\n height: 100%;\n position: relative;\n width: 100%;\n}\n#silentbox-overlay__embed {\n bottom: 0;\n cursor: default;\n display: block;\n height: 80%;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: -2.5rem;\n width: 75%;\n}\n#silentbox-overlay__embed img,\n#silentbox-overlay__embed iframe {\n background-color: #000;\n bottom: 0;\n box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.45);\n cursor: default;\n display: block;\n left: 0;\n margin: auto;\n max-height: 100%;\n max-width: 100%;\n position: absolute;\n right: 0;\n top: 0;\n}\n#silentbox-overlay__container {\n cursor: default;\n height: 100%;\n margin: 0 0 1.5rem 0;\n position: relative;\n text-align: center;\n width: 100%;\n}\n#silentbox-overlay__description {\n display: block;\n padding-top: 1rem;\n text-align: center;\n color: #fff;\n}\n#silentbox-overlay__close-button {\n background: rgba(0, 0, 0, 0);\n border: none;\n color: #fff;\n cursor: pointer;\n height: 2.5rem;\n position: absolute;\n right: 0;\n top: 0;\n transition: background-color 250ms ease-out;\n width: 2.5rem;\n}\n#silentbox-overlay__close-button:hover, #silentbox-overlay__close-button:focus {\n background-color: rgba(0, 0, 0, 0.5);\n outline: none;\n}\n#silentbox-overlay__close-button .icon {\n color: #fff;\n cursor: pointer;\n height: 1rem;\n left: 0.7rem;\n margin: 50% 50% 0 0;\n position: absolute;\n right: 0px;\n top: -0.5rem;\n transition: 250ms ease;\n width: 1rem;\n}\n#silentbox-overlay__close-button .icon:before, #silentbox-overlay__close-button .icon:after {\n background: #fff;\n content: \"\";\n height: 2px;\n left: 5%;\n position: absolute;\n top: 50%;\n transition: 250ms ease;\n width: 100%;\n}\n#silentbox-overlay__close-button .icon:before {\n transform: rotate(-45deg);\n}\n#silentbox-overlay__close-button .icon:after {\n transform: rotate(45deg);\n}\n#silentbox-overlay__close-button .icon:hover:before, #silentbox-overlay__close-button .icon:hover:after, #silentbox-overlay__close-button .icon:focus:before, #silentbox-overlay__close-button .icon:focus:after {\n background: #58e8d2;\n left: 25%;\n width: 50%;\n}\n#silentbox-overlay__arrow-buttons .arrow {\n border-left: 2px solid #fff;\n border-top: 2px solid #fff;\n cursor: pointer;\n height: 1.5rem;\n position: absolute;\n width: 1.5rem;\n}\n#silentbox-overlay__arrow-buttons .arrow:hover, #silentbox-overlay__arrow-buttons .arrow:focus {\n outline: none;\n border-color: #58e8d2;\n}\n#silentbox-overlay__arrow-buttons .arrow-previous {\n left: 2rem;\n top: 50%;\n transform: rotate(-45deg);\n}\n#silentbox-overlay__arrow-buttons .arrow-previous:hover, #silentbox-overlay__arrow-buttons .arrow-previous:focus {\n animation-duration: 1s;\n animation-iteration-count: infinite;\n animation-name: pulsingPrevious;\n}\n#silentbox-overlay__arrow-buttons .arrow-next {\n right: 2rem;\n top: 50%;\n transform: rotate(135deg);\n}\n#silentbox-overlay__arrow-buttons .arrow-next:hover, #silentbox-overlay__arrow-buttons .arrow-next:focus {\n animation-duration: 1s;\n animation-iteration-count: infinite;\n animation-name: pulsingNext;\n}\n#silentbox-overlay .silentbox-video__frame {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n}\n#silentbox-overlay .silentbox-video__embed {\n outline: none;\n}\n#silentbox-overlay .silentbox-video__embed:active, #silentbox-overlay .silentbox-video__embed:focus, #silentbox-overlay .silentbox-video__embed:hover {\n outline: none;\n}\n\n@keyframes pulsingNext {\n 0% {\n animation-timing-function: ease-in;\n right: 2rem;\n }\n 25% {\n animation-timing-function: ease-in;\n right: 1.75rem;\n }\n 75% {\n animation-timing-function: ease-in;\n right: 2.25rem;\n }\n 100% {\n animation-timing-function: ease-in;\n right: 2rem;\n }\n}\n@keyframes pulsingPrevious {\n 0% {\n animation-timing-function: ease-in;\n left: 2rem;\n }\n 25% {\n animation-timing-function: ease-in;\n left: 1.75rem;\n }\n 75% {\n animation-timing-function: ease-in;\n left: 2.25rem;\n }\n 100% {\n animation-timing-function: ease-in;\n left: 2rem;\n }\n}\n\n/*# sourceMappingURL=overlay.vue.map */"]}, media: undefined }); }; /* scoped */ @@ -515,8 +516,8 @@ var VueSilentbox = (function (exports) { return { src: '', alt: '', - width: '200px', - height: 'auto', + thumbnailWidth: '200px', + thumbnailHeight: 'auto', thumbnail: '', autoplay: false, controls: true, @@ -555,8 +556,8 @@ var VueSilentbox = (function (exports) { item: { src: '', alt: '', - width: '200px', - height: 'auto', + thumbnailWidth: '200px', + thumbnailHeight: 'auto', thumbnail: '', autoplay: false, controls: true, @@ -663,8 +664,8 @@ var VueSilentbox = (function (exports) { attrs: { src: image.thumbnail, alt: image.alt, - width: image.width, - height: image.height + width: image.thumbnailWidth, + height: image.thumbnailHeight } }) ] @@ -693,7 +694,7 @@ var VueSilentbox = (function (exports) { /* style */ const __vue_inject_styles__$1 = function (inject) { if (!inject) return - inject("data-v-26477a4e_0", { source: ".silentbox-item {\n cursor: pointer;\n display: inline-block;\n text-decoration: underline;\n}\n\n/*# sourceMappingURL=gallery.vue.map */", map: {"version":3,"sources":["/Users/silencesys/Projects/Silencesys/silentbox-website/src/Silentbox/src/components/gallery.vue","gallery.vue"],"names":[],"mappings":"AAgKA;EACA,eAAA;EACA,qBAAA;EACA,0BAAA;AC/JA;;AAEA,sCAAsC","file":"gallery.vue","sourcesContent":["\r\n\r\n\r\n\r\n\r\n",".silentbox-item {\n cursor: pointer;\n display: inline-block;\n text-decoration: underline;\n}\n\n/*# sourceMappingURL=gallery.vue.map */"]}, media: undefined }); + inject("data-v-f065e5fe_0", { source: ".silentbox-item {\n cursor: pointer;\n display: inline-block;\n text-decoration: underline;\n}\n\n/*# sourceMappingURL=gallery.vue.map */", map: {"version":3,"sources":["/Users/silencesys/Projects/Silencesys/silentbox-website/src/Silentbox/src/components/gallery.vue","gallery.vue"],"names":[],"mappings":"AAgKA;EACA,eAAA;EACA,qBAAA;EACA,0BAAA;AC/JA;;AAEA,sCAAsC","file":"gallery.vue","sourcesContent":["\r\n\r\n\r\n\r\n\r\n",".silentbox-item {\n cursor: pointer;\n display: inline-block;\n text-decoration: underline;\n}\n\n/*# sourceMappingURL=gallery.vue.map */"]}, media: undefined }); }; /* scoped */ diff --git a/dist/vue-silentbox.umd.js b/dist/vue-silentbox.umd.js index 1a6d0a0..ff398d4 100644 --- a/dist/vue-silentbox.umd.js +++ b/dist/vue-silentbox.umd.js @@ -375,6 +375,7 @@ : _c("img", { attrs: { src: _vm.overlayItem.src, + alt: _vm.overlayItem.alt, width: "auto", height: "auto" } @@ -473,7 +474,7 @@ /* style */ const __vue_inject_styles__ = function (inject) { if (!inject) return - inject("data-v-006fe535_0", { source: ".silentbox-is-opened {\n overflow: hidden;\n}\n#silentbox-overlay {\n display: block;\n height: 100vh;\n left: 0;\n position: fixed;\n top: 0;\n width: 100vw;\n z-index: 999;\n}\n#silentbox-overlay__background {\n background: rgba(0, 0, 0, 0.75);\n backdrop-filter: blur(20px);\n cursor: default;\n display: block;\n height: 100%;\n left: 0;\n position: absolute;\n top: 0;\n width: 100%;\n}\n#silentbox-overlay__content {\n cursor: default;\n display: block;\n height: 100%;\n position: relative;\n width: 100%;\n}\n#silentbox-overlay__embed {\n bottom: 0;\n cursor: default;\n display: block;\n height: 80%;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: -2.5rem;\n width: 75%;\n}\n#silentbox-overlay__embed img,\n#silentbox-overlay__embed iframe {\n background-color: #000;\n bottom: 0;\n box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.45);\n cursor: default;\n display: block;\n left: 0;\n margin: auto;\n max-height: 100%;\n max-width: 100%;\n position: absolute;\n right: 0;\n top: 0;\n}\n#silentbox-overlay__container {\n cursor: default;\n height: 100%;\n margin: 0 0 1.5rem 0;\n position: relative;\n text-align: center;\n width: 100%;\n}\n#silentbox-overlay__description {\n display: block;\n padding-top: 1rem;\n text-align: center;\n color: #fff;\n}\n#silentbox-overlay__close-button {\n background: rgba(0, 0, 0, 0);\n border: none;\n color: #fff;\n cursor: pointer;\n height: 2.5rem;\n position: absolute;\n right: 0;\n top: 0;\n transition: background-color 250ms ease-out;\n width: 2.5rem;\n}\n#silentbox-overlay__close-button:hover, #silentbox-overlay__close-button:focus {\n background-color: rgba(0, 0, 0, 0.5);\n outline: none;\n}\n#silentbox-overlay__close-button .icon {\n color: #fff;\n cursor: pointer;\n height: 1rem;\n left: 0.7rem;\n margin: 50% 50% 0 0;\n position: absolute;\n right: 0px;\n top: -0.5rem;\n transition: 250ms ease;\n width: 1rem;\n}\n#silentbox-overlay__close-button .icon:before, #silentbox-overlay__close-button .icon:after {\n background: #fff;\n content: \"\";\n height: 2px;\n left: 5%;\n position: absolute;\n top: 50%;\n transition: 250ms ease;\n width: 100%;\n}\n#silentbox-overlay__close-button .icon:before {\n transform: rotate(-45deg);\n}\n#silentbox-overlay__close-button .icon:after {\n transform: rotate(45deg);\n}\n#silentbox-overlay__close-button .icon:hover:before, #silentbox-overlay__close-button .icon:hover:after, #silentbox-overlay__close-button .icon:focus:before, #silentbox-overlay__close-button .icon:focus:after {\n background: #58e8d2;\n left: 25%;\n width: 50%;\n}\n#silentbox-overlay__arrow-buttons .arrow {\n border-left: 2px solid #fff;\n border-top: 2px solid #fff;\n cursor: pointer;\n height: 1.5rem;\n position: absolute;\n width: 1.5rem;\n}\n#silentbox-overlay__arrow-buttons .arrow:hover, #silentbox-overlay__arrow-buttons .arrow:focus {\n outline: none;\n border-color: #58e8d2;\n}\n#silentbox-overlay__arrow-buttons .arrow-previous {\n left: 2rem;\n top: 50%;\n transform: rotate(-45deg);\n}\n#silentbox-overlay__arrow-buttons .arrow-previous:hover, #silentbox-overlay__arrow-buttons .arrow-previous:focus {\n animation-duration: 1s;\n animation-iteration-count: infinite;\n animation-name: pulsingPrevious;\n}\n#silentbox-overlay__arrow-buttons .arrow-next {\n right: 2rem;\n top: 50%;\n transform: rotate(135deg);\n}\n#silentbox-overlay__arrow-buttons .arrow-next:hover, #silentbox-overlay__arrow-buttons .arrow-next:focus {\n animation-duration: 1s;\n animation-iteration-count: infinite;\n animation-name: pulsingNext;\n}\n#silentbox-overlay .silentbox-video__frame {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n}\n#silentbox-overlay .silentbox-video__embed {\n outline: none;\n}\n#silentbox-overlay .silentbox-video__embed:active, #silentbox-overlay .silentbox-video__embed:focus, #silentbox-overlay .silentbox-video__embed:hover {\n outline: none;\n}\n@keyframes pulsingNext {\n0% {\n animation-timing-function: ease-in;\n right: 2rem;\n}\n25% {\n animation-timing-function: ease-in;\n right: 1.75rem;\n}\n75% {\n animation-timing-function: ease-in;\n right: 2.25rem;\n}\n100% {\n animation-timing-function: ease-in;\n right: 2rem;\n}\n}\n@keyframes pulsingPrevious {\n0% {\n animation-timing-function: ease-in;\n left: 2rem;\n}\n25% {\n animation-timing-function: ease-in;\n left: 1.75rem;\n}\n75% {\n animation-timing-function: ease-in;\n left: 2.25rem;\n}\n100% {\n animation-timing-function: ease-in;\n left: 2rem;\n}\n}\n\n/*# sourceMappingURL=overlay.vue.map */", map: {"version":3,"sources":["/Users/silencesys/Projects/Silencesys/silentbox-website/src/Silentbox/src/components/overlay.vue","overlay.vue"],"names":[],"mappings":"AAuMA;EACA,gBAAA;ACtMA;ADyMA;EACA,cAAA;EACA,aAAA;EACA,OAAA;EACA,eAAA;EACA,MAAA;EACA,YAAA;EACA,YAAA;ACtMA;ADiLA;EAwBA,+BAAA;EACA,2BAAA;EACA,eAAA;EACA,cAAA;EACA,YAAA;EACA,OAAA;EACA,kBAAA;EACA,MAAA;EACA,WAAA;ACtMA;ADsKA;EAoCA,eAAA;EACA,cAAA;EACA,YAAA;EACA,kBAAA;EACA,WAAA;ACvMA;AD+JA;EA4CA,SAAA;EACA,eAAA;EACA,cAAA;EACA,WAAA;EACA,OAAA;EACA,YAAA;EACA,kBAAA;EACA,QAAA;EACA,YAAA;EACA,UAAA;ACxMA;AD0MA;;EAEA,sBAjDA;EAkDA,SAAA;EACA,0CAAA;EACA,eAAA;EACA,cAAA;EACA,OAAA;EACA,YAAA;EACA,gBAAA;EACA,eAAA;EACA,kBAAA;EACA,QAAA;EACA,MAAA;ACxMA;ADoIA;EAyEA,eAAA;EACA,YAAA;EACA,oBAAA;EACA,kBAAA;EACA,kBAAA;EACA,WAAA;AC1MA;AD4HA;EAkFA,cAAA;EACA,iBAAA;EACA,kBAAA;EACA,WA/EA;AC5HA;ADsHA;EAyFA,4BAAA;EACA,YAAA;EACA,WArFA;EAsFA,eAAA;EACA,cAAA;EACA,kBAAA;EACA,QAAA;EACA,MAAA;EACA,2CAAA;EACA,aAAA;AC5MA;AD6MA;EAEA,oCAAA;EACA,aAAA;AC5MA;AD+MA;EACA,WApGA;EAqGA,eAAA;EACA,YAAA;EACA,YAAA;EACA,mBAAA;EACA,kBAAA;EACA,UAAA;EACA,YAAA;EACA,sBAAA;EACA,WAAA;AC7MA;AD8MA;EAEA,gBAhHA;EAiHA,WAAA;EACA,WAAA;EACA,QAAA;EACA,kBAAA;EACA,QAAA;EACA,sBAAA;EACA,WAAA;AC7MA;AD+MA;EACA,yBAAA;AC7MA;AD+MA;EACA,wBAAA;AC7MA;ADiNA;EAEA,mBAlIA;EAmIA,SAAA;EACA,UAAA;AChNA;ADuNA;EACA,2BAAA;EACA,0BAAA;EACA,eAAA;EACA,cAAA;EACA,kBAAA;EACA,aAAA;ACrNA;ADsNA;EAEA,aAAA;EACA,qBArJA;AChEA;ADwNA;EACA,UAAA;EACA,QAAA;EACA,yBAAA;ACtNA;ADuNA;EAEA,sBAAA;EACA,mCAAA;EACA,+BAAA;ACtNA;ADyNA;EACA,WAAA;EACA,QAAA;EACA,yBAAA;ACvNA;ADwNA;EAEA,sBAAA;EACA,mCAAA;EACA,2BAAA;ACvNA;AD2NA;EACA,aAAA;EACA,uBAAA;EACA,mBAAA;EACA,WAAA;EACA,YAAA;ACzNA;AD2NA;EACA,aAAA;ACzNA;AD0NA;EAGA,aAAA;AC1NA;ADgOA;AACA;IACA,kCAAA;IACA,WAAA;AC7NE;AD+NF;IACA,kCAAA;IACA,cAAA;AC7NE;AD+NF;IACA,kCAAA;IACA,cAAA;AC7NE;AD+NF;IACA,kCAAA;IACA,WAAA;AC7NE;AACF;AD+NA;AACA;IACA,kCAAA;IACA,UAAA;AC7NE;AD+NF;IACA,kCAAA;IACA,aAAA;AC7NE;AD+NF;IACA,kCAAA;IACA,aAAA;AC7NE;AD+NF;IACA,kCAAA;IACA,UAAA;AC7NE;AACF;;AAEA,sCAAsC","file":"overlay.vue","sourcesContent":["\r\n\r\n\r\n\r\n\r\n",".silentbox-is-opened {\n overflow: hidden;\n}\n\n#silentbox-overlay {\n display: block;\n height: 100vh;\n left: 0;\n position: fixed;\n top: 0;\n width: 100vw;\n z-index: 999;\n}\n#silentbox-overlay__background {\n background: rgba(0, 0, 0, 0.75);\n backdrop-filter: blur(20px);\n cursor: default;\n display: block;\n height: 100%;\n left: 0;\n position: absolute;\n top: 0;\n width: 100%;\n}\n#silentbox-overlay__content {\n cursor: default;\n display: block;\n height: 100%;\n position: relative;\n width: 100%;\n}\n#silentbox-overlay__embed {\n bottom: 0;\n cursor: default;\n display: block;\n height: 80%;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: -2.5rem;\n width: 75%;\n}\n#silentbox-overlay__embed img,\n#silentbox-overlay__embed iframe {\n background-color: #000;\n bottom: 0;\n box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.45);\n cursor: default;\n display: block;\n left: 0;\n margin: auto;\n max-height: 100%;\n max-width: 100%;\n position: absolute;\n right: 0;\n top: 0;\n}\n#silentbox-overlay__container {\n cursor: default;\n height: 100%;\n margin: 0 0 1.5rem 0;\n position: relative;\n text-align: center;\n width: 100%;\n}\n#silentbox-overlay__description {\n display: block;\n padding-top: 1rem;\n text-align: center;\n color: #fff;\n}\n#silentbox-overlay__close-button {\n background: rgba(0, 0, 0, 0);\n border: none;\n color: #fff;\n cursor: pointer;\n height: 2.5rem;\n position: absolute;\n right: 0;\n top: 0;\n transition: background-color 250ms ease-out;\n width: 2.5rem;\n}\n#silentbox-overlay__close-button:hover, #silentbox-overlay__close-button:focus {\n background-color: rgba(0, 0, 0, 0.5);\n outline: none;\n}\n#silentbox-overlay__close-button .icon {\n color: #fff;\n cursor: pointer;\n height: 1rem;\n left: 0.7rem;\n margin: 50% 50% 0 0;\n position: absolute;\n right: 0px;\n top: -0.5rem;\n transition: 250ms ease;\n width: 1rem;\n}\n#silentbox-overlay__close-button .icon:before, #silentbox-overlay__close-button .icon:after {\n background: #fff;\n content: \"\";\n height: 2px;\n left: 5%;\n position: absolute;\n top: 50%;\n transition: 250ms ease;\n width: 100%;\n}\n#silentbox-overlay__close-button .icon:before {\n transform: rotate(-45deg);\n}\n#silentbox-overlay__close-button .icon:after {\n transform: rotate(45deg);\n}\n#silentbox-overlay__close-button .icon:hover:before, #silentbox-overlay__close-button .icon:hover:after, #silentbox-overlay__close-button .icon:focus:before, #silentbox-overlay__close-button .icon:focus:after {\n background: #58e8d2;\n left: 25%;\n width: 50%;\n}\n#silentbox-overlay__arrow-buttons .arrow {\n border-left: 2px solid #fff;\n border-top: 2px solid #fff;\n cursor: pointer;\n height: 1.5rem;\n position: absolute;\n width: 1.5rem;\n}\n#silentbox-overlay__arrow-buttons .arrow:hover, #silentbox-overlay__arrow-buttons .arrow:focus {\n outline: none;\n border-color: #58e8d2;\n}\n#silentbox-overlay__arrow-buttons .arrow-previous {\n left: 2rem;\n top: 50%;\n transform: rotate(-45deg);\n}\n#silentbox-overlay__arrow-buttons .arrow-previous:hover, #silentbox-overlay__arrow-buttons .arrow-previous:focus {\n animation-duration: 1s;\n animation-iteration-count: infinite;\n animation-name: pulsingPrevious;\n}\n#silentbox-overlay__arrow-buttons .arrow-next {\n right: 2rem;\n top: 50%;\n transform: rotate(135deg);\n}\n#silentbox-overlay__arrow-buttons .arrow-next:hover, #silentbox-overlay__arrow-buttons .arrow-next:focus {\n animation-duration: 1s;\n animation-iteration-count: infinite;\n animation-name: pulsingNext;\n}\n#silentbox-overlay .silentbox-video__frame {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n}\n#silentbox-overlay .silentbox-video__embed {\n outline: none;\n}\n#silentbox-overlay .silentbox-video__embed:active, #silentbox-overlay .silentbox-video__embed:focus, #silentbox-overlay .silentbox-video__embed:hover {\n outline: none;\n}\n\n@keyframes pulsingNext {\n 0% {\n animation-timing-function: ease-in;\n right: 2rem;\n }\n 25% {\n animation-timing-function: ease-in;\n right: 1.75rem;\n }\n 75% {\n animation-timing-function: ease-in;\n right: 2.25rem;\n }\n 100% {\n animation-timing-function: ease-in;\n right: 2rem;\n }\n}\n@keyframes pulsingPrevious {\n 0% {\n animation-timing-function: ease-in;\n left: 2rem;\n }\n 25% {\n animation-timing-function: ease-in;\n left: 1.75rem;\n }\n 75% {\n animation-timing-function: ease-in;\n left: 2.25rem;\n }\n 100% {\n animation-timing-function: ease-in;\n left: 2rem;\n }\n}\n\n/*# sourceMappingURL=overlay.vue.map */"]}, media: undefined }); + inject("data-v-473fdecd_0", { source: ".silentbox-is-opened {\n overflow: hidden;\n}\n#silentbox-overlay {\n display: block;\n height: 100vh;\n left: 0;\n position: fixed;\n top: 0;\n width: 100vw;\n z-index: 999;\n}\n#silentbox-overlay__background {\n background: rgba(0, 0, 0, 0.75);\n backdrop-filter: blur(20px);\n cursor: default;\n display: block;\n height: 100%;\n left: 0;\n position: absolute;\n top: 0;\n width: 100%;\n}\n#silentbox-overlay__content {\n cursor: default;\n display: block;\n height: 100%;\n position: relative;\n width: 100%;\n}\n#silentbox-overlay__embed {\n bottom: 0;\n cursor: default;\n display: block;\n height: 80%;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: -2.5rem;\n width: 75%;\n}\n#silentbox-overlay__embed img,\n#silentbox-overlay__embed iframe {\n background-color: #000;\n bottom: 0;\n box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.45);\n cursor: default;\n display: block;\n left: 0;\n margin: auto;\n max-height: 100%;\n max-width: 100%;\n position: absolute;\n right: 0;\n top: 0;\n}\n#silentbox-overlay__container {\n cursor: default;\n height: 100%;\n margin: 0 0 1.5rem 0;\n position: relative;\n text-align: center;\n width: 100%;\n}\n#silentbox-overlay__description {\n display: block;\n padding-top: 1rem;\n text-align: center;\n color: #fff;\n}\n#silentbox-overlay__close-button {\n background: rgba(0, 0, 0, 0);\n border: none;\n color: #fff;\n cursor: pointer;\n height: 2.5rem;\n position: absolute;\n right: 0;\n top: 0;\n transition: background-color 250ms ease-out;\n width: 2.5rem;\n}\n#silentbox-overlay__close-button:hover, #silentbox-overlay__close-button:focus {\n background-color: rgba(0, 0, 0, 0.5);\n outline: none;\n}\n#silentbox-overlay__close-button .icon {\n color: #fff;\n cursor: pointer;\n height: 1rem;\n left: 0.7rem;\n margin: 50% 50% 0 0;\n position: absolute;\n right: 0px;\n top: -0.5rem;\n transition: 250ms ease;\n width: 1rem;\n}\n#silentbox-overlay__close-button .icon:before, #silentbox-overlay__close-button .icon:after {\n background: #fff;\n content: \"\";\n height: 2px;\n left: 5%;\n position: absolute;\n top: 50%;\n transition: 250ms ease;\n width: 100%;\n}\n#silentbox-overlay__close-button .icon:before {\n transform: rotate(-45deg);\n}\n#silentbox-overlay__close-button .icon:after {\n transform: rotate(45deg);\n}\n#silentbox-overlay__close-button .icon:hover:before, #silentbox-overlay__close-button .icon:hover:after, #silentbox-overlay__close-button .icon:focus:before, #silentbox-overlay__close-button .icon:focus:after {\n background: #58e8d2;\n left: 25%;\n width: 50%;\n}\n#silentbox-overlay__arrow-buttons .arrow {\n border-left: 2px solid #fff;\n border-top: 2px solid #fff;\n cursor: pointer;\n height: 1.5rem;\n position: absolute;\n width: 1.5rem;\n}\n#silentbox-overlay__arrow-buttons .arrow:hover, #silentbox-overlay__arrow-buttons .arrow:focus {\n outline: none;\n border-color: #58e8d2;\n}\n#silentbox-overlay__arrow-buttons .arrow-previous {\n left: 2rem;\n top: 50%;\n transform: rotate(-45deg);\n}\n#silentbox-overlay__arrow-buttons .arrow-previous:hover, #silentbox-overlay__arrow-buttons .arrow-previous:focus {\n animation-duration: 1s;\n animation-iteration-count: infinite;\n animation-name: pulsingPrevious;\n}\n#silentbox-overlay__arrow-buttons .arrow-next {\n right: 2rem;\n top: 50%;\n transform: rotate(135deg);\n}\n#silentbox-overlay__arrow-buttons .arrow-next:hover, #silentbox-overlay__arrow-buttons .arrow-next:focus {\n animation-duration: 1s;\n animation-iteration-count: infinite;\n animation-name: pulsingNext;\n}\n#silentbox-overlay .silentbox-video__frame {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n}\n#silentbox-overlay .silentbox-video__embed {\n outline: none;\n}\n#silentbox-overlay .silentbox-video__embed:active, #silentbox-overlay .silentbox-video__embed:focus, #silentbox-overlay .silentbox-video__embed:hover {\n outline: none;\n}\n@keyframes pulsingNext {\n0% {\n animation-timing-function: ease-in;\n right: 2rem;\n}\n25% {\n animation-timing-function: ease-in;\n right: 1.75rem;\n}\n75% {\n animation-timing-function: ease-in;\n right: 2.25rem;\n}\n100% {\n animation-timing-function: ease-in;\n right: 2rem;\n}\n}\n@keyframes pulsingPrevious {\n0% {\n animation-timing-function: ease-in;\n left: 2rem;\n}\n25% {\n animation-timing-function: ease-in;\n left: 1.75rem;\n}\n75% {\n animation-timing-function: ease-in;\n left: 2.25rem;\n}\n100% {\n animation-timing-function: ease-in;\n left: 2rem;\n}\n}\n\n/*# sourceMappingURL=overlay.vue.map */", map: {"version":3,"sources":["/Users/silencesys/Projects/Silencesys/silentbox-website/src/Silentbox/src/components/overlay.vue","overlay.vue"],"names":[],"mappings":"AAuMA;EACA,gBAAA;ACtMA;ADyMA;EACA,cAAA;EACA,aAAA;EACA,OAAA;EACA,eAAA;EACA,MAAA;EACA,YAAA;EACA,YAAA;ACtMA;ADiLA;EAwBA,+BAAA;EACA,2BAAA;EACA,eAAA;EACA,cAAA;EACA,YAAA;EACA,OAAA;EACA,kBAAA;EACA,MAAA;EACA,WAAA;ACtMA;ADsKA;EAoCA,eAAA;EACA,cAAA;EACA,YAAA;EACA,kBAAA;EACA,WAAA;ACvMA;AD+JA;EA4CA,SAAA;EACA,eAAA;EACA,cAAA;EACA,WAAA;EACA,OAAA;EACA,YAAA;EACA,kBAAA;EACA,QAAA;EACA,YAAA;EACA,UAAA;ACxMA;AD0MA;;EAEA,sBAjDA;EAkDA,SAAA;EACA,0CAAA;EACA,eAAA;EACA,cAAA;EACA,OAAA;EACA,YAAA;EACA,gBAAA;EACA,eAAA;EACA,kBAAA;EACA,QAAA;EACA,MAAA;ACxMA;ADoIA;EAyEA,eAAA;EACA,YAAA;EACA,oBAAA;EACA,kBAAA;EACA,kBAAA;EACA,WAAA;AC1MA;AD4HA;EAkFA,cAAA;EACA,iBAAA;EACA,kBAAA;EACA,WA/EA;AC5HA;ADsHA;EAyFA,4BAAA;EACA,YAAA;EACA,WArFA;EAsFA,eAAA;EACA,cAAA;EACA,kBAAA;EACA,QAAA;EACA,MAAA;EACA,2CAAA;EACA,aAAA;AC5MA;AD6MA;EAEA,oCAAA;EACA,aAAA;AC5MA;AD+MA;EACA,WApGA;EAqGA,eAAA;EACA,YAAA;EACA,YAAA;EACA,mBAAA;EACA,kBAAA;EACA,UAAA;EACA,YAAA;EACA,sBAAA;EACA,WAAA;AC7MA;AD8MA;EAEA,gBAhHA;EAiHA,WAAA;EACA,WAAA;EACA,QAAA;EACA,kBAAA;EACA,QAAA;EACA,sBAAA;EACA,WAAA;AC7MA;AD+MA;EACA,yBAAA;AC7MA;AD+MA;EACA,wBAAA;AC7MA;ADiNA;EAEA,mBAlIA;EAmIA,SAAA;EACA,UAAA;AChNA;ADuNA;EACA,2BAAA;EACA,0BAAA;EACA,eAAA;EACA,cAAA;EACA,kBAAA;EACA,aAAA;ACrNA;ADsNA;EAEA,aAAA;EACA,qBArJA;AChEA;ADwNA;EACA,UAAA;EACA,QAAA;EACA,yBAAA;ACtNA;ADuNA;EAEA,sBAAA;EACA,mCAAA;EACA,+BAAA;ACtNA;ADyNA;EACA,WAAA;EACA,QAAA;EACA,yBAAA;ACvNA;ADwNA;EAEA,sBAAA;EACA,mCAAA;EACA,2BAAA;ACvNA;AD2NA;EACA,aAAA;EACA,uBAAA;EACA,mBAAA;EACA,WAAA;EACA,YAAA;ACzNA;AD2NA;EACA,aAAA;ACzNA;AD0NA;EAGA,aAAA;AC1NA;ADgOA;AACA;IACA,kCAAA;IACA,WAAA;AC7NE;AD+NF;IACA,kCAAA;IACA,cAAA;AC7NE;AD+NF;IACA,kCAAA;IACA,cAAA;AC7NE;AD+NF;IACA,kCAAA;IACA,WAAA;AC7NE;AACF;AD+NA;AACA;IACA,kCAAA;IACA,UAAA;AC7NE;AD+NF;IACA,kCAAA;IACA,aAAA;AC7NE;AD+NF;IACA,kCAAA;IACA,aAAA;AC7NE;AD+NF;IACA,kCAAA;IACA,UAAA;AC7NE;AACF;;AAEA,sCAAsC","file":"overlay.vue","sourcesContent":["\r\n\r\n\r\n\r\n\r\n",".silentbox-is-opened {\n overflow: hidden;\n}\n\n#silentbox-overlay {\n display: block;\n height: 100vh;\n left: 0;\n position: fixed;\n top: 0;\n width: 100vw;\n z-index: 999;\n}\n#silentbox-overlay__background {\n background: rgba(0, 0, 0, 0.75);\n backdrop-filter: blur(20px);\n cursor: default;\n display: block;\n height: 100%;\n left: 0;\n position: absolute;\n top: 0;\n width: 100%;\n}\n#silentbox-overlay__content {\n cursor: default;\n display: block;\n height: 100%;\n position: relative;\n width: 100%;\n}\n#silentbox-overlay__embed {\n bottom: 0;\n cursor: default;\n display: block;\n height: 80%;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: -2.5rem;\n width: 75%;\n}\n#silentbox-overlay__embed img,\n#silentbox-overlay__embed iframe {\n background-color: #000;\n bottom: 0;\n box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.45);\n cursor: default;\n display: block;\n left: 0;\n margin: auto;\n max-height: 100%;\n max-width: 100%;\n position: absolute;\n right: 0;\n top: 0;\n}\n#silentbox-overlay__container {\n cursor: default;\n height: 100%;\n margin: 0 0 1.5rem 0;\n position: relative;\n text-align: center;\n width: 100%;\n}\n#silentbox-overlay__description {\n display: block;\n padding-top: 1rem;\n text-align: center;\n color: #fff;\n}\n#silentbox-overlay__close-button {\n background: rgba(0, 0, 0, 0);\n border: none;\n color: #fff;\n cursor: pointer;\n height: 2.5rem;\n position: absolute;\n right: 0;\n top: 0;\n transition: background-color 250ms ease-out;\n width: 2.5rem;\n}\n#silentbox-overlay__close-button:hover, #silentbox-overlay__close-button:focus {\n background-color: rgba(0, 0, 0, 0.5);\n outline: none;\n}\n#silentbox-overlay__close-button .icon {\n color: #fff;\n cursor: pointer;\n height: 1rem;\n left: 0.7rem;\n margin: 50% 50% 0 0;\n position: absolute;\n right: 0px;\n top: -0.5rem;\n transition: 250ms ease;\n width: 1rem;\n}\n#silentbox-overlay__close-button .icon:before, #silentbox-overlay__close-button .icon:after {\n background: #fff;\n content: \"\";\n height: 2px;\n left: 5%;\n position: absolute;\n top: 50%;\n transition: 250ms ease;\n width: 100%;\n}\n#silentbox-overlay__close-button .icon:before {\n transform: rotate(-45deg);\n}\n#silentbox-overlay__close-button .icon:after {\n transform: rotate(45deg);\n}\n#silentbox-overlay__close-button .icon:hover:before, #silentbox-overlay__close-button .icon:hover:after, #silentbox-overlay__close-button .icon:focus:before, #silentbox-overlay__close-button .icon:focus:after {\n background: #58e8d2;\n left: 25%;\n width: 50%;\n}\n#silentbox-overlay__arrow-buttons .arrow {\n border-left: 2px solid #fff;\n border-top: 2px solid #fff;\n cursor: pointer;\n height: 1.5rem;\n position: absolute;\n width: 1.5rem;\n}\n#silentbox-overlay__arrow-buttons .arrow:hover, #silentbox-overlay__arrow-buttons .arrow:focus {\n outline: none;\n border-color: #58e8d2;\n}\n#silentbox-overlay__arrow-buttons .arrow-previous {\n left: 2rem;\n top: 50%;\n transform: rotate(-45deg);\n}\n#silentbox-overlay__arrow-buttons .arrow-previous:hover, #silentbox-overlay__arrow-buttons .arrow-previous:focus {\n animation-duration: 1s;\n animation-iteration-count: infinite;\n animation-name: pulsingPrevious;\n}\n#silentbox-overlay__arrow-buttons .arrow-next {\n right: 2rem;\n top: 50%;\n transform: rotate(135deg);\n}\n#silentbox-overlay__arrow-buttons .arrow-next:hover, #silentbox-overlay__arrow-buttons .arrow-next:focus {\n animation-duration: 1s;\n animation-iteration-count: infinite;\n animation-name: pulsingNext;\n}\n#silentbox-overlay .silentbox-video__frame {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n}\n#silentbox-overlay .silentbox-video__embed {\n outline: none;\n}\n#silentbox-overlay .silentbox-video__embed:active, #silentbox-overlay .silentbox-video__embed:focus, #silentbox-overlay .silentbox-video__embed:hover {\n outline: none;\n}\n\n@keyframes pulsingNext {\n 0% {\n animation-timing-function: ease-in;\n right: 2rem;\n }\n 25% {\n animation-timing-function: ease-in;\n right: 1.75rem;\n }\n 75% {\n animation-timing-function: ease-in;\n right: 2.25rem;\n }\n 100% {\n animation-timing-function: ease-in;\n right: 2rem;\n }\n}\n@keyframes pulsingPrevious {\n 0% {\n animation-timing-function: ease-in;\n left: 2rem;\n }\n 25% {\n animation-timing-function: ease-in;\n left: 1.75rem;\n }\n 75% {\n animation-timing-function: ease-in;\n left: 2.25rem;\n }\n 100% {\n animation-timing-function: ease-in;\n left: 2rem;\n }\n}\n\n/*# sourceMappingURL=overlay.vue.map */"]}, media: undefined }); }; /* scoped */ @@ -518,8 +519,8 @@ return { src: '', alt: '', - width: '200px', - height: 'auto', + thumbnailWidth: '200px', + thumbnailHeight: 'auto', thumbnail: '', autoplay: false, controls: true, @@ -558,8 +559,8 @@ item: { src: '', alt: '', - width: '200px', - height: 'auto', + thumbnailWidth: '200px', + thumbnailHeight: 'auto', thumbnail: '', autoplay: false, controls: true, @@ -666,8 +667,8 @@ attrs: { src: image.thumbnail, alt: image.alt, - width: image.width, - height: image.height + width: image.thumbnailWidth, + height: image.thumbnailHeight } }) ] @@ -696,7 +697,7 @@ /* style */ const __vue_inject_styles__$1 = function (inject) { if (!inject) return - inject("data-v-26477a4e_0", { source: ".silentbox-item {\n cursor: pointer;\n display: inline-block;\n text-decoration: underline;\n}\n\n/*# sourceMappingURL=gallery.vue.map */", map: {"version":3,"sources":["/Users/silencesys/Projects/Silencesys/silentbox-website/src/Silentbox/src/components/gallery.vue","gallery.vue"],"names":[],"mappings":"AAgKA;EACA,eAAA;EACA,qBAAA;EACA,0BAAA;AC/JA;;AAEA,sCAAsC","file":"gallery.vue","sourcesContent":["\r\n\r\n\r\n\r\n\r\n",".silentbox-item {\n cursor: pointer;\n display: inline-block;\n text-decoration: underline;\n}\n\n/*# sourceMappingURL=gallery.vue.map */"]}, media: undefined }); + inject("data-v-f065e5fe_0", { source: ".silentbox-item {\n cursor: pointer;\n display: inline-block;\n text-decoration: underline;\n}\n\n/*# sourceMappingURL=gallery.vue.map */", map: {"version":3,"sources":["/Users/silencesys/Projects/Silencesys/silentbox-website/src/Silentbox/src/components/gallery.vue","gallery.vue"],"names":[],"mappings":"AAgKA;EACA,eAAA;EACA,qBAAA;EACA,0BAAA;AC/JA;;AAEA,sCAAsC","file":"gallery.vue","sourcesContent":["\r\n\r\n\r\n\r\n\r\n",".silentbox-item {\n cursor: pointer;\n display: inline-block;\n text-decoration: underline;\n}\n\n/*# sourceMappingURL=gallery.vue.map */"]}, media: undefined }); }; /* scoped */ diff --git a/tests/mixins/videoUrlDecoder.test.js b/tests/mixins/videoUrlDecoder.test.js new file mode 100644 index 0000000..630c483 --- /dev/null +++ b/tests/mixins/videoUrlDecoder.test.js @@ -0,0 +1,14 @@ +import videoUrlDecoder from './../../src/mixins/videoUrlDecoder' + +describe('mixins/videoUrlDecoder', () => { + describe('methods:getYoutubeVideoId', () => { + test('it should return YouTube video ID', () => { + const mixin = videoUrlDecoder.methods.getYoutubeVideoId('https://www.youtube.com/watch?v=HSsqzzuGTPo') + expect(mixin).toEqual('HSsqzzuGTPo') + }) + test('it should return Vimeo video ID', () => { + const mixin = videoUrlDecoder.methods.getVimeoVideoId('https://vimeo.com/336812660') + expect(mixin).toEqual('336812660') + }) + }) +})