UNPKG

@randstad-design/orbit-multitheme

Version:

multitheme Front-end code based on Randstad Human Forward components

538 lines (478 loc) 13.6 kB
/*! PhotoSwipe main CSS by Dmitry Semenov | photoswipe.com | MIT license */ /* Styles for basic PhotoSwipe functionality (sliding area, open/close transitions) */ /* pswp = photoswipe */ .pswp { display: none; position: absolute; width: 100%; height: 100%; left: 0; top: 0; overflow: hidden; -ms-touch-action: none; touch-action: none; z-index: 1500; -webkit-text-size-adjust: 100%; /* create separate layer, to avoid paint on window.onscroll in webkit/blink */ -webkit-backface-visibility: hidden; outline: none; } .pswp * { box-sizing: border-box; } .pswp img { max-width: none; } /* style is added when JS option showHideOpacity is set to true */ .pswp--animate_opacity { /* 0.001, because opacity:0 doesn't trigger Paint action, which causes lag at start of transition */ opacity: 0.001; will-change: opacity; /* for open/close transition */ -webkit-transition: opacity 300ms cubic-bezier(0.4, 0, 0.22, 1); transition: opacity 300ms cubic-bezier(0.4, 0, 0.22, 1); } .pswp--open { display: block; } .pswp--zoom-allowed .pswp__img { /* autoprefixer: off */ cursor: -webkit-zoom-in; cursor: -moz-zoom-in; cursor: zoom-in; } .pswp--zoomed-in .pswp__img { /* autoprefixer: off */ cursor: -webkit-grab; cursor: -moz-grab; cursor: grab; } .pswp--dragging .pswp__img { /* autoprefixer: off */ cursor: -webkit-grabbing; cursor: -moz-grabbing; cursor: grabbing; } /* Background is added as a separate element. As animating opacity is much faster than animating rgba() background-color. */ .pswp__bg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: #2e2e2e; opacity: 0; -webkit-transform: translateZ(0); transform: translateZ(0); -webkit-backface-visibility: hidden; will-change: opacity; } .pswp__scroll-wrap { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; } .pswp__container, .pswp__zoom-wrap { -ms-touch-action: none; touch-action: none; position: absolute; left: 0; right: 0; top: 0; bottom: 0; } /* Prevent selection and tap highlights */ .pswp__container, .pswp__img { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); -webkit-touch-callout: none; } .pswp__zoom-wrap { position: absolute; width: 100%; -webkit-transform-origin: left top; transform-origin: left top; /* for open/close transition */ -webkit-transition: -webkit-transform 300ms cubic-bezier(0.4, 0, 0.22, 1); transition: -webkit-transform 300ms cubic-bezier(0.4, 0, 0.22, 1); transition: transform 300ms cubic-bezier(0.4, 0, 0.22, 1); transition: transform 300ms cubic-bezier(0.4, 0, 0.22, 1), -webkit-transform 300ms cubic-bezier(0.4, 0, 0.22, 1); } .pswp__bg { will-change: opacity; /* for open/close transition */ -webkit-transition: opacity 300ms cubic-bezier(0.4, 0, 0.22, 1); transition: opacity 300ms cubic-bezier(0.4, 0, 0.22, 1); } .pswp--animated-in .pswp__bg, .pswp--animated-in .pswp__zoom-wrap { -webkit-transition: none; transition: none; } .pswp__container, .pswp__zoom-wrap { -webkit-backface-visibility: hidden; } .pswp__item { position: absolute; left: 0; right: 0; top: 0; bottom: 0; overflow: hidden; } .pswp__img { position: absolute; width: auto; height: auto; top: 15px; left: 0; } /* stretched thumbnail or div placeholder element (see below) style is added to avoid flickering in webkit/blink when layers overlap */ .pswp__img--placeholder { -webkit-backface-visibility: hidden; } /* div element that matches size of large image large image loads on top of it */ .pswp__img--placeholder--blank { background: #222; } .pswp--ie .pswp__img { width: 100% !important; height: auto !important; left: 0; top: 0; } /* Error message appears when image is not loaded (JS option errorMsg controls markup) */ .pswp__error-msg { position: absolute; left: 0; top: 50%; width: 100%; text-align: center; font-size: 14px; line-height: 16px; margin-top: -8px; color: #ccc; } .pswp__error-msg a { color: #ccc; text-decoration: underline; } .image-gallery-container { width: 100%; } .image-gallery-container .image-gallery-selector { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-flex-wrap: wrap; -ms-flex-wrap: wrap; flex-wrap: wrap; -webkit-box-pack: justify; -webkit-justify-content: space-between; -ms-flex-pack: justify; justify-content: space-between; width: 100%; } .image-gallery-container .image-gallery-selector figure { margin-bottom: 30px; width: calc((18/58) * 100%); } @supports (display: grid) { .image-gallery-container .image-gallery-selector { display: grid; grid-gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } .image-gallery-container .image-gallery-selector figure { margin-bottom: 0; width: 100%; } } .image-gallery-container .bg-image { background-position: center; background-repeat: no-repeat; background-size: cover; border-radius: 8px; min-height: 200px; -webkit-transition-duration: 0.3s; transition-duration: 0.3s; width: 100%; } .image-gallery-container .bg-image:hover { box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.3); -webkit-transition-duration: 0.3s; transition-duration: 0.3s; } .image-gallery-container figure[data-rs-image-gallery-totals-overlay='true'] { position: relative; } .image-gallery-container figure[data-rs-image-gallery-totals-overlay='true'] .bg-image { box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.3); -webkit-transition-duration: 0.3s; transition-duration: 0.3s; } .image-gallery-container figure[data-rs-image-gallery-totals-overlay='true']:hover .bg-image { box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.7); -webkit-transition-duration: 0.3s; transition-duration: 0.3s; } .image-gallery-container figure[data-rs-image-gallery-totals-overlay='true'] .photo-totals-overlay { font-family: Montserrat-ExtraBold, arial, sans-serif; font-size: 20px; text-transform: none; line-height: 30px; color: #fff; cursor: pointer; position: absolute; text-align: center; top: 45%; width: 100%; } @media (min-width: 501px) and (max-width: 622px) { .image-gallery-container figure[data-rs-image-gallery-totals-overlay='true'] .photo-totals-overlay { top: 35%; } } @media (min-width: 501px) and (max-width: 940px) { @supports (display: grid) { .image-gallery-container .image-gallery-selector { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); } } } @media (min-width: 941px) { .image-gallery-container .bg-image { min-height: 250px; } } /*! PhotoSwipe Default UI CSS by Dmitry Semenov | photoswipe.com | MIT license */ /* <button> css reset */ .pswp__button { -webkit-appearance: none; background: none; border: 0; box-shadow: none; cursor: pointer; display: block; float: right; height: 20px; margin: 0; overflow: visible; padding: 0; position: relative; -webkit-transition: opacity 0.2s; transition: opacity 0.2s; width: 20px; z-index: 1; } .pswp__button:active { outline: none; } .pswp__button::-moz-focus-inner { border: 0; padding: 0; } .pswp__button--close { height: 25px; margin: 20px 20px 0 0; position: relative; width: 25px; z-index: 1; } .pswp__button--close .icon { color: var(--color-white); height: 25px; top: 0; width: 25px; z-index: -1; } .pswp__button--close:hover { opacity: 0.5; } .pswp--svg .pswp__button--arrow--left .icon, .pswp--svg .pswp__button--arrow--right .icon { color: var(--color-white); position: relative; z-index: -1; } .pswp--svg .pswp__button--arrow--left .icon svg, .pswp--svg .pswp__button--arrow--right .icon svg { fill: currentColor; width: 25px; } .pswp--svg .pswp__button--arrow--left:hover, .pswp--svg .pswp__button--arrow--right:hover { opacity: 0.5; } .pswp--touch .pswp__button--arrow--left, .pswp--touch .pswp__button--arrow--right { bottom: -18px; top: auto; } /* Arrow buttons hit area (icon is added to :before pseudo-element) */ .pswp__button--arrow--left, .pswp__button--arrow--right { background: none; height: 100px; margin-top: -50px; position: absolute; top: 50%; width: 70px; } .pswp__button--arrow--left { left: 0; } .pswp__button--arrow--right { right: 0; } .pswp__counter { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .pswp__counter { font-family: Montserrat, arial, sans-serif; font-size: 16px; text-transform: none; line-height: 25px; color: var(--color-white); position: absolute; left: 20px; top: 20px; } .pswp__caption { bottom: 0; left: 0; min-height: 44px; position: absolute; width: 100%; } .pswp__caption small { color: #bbb; font-size: 11px; } .pswp__caption__center { color: #ccc; font-size: 13px; margin: 0 auto; max-width: 420px; line-height: 20px; padding: 10px; text-align: left; } .pswp__caption--empty { display: none; } /* Fake caption element, used to calculate height of next/prev image */ .pswp__caption--fake { visibility: hidden; } /* Loading indicator (preloader) */ .pswp__preloader { direction: ltr; height: 44px; left: 50%; margin-left: -22px; position: absolute; opacity: 0; -webkit-transition: opacity 0.25s ease-out; transition: opacity 0.25s ease-out; top: 0; width: 44px; will-change: opacity; } .pswp__preloader__icn { height: 20px; margin: 12px; width: 20px; } .pswp__preloader--active { opacity: 1; } .pswp--css_animation .pswp__preloader--active { opacity: 1; } .pswp--css_animation .pswp__preloader--active .pswp__preloader__icn { -webkit-animation: clockwise 500ms linear infinite; animation: clockwise 500ms linear infinite; } .pswp--css_animation .pswp__preloader--active .pswp__preloader__donut { -webkit-animation: donut-rotate 1000ms cubic-bezier(0.4, 0, 0.22, 1) infinite; animation: donut-rotate 1000ms cubic-bezier(0.4, 0, 0.22, 1) infinite; } .pswp--css_animation .pswp__preloader__icn { background: none; height: 14px; left: 15px; margin: 0; opacity: 1; position: absolute; top: 15px; width: 14px; } .pswp--css_animation .pswp__preloader__cut { /* The idea of animating inner circle is based on Polymer ("material") loading indicator by Keanu Lee https://blog.keanulee.com/2014/10/20/the-tale-of-three-spinners.html */ height: 14px; position: relative; overflow: hidden; width: 7px; } .pswp--css_animation .pswp__preloader__donut { background: none; border: 2px solid #fff; border-bottom-color: transparent; border-radius: 50%; border-left-color: transparent; box-sizing: border-box; height: 14px; left: 0; margin: 0; position: absolute; top: 0; width: 14px; } @media screen and (max-width: 1024px) { .pswp__preloader { float: right; left: auto; margin: 0; position: relative; top: auto; } } @-webkit-keyframes clockwise { 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @keyframes clockwise { 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @-webkit-keyframes donut-rotate { 0% { -webkit-transform: rotate(0); transform: rotate(0); } 50% { -webkit-transform: rotate(-140deg); transform: rotate(-140deg); } 100% { -webkit-transform: rotate(0); transform: rotate(0); } } @keyframes donut-rotate { 0% { -webkit-transform: rotate(0); transform: rotate(0); } 50% { -webkit-transform: rotate(-140deg); transform: rotate(-140deg); } 100% { -webkit-transform: rotate(0); transform: rotate(0); } } /* Additional styles */ /* root element of UI */ .pswp__ui { opacity: 1; visibility: visible; z-index: 1550; } /* top black bar with buttons and "1 of X" indicator */ .pswp__top-bar { height: 50px; left: 0; position: absolute; top: 0; width: 100%; } .pswp__caption, .pswp__top-bar, .pswp--has_mouse .pswp__button--arrow--left, .pswp--has_mouse .pswp__button--arrow--right { -webkit-backface-visibility: hidden; -webkit-transition: opacity 300ms cubic-bezier(0.4, 0, 0.22, 1); transition: opacity 300ms cubic-bezier(0.4, 0, 0.22, 1); will-change: opacity; } /* pswp--has_mouse class is added only when two subsequent mousemove events occur */ .pswp--has_mouse .pswp__button--arrow--left, .pswp--has_mouse .pswp__button--arrow--right { visibility: visible; } .pswp__ui--idle .pswp__top-bar { opacity: 1; } .pswp__ui--idle .pswp__button--arrow--left, .pswp__ui--idle .pswp__button--arrow--right { opacity: 1; } /* pswp__ui--one-slide class is added when there is just one item in gallery */ .pswp__ui--one-slide .pswp__button--arrow--left, .pswp__ui--one-slide .pswp__button--arrow--right, .pswp__ui--one-slide .pswp__counter { display: none; } .pswp__element--disabled { display: none !important; } .pswp--minimal--dark .pswp__top-bar { background: none; } /*# sourceMappingURL=image-gallery.css.map */