main_page.less 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778
  1. .main-view{
  2. display: flex;
  3. flex-wrap: wrap;
  4. picture{
  5. filter: brightness(0.7);
  6. }
  7. .group{
  8. position: relative;
  9. width: 40%;
  10. @media(max-width: @size-mobile){
  11. width: 100%;
  12. }
  13. &::after{
  14. content: "";
  15. position: absolute;
  16. height: calc(100% - 30px);
  17. top: 0;
  18. bottom: 0;
  19. left: 0;
  20. display: block;
  21. width: 1px;
  22. background-color: #e8e8e8;
  23. z-index: 1;
  24. margin: auto;
  25. }
  26. }
  27. }
  28. .news-item{
  29. @media(max-width: @size-mobile){
  30. width: 100% !important;
  31. }
  32. &.main{
  33. width: 100%;
  34. box-shadow: black 0 0 14px -5px;
  35. a{
  36. color: white;
  37. }
  38. }
  39. z-index: 1;
  40. text-align: left;
  41. display: flex;
  42. align-items: flex-end;
  43. justify-content: flex-start;
  44. align-content: flex-end;
  45. flex-wrap: wrap;
  46. overflow: hidden;
  47. position: relative;
  48. picture:after {
  49. position: absolute;
  50. transition: 0.3s;
  51. opacity: 1;
  52. content:"";
  53. height:100%;
  54. width:100%;
  55. top:0;
  56. left:0;
  57. background: linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.5));
  58. }
  59. picture:hover::after{
  60. opacity: 0.4;
  61. }
  62. .meta{
  63. position: absolute;
  64. bottom: 0;
  65. left: 0;
  66. color: #fff;
  67. padding: 15px 30px;
  68. .title{
  69. font: 700 28px/32px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  70. margin-bottom: 10px;
  71. @media(max-width: @size-mobile){
  72. font-size: 14px;
  73. line-height: 16px;
  74. }
  75. }
  76. .lead{
  77. margin-bottom: 15px;
  78. font: 18px/25px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  79. color: hsla(0,0%,100%,.8);
  80. font-size: 16px;
  81. line-height: 150%;
  82. @media(max-width: @size-mobile){
  83. font-size: 12px;
  84. }
  85. }
  86. .published_at{
  87. color: hsla(0,0%,100%,.5);
  88. font: 12px/17px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  89. .commnets{
  90. margin-left: 20px;
  91. }
  92. .icon{
  93. width: 10px;
  94. height: 10px;
  95. fill: #a8a8a8;
  96. margin-right: 5px;
  97. }
  98. }
  99. }
  100. &.main{
  101. margin-bottom: 30px;
  102. }
  103. &.high{
  104. .meta{
  105. .title{
  106. font-weight: 700 !important;
  107. }
  108. }
  109. }
  110. &.high,&.low{
  111. width: 60%;
  112. align-content: center;
  113. &:hover{
  114. .published_at{
  115. color: #3b5573;
  116. }
  117. }
  118. background: white;
  119. .meta{
  120. position: relative;
  121. color: #3e3e3e;
  122. padding: 50px 15px 15px 15px;
  123. .title{
  124. font: 24px/34px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  125. }
  126. .lead{
  127. font-size: 16px;
  128. line-height: 150%;
  129. color: #3e3e3e;
  130. }
  131. .published_at{
  132. position: absolute;
  133. top:15px;
  134. left:15px;
  135. color: #aeaeae;
  136. }
  137. }
  138. }
  139. &.low{
  140. width: 100%;
  141. padding-bottom: 15px;
  142. .meta{
  143. .title{
  144. font: 18px/26px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  145. margin: 0;
  146. }
  147. }
  148. &:nth-child(1)::after{
  149. content: "";
  150. position: absolute;
  151. width: calc(100% - 15px);
  152. bottom: 0;
  153. left: 0;
  154. display: block;
  155. height: 1px;
  156. background-color: #e8e8e8;
  157. z-index: 1;
  158. }
  159. }
  160. }
  161. #lenta-container{
  162. @media(max-width: @size-mobile){
  163. max-height: 100% !important;
  164. }
  165. &::-webkit-scrollbar {
  166. display: none;
  167. }
  168. -ms-overflow-style: none;
  169. scrollbar-width: none;
  170. overflow-y: scroll;
  171. & + .shadow{
  172. position: relative;
  173. width: 100%;
  174. content: "";
  175. top: -50px;
  176. left: 0;
  177. right: 0;
  178. margin: auto;
  179. height: 50px;
  180. background: linear-gradient(transparent,#fff);
  181. }
  182. }
  183. .partner-news{
  184. margin-top: 30px;
  185. &>div{
  186. flex-grow: 1;
  187. }
  188. #top_slider{
  189. display: flex;
  190. overflow: hidden;
  191. position: relative;
  192. .arrows{
  193. position: absolute;
  194. height: 50px;
  195. width: 100%;
  196. top: 27%;
  197. left: 0;
  198. z-index: 1;
  199. font-size: 25px;
  200. &>div{
  201. position: absolute;
  202. top:0;
  203. cursor: pointer;
  204. height: 50px;
  205. width: 50px;
  206. color: white;
  207. border-radius: 50%;
  208. background: @active-color;
  209. display: flex;
  210. align-items: center;
  211. justify-content: center;
  212. svg{
  213. fill: white;
  214. height: 20px;
  215. width: 20px;
  216. }
  217. &.next{
  218. right: 0px;
  219. }
  220. &.prev{
  221. left: 0px;
  222. }
  223. }
  224. }
  225. .slides{
  226. display: flex;
  227. overflow: hidden;
  228. position: relative;
  229. }
  230. .slides>div{
  231. min-width: 100%!important;
  232. padding: 0;
  233. margin-right: 15px;
  234. transform: translate(0,0);
  235. transition: 0.3s;
  236. }
  237. .partner-news-item{
  238. }
  239. }
  240. .partner-news-item{
  241. position: relative;
  242. background-color: white;
  243. height: 100%;
  244. padding-bottom: 30px;
  245. .meta{
  246. padding: 15px;
  247. h2{
  248. font: 18px/22px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  249. }
  250. .published_at{
  251. position: absolute;
  252. bottom: 15px;
  253. left: 15px;
  254. color: #a8a8a8;
  255. .icon{
  256. width: 10px;
  257. height: 10px;
  258. fill: #a8a8a8;
  259. margin-right: 5px;
  260. }
  261. }
  262. }
  263. }
  264. }
  265. .wide-widget{
  266. margin-top: 30px;
  267. .cont{
  268. position: relative;
  269. }
  270. picture:after {
  271. position: absolute;
  272. transition: 0.3s;
  273. opacity: 1;
  274. content:"";
  275. height:100%;
  276. width:100%;
  277. top:0;
  278. left:0;
  279. background: linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.5));
  280. }
  281. picture:hover::after{
  282. opacity: 0.4;
  283. }
  284. .meta{
  285. position: absolute;
  286. bottom: 0;
  287. left: 0;
  288. width: 100%;
  289. height: 100%;
  290. .topic{
  291. text-transform: uppercase;
  292. position: absolute;
  293. width: 210px;
  294. height: 40px;
  295. bottom: 5px;
  296. left: 0;
  297. right: 0;
  298. margin: auto;
  299. font: 14px/17px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  300. color: hsla(0,0%,100%,.5);
  301. display: flex;
  302. justify-content: center;
  303. align-items: center;
  304. &::before,&::after{
  305. content: "";
  306. display: block;
  307. position: absolute;
  308. height: 100%;
  309. width: 1px;
  310. background-color: hsla(0,0%,100%,.2);
  311. top: 0;
  312. left: 0;
  313. }
  314. &::after{
  315. right: 0;
  316. left: unset;
  317. }
  318. a{
  319. color: inherit;
  320. font: inherit;
  321. }
  322. }
  323. .title{
  324. position: absolute;
  325. bottom: 60px;
  326. left: 20px;
  327. color: white;
  328. margin: 0;
  329. max-width: 541px;
  330. font: 700 30px/36px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  331. a{
  332. color: white;
  333. }
  334. }
  335. .commnets{
  336. position: absolute;
  337. right: 20px;
  338. bottom: 20px;
  339. color: #a8a8a8;
  340. font: 12px/17px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  341. .icon{
  342. width: 15px;
  343. height: 15px;
  344. fill: #a8a8a8;
  345. margin-right: 5px;
  346. }
  347. }
  348. }
  349. .adv .cont{
  350. background: white;
  351. height: 100%;
  352. display: flex;
  353. align-items: center;
  354. justify-content: center;
  355. }
  356. }
  357. .text-news-widget{
  358. margin-top: 30px;
  359. &>div>.cont{
  360. background: white;
  361. padding: 0 30px;
  362. }
  363. .widget-title{
  364. font: 700 18px/22px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  365. color: #3e3e3e;
  366. padding: 30px 15px;
  367. }
  368. .text-widget-item{
  369. .cont{
  370. padding: 0 15px 30px 15px;
  371. position: relative;
  372. height: 100%;
  373. .meta{
  374. .title{
  375. font: 16px/19px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  376. color: #3e3e3e;
  377. }
  378. }
  379. .published_at{
  380. position: absolute;
  381. width: 100%;
  382. bottom: 15px;
  383. font: 14px/17px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  384. color: #a8a8a8;
  385. .comments{
  386. position: absolute;
  387. right: 45px;
  388. .icon{
  389. width: 10px;
  390. height: 10px;
  391. fill: #a8a8a8;
  392. margin-right: 5px;
  393. }
  394. }
  395. }
  396. }
  397. }
  398. }
  399. .widget-title{
  400. margin-bottom: -15px !important;
  401. margin-top: 25px !important;
  402. }
  403. .topic-widget{
  404. margin-top: 30px;
  405. .cont{
  406. position: relative;
  407. //height: 500px;
  408. overflow: hidden;
  409. @media(max-width: @size-mobile){
  410. height:auto;
  411. }
  412. }
  413. picture{
  414. filter: brightness(0.6);
  415. }
  416. .content{
  417. position: absolute;
  418. bottom: 0;
  419. left: 0;
  420. padding: 30px;
  421. max-width: 100%;
  422. @media(max-width: @size-mobile){
  423. padding: 15px;
  424. max-width: 100%;
  425. }
  426. }
  427. .topic-title{
  428. max-width: 608px;
  429. font: 36px/43px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  430. color: #fff;
  431. margin-bottom: 50px;
  432. a{
  433. color: #fff;
  434. }
  435. @media(max-width: @size-mobile){
  436. margin-bottom: 10px;
  437. font-size: 24px;
  438. }
  439. }
  440. @media(max-width: @size-mobile){
  441. @keyframes move-swipe{
  442. 0% {
  443. transform: translateX(-20px);
  444. }
  445. 50% {
  446. transform: translateX(20px);
  447. }
  448. 100% {
  449. transform: translateX(-20px);
  450. }
  451. }
  452. .swipe-icon{
  453. animation: move-swipe 4s ease infinite;
  454. display: block;
  455. position: absolute;
  456. min-width: 50px;
  457. width: 40px;
  458. height: 40px;
  459. background-image: url(/img/swipe.svg);
  460. background-size: contain;
  461. background-repeat: no-repeat;
  462. margin: auto;
  463. left: 0;
  464. right: 0;
  465. bottom: 27px;
  466. z-index: 0;
  467. fill: white;
  468. opacity: 0.5;
  469. }
  470. }
  471. .topic-news{
  472. display: flex;
  473. overflow: hidden;
  474. .swipe-icon{
  475. display: none;
  476. }
  477. @media(max-width: @size-mobile){
  478. .navigation{
  479. top: 15px;
  480. &.prev{
  481. left: -17px;
  482. }
  483. &.next{
  484. right: -15px;
  485. }
  486. }
  487. }
  488. &>div{
  489. @media(max-width: @size-mobile){
  490. display: block;
  491. min-width: 95%;
  492. &:nth-child(1){
  493. display: block;
  494. padding: 0;
  495. }
  496. }
  497. }
  498. .cont{
  499. height: 100%;
  500. padding-bottom: 30px;
  501. }
  502. .title{
  503. margin: 0;
  504. line-height: 23px;
  505. a{
  506. font: 700 16px/19px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  507. color: #fff;
  508. line-height: 0;
  509. }
  510. }
  511. .comments{
  512. color: #fff;
  513. position: absolute;
  514. bottom: 0;
  515. margin: 0;
  516. .icon{
  517. width: 10px;
  518. height: 10px;
  519. fill: #fff;
  520. margin-right: 5px;
  521. }
  522. }
  523. }
  524. }
  525. @media (max-width: @size-mobile) {
  526. #main-view-container{
  527. order: 1;
  528. padding-right: 0;
  529. padding-left: 0;
  530. }
  531. #lenta-wrapper{
  532. order: 0;
  533. padding-right: 0;
  534. padding-left: 0;
  535. .news-link{
  536. padding: 0 15px;
  537. }
  538. .lenta {
  539. margin-bottom: 15px;
  540. .list-wrapper {
  541. &>div {
  542. display: none;
  543. padding: 12px 15px 12px 15px
  544. }
  545. &>div:nth-child(-n+8){
  546. display: block;
  547. }
  548. }
  549. }
  550. }
  551. .partner-news{
  552. margin-top: 15px;
  553. &>div{
  554. margin-bottom: 15px;
  555. }
  556. }
  557. .wide-widget{
  558. //margin-top: 0px;
  559. .meta{
  560. h2.title{
  561. font-size: 16px;
  562. line-height: 20px;
  563. padding-right: 15px;
  564. }
  565. }
  566. }
  567. }
  568. .widget{
  569. &.topic-widget{
  570. .navigation{
  571. top: 75px;
  572. &.prev{
  573. left: 0px;
  574. &:after{
  575. background-color: transparent;
  576. }
  577. }
  578. &.next{
  579. right: 0px;
  580. &:after{
  581. background-color: transparent;
  582. }
  583. }
  584. }
  585. }
  586. position: relative;
  587. .navigation{
  588. position: absolute;
  589. width: 50px;
  590. height: 50px;
  591. top: 0;
  592. bottom: 0;
  593. margin: auto;
  594. z-index: 9;
  595. opacity: .8;
  596. cursor: pointer;
  597. &:after{
  598. content: "";
  599. background-color: @active-color;
  600. border-radius: 50%;
  601. height: 100%;
  602. width: 100%;
  603. color: white;
  604. display: flex;
  605. justify-content: center;
  606. align-items: center;
  607. font-size: 25px;
  608. background-repeat: no-repeat;
  609. background-position: center;
  610. }
  611. &.prev{
  612. &:after{
  613. background-image: url("/svg/clear/h-slider-prev.svg");
  614. }
  615. left: -15px;
  616. }
  617. &.next{
  618. &:after{
  619. background-image: url("/svg/clear/h-slider-next.svg");
  620. }
  621. right: -15px;
  622. }
  623. }
  624. }
  625. .partner-news.colorful{
  626. height: 402px;
  627. overflow: hidden;
  628. display: flex;
  629. flex-wrap: nowrap;
  630. position: relative;
  631. .colorful-news-item{
  632. position: relative;
  633. cursor: pointer;
  634. width: 296px;
  635. height: 402px;
  636. margin: 0 15px;
  637. overflow: hidden;
  638. display: flex;
  639. min-width: 296px;
  640. @media(max-width: @size-mobile){
  641. min-width: calc(100% - 30px);
  642. }
  643. a{
  644. color: #fff;
  645. text-decoration: none;
  646. &.button{
  647. color: @active-color;
  648. font-size: 16px;
  649. }
  650. }
  651. .background{
  652. width: 100%;
  653. height: 100%;
  654. display: flex;
  655. justify-content: center;
  656. picture{
  657. height: 100%;
  658. img{
  659. height: 100%;
  660. }
  661. }
  662. }
  663. &:before{
  664. content: "";
  665. position: absolute;
  666. width: 100%;
  667. height: 100%;
  668. opacity: .8;
  669. z-index: 1;
  670. }
  671. &.orange:before{
  672. background-color: #979795;
  673. }
  674. &.blue:before{
  675. background-color: #3b5573;
  676. }
  677. }
  678. .rubric{
  679. position: absolute;
  680. display: flex;
  681. top: 15px;
  682. width: 100%;
  683. padding: 0 13px;
  684. letter-spacing: .08em;
  685. white-space: nowrap;
  686. text-transform: uppercase;
  687. color: #fff;
  688. font: 700 12px/17px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  689. z-index: 2;
  690. a{
  691. margin: 0 15px;
  692. }
  693. &:before, &:after{
  694. content: "";
  695. width: 100%;
  696. height: 1px;
  697. background: white;
  698. align-self: center;
  699. }
  700. }
  701. .title{
  702. position: absolute;
  703. top:85px;
  704. width: 100%;
  705. text-align: center;
  706. padding: 20px;
  707. z-index: 2;
  708. font: 24px/29px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  709. .comments{
  710. display: block;
  711. font-size: 14px;
  712. color: #fff;
  713. svg{
  714. fill: #fff;
  715. width: 12px;
  716. margin-right: 7px;
  717. }
  718. }
  719. }
  720. }
  721. #tfilters-modal{
  722. top: 40%;
  723. width: 500px;
  724. padding: 30px;
  725. right: 60px;
  726. left: 0;
  727. margin: auto;
  728. height:auto;
  729. border:solid 1px #eee;
  730. }
  731. .mymodal{
  732. position: fixed;
  733. top: 0;
  734. left: 0;
  735. z-index: 1050;
  736. width: 100%;
  737. height: 100%;
  738. overflow: hidden;
  739. outline: 0;
  740. }
  741. .checkbox-lg .form-check-input{
  742. top: .8rem;
  743. transform: scale( 1.4 );
  744. margin-right: 0.7rem;
  745. }
  746. .checkbox-lg .form-check-label {
  747. padding-top: 13px;
  748. font-size: 16px;
  749. padding-left: 4px;
  750. }
  751. .checkbox-xl .form-check-input {
  752. top: 1.2rem;
  753. transform:scale( 1.7 );
  754. margin-right: 0.8rem;
  755. }
  756. .checkbox-xl .form-check-label {
  757. padding-top: 19px;
  758. font-size: 19px;
  759. padding-left: 5px;
  760. }
  761. .btn-gray{
  762. background: rgba(59,85,115,.08);
  763. border-radius: 4px;
  764. color: #3b5573;
  765. padding: 0 30px;
  766. height: 40px;
  767. display: flex;
  768. justify-content: center;
  769. align-items: center;
  770. }