post.less 4.5 KB

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