#zuck-modal{ .item{ .blur-bg{ background-image: url(https://green.amic.ru/images/news/webp/508059_size1.webp); height: 100%; width: 100%; background-size: cover; background-repeat: no-repeat; filter: brightness(0.4) blur(10px); transform: scalex(-1); } .image-container{ height: 75%; background-color: #000; border-radius: 30px; position: absolute; top: 0; bottom: 0; margin: auto; left: 0; right: 0; width: 50%; max-width: 35%; overflow: hidden; box-shadow: #000 0 0 10px; display: flex; align-items: center; img{ width: 100%; } @media(max-width: @size-mobile){ bottom: auto; top: 185px; height: 38%; } } .title{ a{ background: #000000ab; z-index: 9; position: absolute; width: 50%; left: 0; right: 0; margin: auto; color: #fff; padding: 30px; border-radius: 20px; box-shadow: black 0 0 4px; font-weight: bold; } } .comments{ position: absolute; right: 0; background: #000000ab; z-index: 1; color: white; width: 300px; padding: 30px; font-size: 12px; .comment{ margin-bottom: 15px; border-bottom: 1px solid white; .published_at{ font-size: 10px; color: #a4a3a3; } } @media(max-width: @size-mobile){ display: none; } } @media(max-width: 1024px){ .title{ a{ width: 80%; font-size: 20px; top: 20px; text-align: center; } } .image-container{ width: 90%; max-width: 90%; } } } #zuck-modal-content .story-viewer .head .left .back{ color: white; } @media(max-width: @size-mobile){ #zuck-modal-content .story-viewer .head .left .info .name{ display: none; } } } #stories{ .story{ max-width: 110px !important; .item-link{ position: relative; perspective: 1000px; &:hover{ .item-preview{ opacity: 0; transform: rotateY(180deg); } .info{ opacity: 1; transform: rotateY(0deg); } } .item-preview{ transform-style: preserve-3d; transition: transform 0.8s, opacity 0.8s; max-height: 110px !important; opacity: 1; } .info{ display: block; margin-top: 0; line-height: 1.2em; width: 100%; height: 100%; overflow: hidden; text-overflow: ellipsis; position: absolute; white-space: normal; top: 0; left: 0; opacity: 0; transform-style: preserve-3d; transition: transform 0.8s, opacity 0.8s; transform: rotateY(180deg); .name { height: 100%; display: block; overflow: hidden; text-overflow: ellipsis; font-size: 14px; } @media(max-width: @size-mobile){ max-height: 100%; overflow-y: scroll; margin-top: 0; } } } } @media(max-width: @size-mobile){ margin-bottom: 18px; } }