UNPKG

@ecodev/natural-gallery-js

Version:

A lazy load, infinite scroll, natural and masonry layout gallery

7 lines (6 loc) 10.8 kB
.natural-gallery-js .root{transform:scale(1) translateY(0);transform-origin:top center;opacity:1}.natural-gallery-js .root:is(a){border:none}.natural-gallery-js .root,.natural-gallery-js .root .figure,.natural-gallery-js .root img{border-radius:var(--ngjs-figure-radius, 8px);overflow:hidden}.natural-gallery-js .root,.natural-gallery-js .root .figure{left:0;position:relative;display:flex;flex-direction:column;float:left;margin:0;transition:1s background-color;border:none;background:none}.natural-gallery-js .root:focus-within .title.hover,.natural-gallery-js .root:focus-within .select-btn,.natural-gallery-js .root:focus .title.hover,.natural-gallery-js .root:focus .select-btn,.natural-gallery-js .root:hover .title.hover,.natural-gallery-js .root:hover .select-btn{transform:translateY(0)}.natural-gallery-js .root:focus-visible,.natural-gallery-js .root *:focus-visible{outline:var(--ngjs-focus-outline, 1px solid orange)}.natural-gallery-js .root.zoomable,.natural-gallery-js .root .zoomable{cursor:zoom-in}.natural-gallery-js .root.activable,.natural-gallery-js .root .activable{cursor:pointer}.natural-gallery-js .root.loaded .image{opacity:1}.natural-gallery-js .root .image.zoomable:hover,.natural-gallery-js .root .image.zoomable:focus,.natural-gallery-js .root.zoomable:focus .image,.natural-gallery-js .root.zoomable:hover .image{transform:rotate(1deg) scale(1.2)}.natural-gallery-js .root .image{display:block;position:relative;margin:0;width:100%;height:100%;z-index:100;opacity:0;transition:1s ease-out all;min-height:0}.natural-gallery-js .root .select-btn:focus,.natural-gallery-js .root.selected .select-btn{transform:translateY(0);top:0;left:0}.natural-gallery-js .root .select-btn{position:absolute;z-index:991;top:0;left:0;padding:10px;width:36px;height:36px;transition:.2s ease all;transform:translateY(calc(-100% - 15px));color:#ffffffe6;fill:currentColor;cursor:pointer;background:#0009;border-top-left-radius:var(--ngjs-figure-radius, 8px);border-bottom-right-radius:5px;border:none}.natural-gallery-js .root .select-btn .marker{position:relative;width:18px;height:18px;border-width:2px;border-style:solid;border-color:var(--ngjs-marker-border-color, currentColor);box-sizing:border-box;border-radius:2px}.natural-gallery-js .root .select-btn .marker:before,.natural-gallery-js .root .select-btn .marker:after{content:" ";position:absolute;display:block;background:var(--ngjs-marker-check-color, transparent);width:2px}.natural-gallery-js .root .select-btn .marker:before{left:5px;top:5px;height:7px;transform:rotate(-45deg);transform-origin:0 100%}.natural-gallery-js .root .select-btn .marker:after{left:4px;top:0;height:11px;transform:rotate(45deg);transform-origin:100% 100%}.natural-gallery-js .root.selected .select-btn{color:var(--ngjs-selected-marker-color, orange)}.natural-gallery-js .root.selected .select-btn .marker{background:currentColor}.natural-gallery-js .root.selected .select-btn .marker:before,.natural-gallery-js .root.selected .select-btn .marker:after{background:var(--ngjs-selected-marker-check, black)}.natural-gallery-js .root .title{position:absolute;bottom:0;left:0;right:0;z-index:1100;text-align:center;color:#fff;font-size:14px;line-height:1.4em;font-weight:400;transition:.2s ease all;overflow:hidden;white-space:normal}.natural-gallery-js .root .title,.natural-gallery-js .root .title button,.natural-gallery-js .root .title a{padding:8px}.natural-gallery-js .root .title:not(.link),.natural-gallery-js .root .title.link button,.natural-gallery-js .root .title.link a{background:var(--ngjs-link-bg, rgba(0, 0, 0, .7));color:var(--ngjs-link-color, white)}.natural-gallery-js .root .title:not(.link){border-radius:0 0 var(--ngjs-figure-radius, 8px) var(--ngjs-figure-radius, 8px)}.natural-gallery-js .root .title.link button,.natural-gallery-js .root .title.link a{display:block;box-shadow:inset 0 1px 1px #ffffff40,0 2px 5px #00000080;border-radius:var(--ngjs-link-radius, 4px);border:none;text-decoration:none;cursor:pointer}.natural-gallery-js .root .title.link button:hover,.natural-gallery-js .root .title.link a:hover{background:var(--ngjs-link-hover-bg, rgb(0, 0, 0));color:var(--ngjs-link-hover-color, white)}.natural-gallery-js .root .title.hover{transform:translateY(calc(100% + 12px))}.pswp{z-index:9999999}.pswp .pswp__caption__center{text-align:center}.natural-gallery-js{position:relative}.natural-gallery-js *,.natural-gallery-js *:after,.natural-gallery-js *:before{box-sizing:border-box;margin:0;padding:0;font-family:inherit;font-size:inherit;line-height:inherit}.natural-gallery-js iframe{position:absolute;width:100%;height:0;top:0;left:0;background-color:transparent;border:0}.natural-gallery-js.scrolling,.natural-gallery-js.scrolling *{pointer-events:none!important}.natural-gallery-js .column{float:left}.natural-gallery-js.format-square .natural-gallery-body,.natural-gallery-js.format-natural .natural-gallery-body{display:flex;flex-wrap:wrap;justify-content:space-between}.natural-gallery-js.format-masonry .natural-gallery-body{display:flex;align-items:flex-start;justify-content:space-between}.natural-gallery-js.format-masonry .natural-gallery-body .column{display:flex;flex-direction:column}.natural-gallery-js .natural-gallery-body{padding:0;margin:0}.natural-gallery-js .natural-gallery-body .figure{background-color:var(--ngjs-figure-bg, rgba(0, 137, 224, .1))}.natural-gallery-js .natural-gallery-body.resizing .figure,.natural-gallery-js .natural-gallery-body.resizing .column{transition:none;opacity:0}.natural-gallery-js .natural-gallery-next{display:block;margin:10px auto;text-align:center;height:50px;padding-block:10px;background:none;border:none;width:100%;cursor:pointer;border-radius:var(--ngjs-figure-radius, 8px)}.natural-gallery-js .natural-gallery-next svg{cursor:pointer;font-size:16px;height:30px;color:var(--ngjs-next-color, rgb(0, 137, 224));fill:currentColor}.natural-gallery-js .natural-gallery-next:hover{background-color:var(--ngjs-next-hover-bg, rgba(0, 0, 0, .2))}.natural-gallery-js .natural-gallery-next:after{content:"";display:block;clear:both}.pswp{--pswp-bg: #000;--pswp-placeholder-bg: #222;--pswp-root-z-index: 100000;--pswp-preloader-color: rgba(79, 79, 79, .4);--pswp-preloader-color-secondary: rgba(255, 255, 255, .9);--pswp-icon-color: #fff;--pswp-icon-color-secondary: #4f4f4f;--pswp-icon-stroke-color: #4f4f4f;--pswp-icon-stroke-width: 2px;--pswp-error-text-color: var(--pswp-icon-color)}.pswp{position:fixed;top:0;left:0;width:100%;height:100%;z-index:var(--pswp-root-z-index);display:none;touch-action:none;outline:0;opacity:.003;contain:layout style size;-webkit-tap-highlight-color:rgba(0,0,0,0)}.pswp:focus{outline:0}.pswp *{box-sizing:border-box}.pswp img{max-width:none}.pswp--open{display:block}.pswp,.pswp__bg{transform:translateZ(0);will-change:opacity}.pswp__bg{opacity:.005;background:var(--pswp-bg)}.pswp,.pswp__scroll-wrap{overflow:hidden}.pswp__scroll-wrap,.pswp__bg,.pswp__container,.pswp__item,.pswp__content,.pswp__img,.pswp__zoom-wrap{position:absolute;top:0;left:0;width:100%;height:100%}.pswp__img,.pswp__zoom-wrap{width:auto;height:auto}.pswp--click-to-zoom.pswp--zoom-allowed .pswp__img{cursor:-webkit-zoom-in;cursor:-moz-zoom-in;cursor:zoom-in}.pswp--click-to-zoom.pswp--zoomed-in .pswp__img{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.pswp--click-to-zoom.pswp--zoomed-in .pswp__img:active{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img,.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img:active,.pswp__img{cursor:-webkit-zoom-out;cursor:-moz-zoom-out;cursor:zoom-out}.pswp__container,.pswp__img,.pswp__button,.pswp__counter{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.pswp__item{z-index:1;overflow:hidden}.pswp__hidden{display:none!important}.pswp__content{pointer-events:none}.pswp__content>*{pointer-events:auto}.pswp__error-msg-container{display:grid}.pswp__error-msg{margin:auto;font-size:1em;line-height:1;color:var(--pswp-error-text-color)}.pswp .pswp__hide-on-close{opacity:.005;will-change:opacity;transition:opacity var(--pswp-transition-duration) cubic-bezier(.4,0,.22,1);z-index:10;pointer-events:none}.pswp--ui-visible .pswp__hide-on-close{opacity:1;pointer-events:auto}.pswp__button{position:relative;display:block;width:50px;height:60px;padding:0;margin:0;overflow:hidden;cursor:pointer;background:none;border:0;box-shadow:none;opacity:.85;-webkit-appearance:none;-webkit-touch-callout:none}.pswp__button:hover,.pswp__button:active,.pswp__button:focus{transition:none;padding:0;background:none;border:0;box-shadow:none;opacity:1}.pswp__button:disabled{opacity:.3;cursor:auto}.pswp__icn{fill:var(--pswp-icon-color);color:var(--pswp-icon-color-secondary)}.pswp__icn{position:absolute;top:14px;left:9px;width:32px;height:32px;overflow:hidden;pointer-events:none}.pswp__icn-shadow{stroke:var(--pswp-icon-stroke-color);stroke-width:var(--pswp-icon-stroke-width);fill:none}.pswp__icn:focus{outline:0}div.pswp__img--placeholder,.pswp__img--with-bg{background:var(--pswp-placeholder-bg)}.pswp__top-bar{position:absolute;left:0;top:0;width:100%;height:60px;display:flex;flex-direction:row;justify-content:flex-end;z-index:10;pointer-events:none!important}.pswp__top-bar>*{pointer-events:auto;will-change:opacity}.pswp__button--close{margin-right:6px}.pswp__button--arrow{position:absolute;width:75px;height:100px;top:50%;margin-top:-50px}.pswp__button--arrow:disabled{display:none;cursor:default}.pswp__button--arrow .pswp__icn{top:50%;margin-top:-30px;width:60px;height:60px;background:none;border-radius:0}.pswp--one-slide .pswp__button--arrow{display:none}.pswp--touch .pswp__button--arrow{visibility:hidden}.pswp--has_mouse .pswp__button--arrow{visibility:visible}.pswp__button--arrow--prev{right:auto;left:0}.pswp__button--arrow--next{right:0}.pswp__button--arrow--next .pswp__icn{left:auto;right:14px;transform:scaleX(-1)}.pswp__button--zoom{display:none}.pswp--zoom-allowed .pswp__button--zoom{display:block}.pswp--zoomed-in .pswp__zoom-icn-bar-v{display:none}.pswp__preloader{position:relative;overflow:hidden;width:50px;height:60px;margin-right:auto}.pswp__preloader .pswp__icn{opacity:0;transition:opacity .2s linear;animation:pswp-clockwise .6s linear infinite}.pswp__preloader--active .pswp__icn{opacity:.85}@keyframes pswp-clockwise{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.pswp__counter{height:30px;margin-top:15px;margin-inline-start:20px;font-size:14px;line-height:30px;color:var(--pswp-icon-color);text-shadow:1px 1px 3px var(--pswp-icon-color-secondary);opacity:.85}.pswp--one-slide .pswp__counter{display:none} /*! Bundled license information: photoswipe/dist/photoswipe.css: (*! PhotoSwipe main CSS by Dmytro Semenov | photoswipe.com *) */ /*# sourceMappingURL=natural-gallery.css.map */