post.less 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. .post-view{
  2. .share-this{
  3. height: 96px;
  4. overflow: hidden;
  5. }
  6. .youtube-iframe-placeholder{
  7. cursor: pointer;
  8. &:after{
  9. content: "";
  10. position: absolute;
  11. width: 68px;
  12. height: 68px;
  13. top: 0;
  14. bottom: 0;
  15. left: 0;
  16. right: 0;
  17. margin: auto;
  18. background: url(/img/youtube-red.svg);
  19. background-size: contain;
  20. background-repeat: no-repeat;
  21. }
  22. }
  23. #infinity_newsfeed{
  24. display: none;
  25. .post{
  26. border-top: 1px solid @border-gray;
  27. .lead{
  28. padding-bottom: 0;
  29. }
  30. }
  31. }
  32. @media(max-width: @size-mobile){
  33. #lenta-container{
  34. display: none;
  35. }
  36. #infinity_newsfeed{
  37. display: flex;
  38. .list{
  39. max-width: 100%;
  40. .post{
  41. .commnets{
  42. margin-left: 20px;
  43. svg{
  44. width: 10px;
  45. height: 10px;
  46. fill: #a8a8a8;
  47. margin-right: 5px;
  48. }
  49. }
  50. }
  51. }
  52. }
  53. }
  54. }
  55. .post{
  56. background: white;
  57. padding: 30px;
  58. @media(max-width: @size-mobile) {
  59. margin: 0 -15px;
  60. padding: 15px;
  61. }
  62. iframe{
  63. max-width: 100% !important;
  64. width: 100%;
  65. // height: auto;
  66. // aspect-ratio: 16/9; //не все iframe видео
  67. }
  68. h1{
  69. font-size: 36px;
  70. font-weight: bold;
  71. margin-bottom: 15px;
  72. }
  73. h2{
  74. font: 30px/30px "Source Serif Pro","Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  75. color: #222;
  76. font-weight: bold;
  77. line-height: 1.5;
  78. }
  79. a{
  80. color: @link-color;
  81. }
  82. .person{
  83. border-bottom: dashed 1px #888;
  84. }
  85. .lead{
  86. font-size: 20px;
  87. line-height: 140%;
  88. padding-bottom: 20px;
  89. color: #737373;
  90. }
  91. .published_at,.image-title{
  92. margin-bottom: 20px;
  93. font: 12px/14px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  94. color: #878787;
  95. }
  96. .image-title-fix{
  97. position: relative;
  98. background-color: #fff;
  99. width: 100%;
  100. display: flex;
  101. padding-top: 20px;
  102. }
  103. .share_and_comment{
  104. display: flex;
  105. a{
  106. width: 41px;
  107. height: 41px;
  108. display: flex;
  109. justify-content: center;
  110. align-items: center;
  111. background-color: rgba(59,85,115,.08);
  112. border-radius: 11px;
  113. margin-right: 5px;
  114. &.comments_btn{
  115. width: auto;
  116. padding: 0 20px;
  117. font: 14px/1 "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  118. color: #3b5573;
  119. }
  120. img{
  121. width: 15px;
  122. height: 15px;
  123. }
  124. svg{
  125. fill: #00077b;
  126. &.icon-ok{
  127. width: 9px;
  128. height: 15px;
  129. }
  130. &.icon-vk{
  131. width: 16px;
  132. height: 9px;
  133. }
  134. &.icon-tw{
  135. width: 15px;
  136. height: 12px;
  137. }
  138. }
  139. }
  140. }
  141. .text{
  142. font: 20px/30px "Source Serif Pro","Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  143. color: #222;
  144. h6 {
  145. background-color: #f7f5ee;
  146. padding: 20px 10px 20px 20px;
  147. margin: 30px 0;
  148. border-left: 2px solid #f6911f;
  149. line-height: 150%;
  150. font-size: 20px;
  151. }
  152. h5{
  153. margin-top: -10px;
  154. color: #767676;
  155. font-size: 0.83em;
  156. }
  157. .iframe-wrapper{
  158. max-width: 100%;
  159. margin-bottom: 30px;
  160. position: relative;
  161. width: 100%;
  162. padding-bottom: 56.25%;
  163. iframe{
  164. position: absolute;
  165. width: 100%;
  166. height: 100%;
  167. }
  168. }
  169. div.pic{
  170. margin-bottom: 20px;
  171. }
  172. .advertisement{
  173. border-radius: 5px;
  174. margin-right: 5px;
  175. padding: 5px 20px;
  176. font: 14px/16px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  177. background-color: rgba(0,0,0,.06);
  178. line-height: 50px;
  179. }
  180. .med_advertisement{
  181. border-radius: 5px;
  182. margin-right: 5px;
  183. padding: 5px 20px;
  184. font: 16px/18px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  185. background-color: rgba(0,0,0,.06);
  186. }
  187. img{
  188. max-width:100%;
  189. }
  190. .juxtapose img{
  191. max-width:none;
  192. width: initial !important;
  193. }
  194. ul{
  195. list-style: disc;
  196. padding-left: 40px;
  197. margin-top: 1em;
  198. margin-bottom: 1 em;
  199. margin-left: 0;
  200. margin-right: 0;
  201. }
  202. div.overlayadv{
  203. position: absolute;
  204. background-color: rgba(0,0,0,0.1);
  205. opacity:0.1;
  206. }
  207. }
  208. @import "post/pgs";
  209. @import "post/gallery";
  210. @import "post/inject";
  211. @import "post/img";
  212. @import "post/comments";
  213. @import "post/tags";
  214. @import "post/person-link";
  215. @import "post/person-wiget";
  216. }