123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- .gallery{
- display: flex;
- overflow: hidden;
- width: 100%;
- padding-bottom: 56.25%;
- position: relative;
- margin-bottom: 86px;
- img{
- width: 100%;
- position: absolute;
- }
- .splide__list{
- height: 60px;
- }
- .splide__slide {
- opacity: 0.6;
- transition: .3s;
- overflow: hidden;
- }
- .splide__slide.is-active {
- opacity: 1;
- }
- }
- @keyframes galleryButtonAnimation {
- 0%{
- transform: scale(1,1);
- }
- 50%{
- transform: scale(1.3,1.3);
- }
- 100%{
- transform: scale(1.2,1.2);
- }
- }
- .gallery-wrapper{
- position: relative;
- transition: 0.2s;
- .fullscreenButton{
- position:absolute;
- top:20px;
- right: 20px;
- display: block;
- width: 28px;
- height: 28px;
- background-image: url("/img/fullscreen.svg");
- background-size: contain;
- transition: 0.2s;
- filter: brightness(24%);
- opacity: 45%;
- &:hover{
- transform: scale(1.2,1.2);
- animation: galleryButtonAnimation 0.3s ease-in-out;
- }
- }
- &.fullscreen{
- .gallery{
- height: 150px;
- }
- position: fixed;
- top: 0px;
- left: 0px;
- width: 100%;
- height: 100%;
- max-width: 100% !important;
- z-index: 9999999999;
- background: #000000d4;
- display: flex;
- flex-direction: column;
- justify-items: center;
- .gallery-view{
- width: 100%;
- height: calc(100% - 150px);
- display: flex;
- justify-content: center;
- flex-grow: 1;
- .splide__slide{
- padding-bottom: 0;
- height: 100%;
- img{
- position: relative;
- width: auto !important;
- height: auto !important;
- }
- }
- }
- .fullscreenButton{
- background-image: url("/img/close.svg");
- filter: invert(1);
- opacity: 1;
- }
- }
- }
- .splide{
- &.gallery-view{
- margin-bottom: 8px;
- .splide__slide{
- padding-bottom: 56.25%;
- height: 0;
- overflow: hidden;
- display: flex;
- justify-content: center;
- .image-capture{
- display: block;
- position: absolute;
- width: 100%;
- text-align: center;
- bottom: 0;
- background: #00000078;
- color: white;
- z-index: 1;
- padding: 5px 20px;
- font: 14px/16px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
- }
- img{
- position: absolute;
- max-width: 100%;
- max-height: 100%;
- width: auto !important;
- margin: auto;
- top: 0;
- bottom: 0;
- }
- }
- }
- }
|