stories.less 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. #zuck-modal{
  2. .item{
  3. .blur-bg{
  4. background-image: url(https://green.amic.ru/images/news/webp/508059_size1.webp);
  5. height: 100%;
  6. width: 100%;
  7. background-size: cover;
  8. background-repeat: no-repeat;
  9. filter: brightness(0.4) blur(10px);
  10. transform: scalex(-1);
  11. }
  12. .image-container{
  13. height: 75%;
  14. background-color: #000;
  15. border-radius: 30px;
  16. position: absolute;
  17. top: 0;
  18. bottom: 0;
  19. margin: auto;
  20. left: 0;
  21. right: 0;
  22. width: 50%;
  23. max-width: 35%;
  24. overflow: hidden;
  25. box-shadow: #000 0 0 10px;
  26. display: flex;
  27. align-items: center;
  28. img{
  29. width: 100%;
  30. }
  31. @media(max-width: @size-mobile){
  32. bottom: auto;
  33. top: 185px;
  34. height: 38%;
  35. }
  36. }
  37. .title{
  38. a{
  39. background: #000000ab;
  40. z-index: 9;
  41. position: absolute;
  42. width: 50%;
  43. left: 0;
  44. right: 0;
  45. margin: auto;
  46. color: #fff;
  47. padding: 30px;
  48. border-radius: 20px;
  49. box-shadow: black 0 0 4px;
  50. font-weight: bold;
  51. }
  52. }
  53. .comments{
  54. position: absolute;
  55. right: 0;
  56. background: #000000ab;
  57. z-index: 1;
  58. color: white;
  59. width: 300px;
  60. padding: 30px;
  61. font-size: 12px;
  62. .comment{
  63. margin-bottom: 15px;
  64. border-bottom: 1px solid white;
  65. .published_at{
  66. font-size: 10px;
  67. color: #a4a3a3;
  68. }
  69. }
  70. @media(max-width: @size-mobile){
  71. display: none;
  72. }
  73. }
  74. @media(max-width: 1024px){
  75. .title{
  76. a{
  77. width: 80%;
  78. font-size: 20px;
  79. top: 20px;
  80. text-align: center;
  81. }
  82. }
  83. .image-container{
  84. width: 90%;
  85. max-width: 90%;
  86. }
  87. }
  88. }
  89. #zuck-modal-content .story-viewer .head .left .back{
  90. color: white;
  91. }
  92. @media(max-width: @size-mobile){
  93. #zuck-modal-content .story-viewer .head .left .info .name{
  94. display: none;
  95. }
  96. }
  97. }
  98. #stories{
  99. .story{
  100. max-width: 110px !important;
  101. .item-link{
  102. position: relative;
  103. perspective: 1000px;
  104. &:hover{
  105. .item-preview{
  106. opacity: 0;
  107. transform: rotateY(180deg);
  108. }
  109. .info{
  110. opacity: 1;
  111. transform: rotateY(0deg);
  112. }
  113. }
  114. .item-preview{
  115. transform-style: preserve-3d;
  116. transition: transform 0.8s, opacity 0.8s;
  117. max-height: 110px !important;
  118. opacity: 1;
  119. }
  120. .info{
  121. display: block;
  122. margin-top: 0;
  123. line-height: 1.2em;
  124. width: 100%;
  125. height: 100%;
  126. overflow: hidden;
  127. text-overflow: ellipsis;
  128. position: absolute;
  129. white-space: normal;
  130. top: 0;
  131. left: 0;
  132. opacity: 0;
  133. transform-style: preserve-3d;
  134. transition: transform 0.8s, opacity 0.8s;
  135. transform: rotateY(180deg);
  136. .name {
  137. height: 100%;
  138. display: block;
  139. overflow: hidden;
  140. text-overflow: ellipsis;
  141. font-size: 14px;
  142. }
  143. @media(max-width: @size-mobile){
  144. max-height: 100%;
  145. overflow-y: scroll;
  146. margin-top: 0;
  147. }
  148. }
  149. }
  150. }
  151. @media(max-width: @size-mobile){
  152. margin-bottom: 18px;
  153. }
  154. }