main_page.less 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369
  1. .main-view{
  2. display: flex;
  3. flex-wrap: wrap;
  4. .group{
  5. position: relative;
  6. width: 40%;
  7. &::after{
  8. content: "";
  9. position: absolute;
  10. height: calc(100% - 30px);
  11. top: 0;
  12. bottom: 0;
  13. left: 0;
  14. display: block;
  15. width: 1px;
  16. background-color: #e8e8e8;
  17. z-index: 1;
  18. margin: auto;
  19. }
  20. }
  21. }
  22. .news-item{
  23. &.main{
  24. width: 100%;
  25. box-shadow: black 0 0 14px -5px;
  26. a{
  27. color: white;
  28. }
  29. }
  30. z-index: 1;
  31. text-align: left;
  32. display: flex;
  33. align-items: flex-end;
  34. justify-content: flex-start;
  35. align-content: flex-end;
  36. flex-wrap: wrap;
  37. overflow: hidden;
  38. position: relative;
  39. picture:after {
  40. position: absolute;
  41. transition: 0.3s;
  42. opacity: 1;
  43. content:"";
  44. height:100%;
  45. width:100%;
  46. top:0;
  47. left:0;
  48. background: linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.5));
  49. }
  50. picture:hover::after{
  51. opacity: 0.4;
  52. }
  53. .meta{
  54. position: absolute;
  55. bottom: 0;
  56. left: 0;
  57. color: #fff;
  58. padding: 15px 30px;
  59. .title{
  60. font: 700 28px/32px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  61. margin-bottom: 10px;
  62. }
  63. .lead{
  64. margin-bottom: 15px;
  65. font: 18px/25px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  66. color: hsla(0,0%,100%,.8);
  67. font-size: 16px;
  68. line-height: 150%;
  69. }
  70. .published_at{
  71. color: hsla(0,0%,100%,.5);
  72. font: 12px/17px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  73. .commnets{
  74. margin-left: 20px;
  75. }
  76. .icon{
  77. width: 10px;
  78. height: 10px;
  79. fill: #a8a8a8;
  80. margin-right: 5px;
  81. }
  82. }
  83. }
  84. &.main{
  85. margin-bottom: 30px;
  86. }
  87. &.high{
  88. .meta{
  89. .title{
  90. font-weight: 700 !important;
  91. }
  92. }
  93. }
  94. &.high,&.low{
  95. width: 60%;
  96. align-content: center;
  97. &:hover{
  98. .published_at{
  99. color: #3b5573;
  100. }
  101. }
  102. background: white;
  103. .meta{
  104. position: relative;
  105. color: #3e3e3e;
  106. padding: 50px 15px 15px 15px;
  107. .title{
  108. font: 24px/34px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  109. }
  110. .lead{
  111. font-size: 16px;
  112. line-height: 150%;
  113. color: #3e3e3e;
  114. }
  115. .published_at{
  116. position: absolute;
  117. top:15px;
  118. left:15px;
  119. color: #aeaeae;
  120. }
  121. }
  122. }
  123. &.low{
  124. width: 100%;
  125. padding-bottom: 15px;
  126. .meta{
  127. .title{
  128. font: 18px/26px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  129. margin: 0;
  130. }
  131. }
  132. &:nth-child(1)::after{
  133. content: "";
  134. position: absolute;
  135. width: calc(100% - 15px);
  136. bottom: 0;
  137. left: 0;
  138. display: block;
  139. height: 1px;
  140. background-color: #e8e8e8;
  141. z-index: 1;
  142. }
  143. }
  144. }
  145. #lenta-container{
  146. &::-webkit-scrollbar {
  147. display: none;
  148. }
  149. -ms-overflow-style: none;
  150. scrollbar-width: none;
  151. overflow-y: scroll;
  152. & + .shadow{
  153. position: relative;
  154. width: 100%;
  155. content: "";
  156. top: -50px;
  157. left: 0;
  158. right: 0;
  159. margin: auto;
  160. height: 50px;
  161. background: linear-gradient(transparent,#fff);
  162. }
  163. }
  164. .partner-news{
  165. margin-top: 30px;
  166. &>div{
  167. flex-grow: 1;
  168. }
  169. .partner-news-item{
  170. position: relative;
  171. background-color: white;
  172. height: 100%;
  173. padding-bottom: 30px;
  174. .meta{
  175. padding: 15px;
  176. h2{
  177. font: 18px/22px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  178. }
  179. .published_at{
  180. position: absolute;
  181. bottom: 15px;
  182. left: 15px;
  183. color: #a8a8a8;
  184. .icon{
  185. width: 10px;
  186. height: 10px;
  187. fill: #a8a8a8;
  188. margin-right: 5px;
  189. }
  190. }
  191. }
  192. }
  193. }
  194. .wide-widget{
  195. margin-top: 30px;
  196. .cont{
  197. position: relative;
  198. }
  199. picture:after {
  200. position: absolute;
  201. transition: 0.3s;
  202. opacity: 1;
  203. content:"";
  204. height:100%;
  205. width:100%;
  206. top:0;
  207. left:0;
  208. background: linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.5));
  209. }
  210. picture:hover::after{
  211. opacity: 0.4;
  212. }
  213. .meta{
  214. position: absolute;
  215. bottom: 0;
  216. left: 0;
  217. width: 100%;
  218. height: 100%;
  219. .topic{
  220. text-transform: uppercase;
  221. position: absolute;
  222. width: 210px;
  223. height: 40px;
  224. bottom: 5px;
  225. left: 0;
  226. right: 0;
  227. margin: auto;
  228. font: 12px/17px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  229. color: hsla(0,0%,100%,.5);
  230. display: flex;
  231. justify-content: center;
  232. align-items: center;
  233. &::before,&::after{
  234. content: "";
  235. display: block;
  236. position: absolute;
  237. height: 100%;
  238. width: 1px;
  239. background-color: hsla(0,0%,100%,.2);
  240. top: 0;
  241. left: 0;
  242. }
  243. &::after{
  244. right: 0;
  245. left: unset;
  246. }
  247. }
  248. .title{
  249. position: absolute;
  250. bottom: 60px;
  251. left: 20px;
  252. color: white;
  253. margin: 0;
  254. max-width: 541px;
  255. font: 700 30px/36px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  256. a{
  257. color: white;
  258. }
  259. }
  260. .commnets{
  261. position: absolute;
  262. right: 20px;
  263. bottom: 20px;
  264. color: #a8a8a8;
  265. font: 12px/17px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  266. .icon{
  267. width: 15px;
  268. height: 15px;
  269. fill: #a8a8a8;
  270. margin-right: 5px;
  271. }
  272. }
  273. }
  274. .adv .cont{
  275. background: white;
  276. height: 100%;
  277. }
  278. }
  279. .text-news-widget{
  280. margin-top: 30px;
  281. &>div>.cont{
  282. background: white;
  283. padding: 0 30px;
  284. }
  285. .widget-title{
  286. font: 700 18px/22px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  287. color: #3e3e3e;
  288. padding: 30px 15px;
  289. }
  290. .text-widget-item{
  291. .cont{
  292. padding: 0 15px 30px 15px;
  293. position: relative;
  294. height: 100%;
  295. .meta{
  296. .title{
  297. font: 16px/19px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  298. color: #3e3e3e;
  299. }
  300. }
  301. .published_at{
  302. position: absolute;
  303. width: 100%;
  304. bottom: 15px;
  305. font: 14px/17px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  306. color: #a8a8a8;
  307. .comments{
  308. position: absolute;
  309. right: 45px;
  310. .icon{
  311. width: 10px;
  312. height: 10px;
  313. fill: #a8a8a8;
  314. margin-right: 5px;
  315. }
  316. }
  317. }
  318. }
  319. }
  320. }
  321. .topic-widget{
  322. margin-top: 30px;
  323. .cont{
  324. position: relative;
  325. }
  326. picture{
  327. filter: brightness(0.6);
  328. }
  329. .content{
  330. position: absolute;
  331. bottom: 0;
  332. left: 0;
  333. padding: 30px;
  334. }
  335. .topic-title{
  336. max-width: 608px;
  337. font: 36px/43px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  338. color: #fff;
  339. margin-bottom: 50px;
  340. }
  341. .topic-news{
  342. display: flex;
  343. .cont{
  344. height: 100%;
  345. padding-bottom: 30px;
  346. }
  347. .title{
  348. margin: 0;
  349. line-height: 23px;
  350. a{
  351. font: 700 16px/19px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  352. color: #fff;
  353. line-height: 0;
  354. }
  355. }
  356. .comments{
  357. color: #fff;
  358. position: absolute;
  359. bottom: 0;
  360. margin: 0;
  361. .icon{
  362. width: 10px;
  363. height: 10px;
  364. fill: #fff;
  365. margin-right: 5px;
  366. }
  367. }
  368. }
  369. }