header.less 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558
  1. @import "stories";
  2. header {
  3. #js-header-bottom-id {
  4. &.fixed {
  5. position: fixed;
  6. top: 0;
  7. z-index: 99999;
  8. width: 100%;
  9. }
  10. }
  11. .nav-cont{
  12. @media(max-width: @size-mobile){
  13. max-width: 100%;
  14. overflow: hidden;
  15. position: relative;
  16. .header__bottom{
  17. .header-bottom__nav{
  18. display: none;
  19. }
  20. .header-bottom__wrapper{
  21. .header-bottom__side{
  22. display: none;
  23. }
  24. }
  25. }
  26. .burger{
  27. position: absolute;
  28. height: 30px;
  29. width: 25px;
  30. top: 0;
  31. bottom: 0;
  32. right: 15px;
  33. margin: auto;
  34. .hamburger{
  35. display: block;
  36. position: absolute;
  37. height: 2px;
  38. width: 100%;
  39. top: 0px;
  40. bottom: 0;
  41. margin: auto;
  42. background: black;
  43. &:before{
  44. content: "";
  45. display: block;
  46. position: absolute;
  47. height: 2px;
  48. width: 100%;
  49. top: -6px;
  50. background: black;
  51. }
  52. &:after{
  53. content: "";
  54. display: block;
  55. position: absolute;
  56. height: 2px;
  57. width: 100%;
  58. top: 6px;
  59. background: black;
  60. }
  61. }
  62. }
  63. .dots{
  64. position: absolute;
  65. height: 30px;
  66. width: 25px;
  67. top: 0;
  68. bottom: 0;
  69. right: 60px;
  70. margin: auto;
  71. display: flex;
  72. justify-content: center;
  73. align-items: center;
  74. .dots-anhcor{
  75. height: 4px;
  76. width: 4px;
  77. background: #a8a8a8;
  78. border-radius: 50%;
  79. &:before,&:after{
  80. content: "";
  81. position: absolute;
  82. height: 4px;
  83. width: 4px;
  84. background: #a8a8a8;
  85. border-radius: 50%;
  86. }
  87. &:before{
  88. top: 5px;
  89. }
  90. &:after{
  91. top: 20px;
  92. }
  93. }
  94. }
  95. }
  96. }
  97. }
  98. header{
  99. position: relative;
  100. padding: 10px 0;
  101. #stories{
  102. display: none;
  103. &.stories{
  104. display: block;
  105. }
  106. }
  107. .stories_cont{
  108. display: flex;
  109. height: 100%;
  110. align-items: center;
  111. @media(max-width: @size-mobile){
  112. margin-right: -15px;
  113. }
  114. }
  115. .header-center__comments{
  116. @media (max-width: 375px){
  117. display: none;
  118. }
  119. }
  120. .header-center__info{
  121. color: #5a748b;
  122. align-items: center;
  123. display: flex;
  124. height: 100%;
  125. &-link{
  126. white-space: nowrap;
  127. color: #3b9b00;
  128. line-height: 22px;
  129. &_down{
  130. color: #ad0000;
  131. }
  132. }
  133. }
  134. .header-comments__item:not(:last-child){
  135. margin-bottom: 8px;
  136. }
  137. .header-comments__title{
  138. margin-bottom: 5px;
  139. font-size: 12px;
  140. line-height: 17px;
  141. color: #a8a8a8;
  142. text-transform: uppercase;
  143. letter-spacing: .1em;
  144. }
  145. .header-comments-item__bottom, .header-comments-item__text{
  146. line-height: 16px;
  147. max-height: 32px;
  148. overflow: hidden;
  149. font-size: 12px;
  150. }
  151. .header-comments-item__bottom{
  152. display: flex;
  153. justify-content: space-between;
  154. color: #a8a8a8;
  155. .header-comments-item__title{
  156. max-width: 355px;
  157. overflow: hidden;
  158. white-space: nowrap;
  159. text-overflow: ellipsis;
  160. }
  161. .header-comments-item__time{
  162. white-space: nowrap;
  163. }
  164. }
  165. .header__bottom{
  166. background-color: white;
  167. .header-bottom__wrapper{
  168. display: flex;
  169. justify-content: space-between;
  170. padding: 15px 0 13px;
  171. .header-bottom__main{
  172. display: flex;
  173. align-items: center;
  174. .header-bottom__logo{
  175. margin-right: 32px;
  176. }
  177. .header-bottom__nav{
  178. margin: 0 42px 0 53px;
  179. .header-nav{
  180. .header-nav__list{
  181. display: flex;
  182. list-style: none;
  183. margin: 0;
  184. .header-nav__item:not(:last-child) {
  185. margin-right: 23px;
  186. }
  187. .header-nav__link {
  188. font: 700 12px/14px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  189. text-transform: uppercase;
  190. letter-spacing: .065em;
  191. }
  192. }
  193. }
  194. }
  195. }
  196. .header-bottom__side{
  197. display: flex;
  198. .header-bottom__buttons{
  199. display: flex;
  200. align-items: center;
  201. .header-bottom__button:not(:last-child) {
  202. margin-right: 15px;
  203. }
  204. }
  205. }
  206. @media(max-width: @size-mobile){
  207. display: flex;
  208. justify-content: space-between;
  209. padding: 0;
  210. .header-bottom__main{
  211. .header-bottom__logo{
  212. margin-right:0;
  213. padding: 7px 0;
  214. }
  215. }
  216. }
  217. }
  218. }
  219. #stories{
  220. -ms-overflow-style: none; /* IE and Edge */
  221. scrollbar-width: none; /* Firefox */
  222. &::-webkit-scrollbar {
  223. display: none;
  224. }
  225. }
  226. }
  227. @media (max-width: @size-mobile){
  228. .sidemenu_overlay,.sidemenu_rubrics_overlay{
  229. position: fixed;
  230. width: 100%;
  231. height: 100%;
  232. left: 100%;
  233. top:0;
  234. background: #00000055;
  235. color: white;
  236. transition: 0.2s ease-in-out;
  237. &.active{
  238. left: 0;
  239. }
  240. .sidemenu{
  241. display: block;
  242. height: 100%;
  243. width: calc(100% - 30px);
  244. margin-left: 30px;
  245. background-color: #3b5573;
  246. .sidemenu_header{
  247. background: #eaeaea;
  248. padding: 10px;
  249. display: flex;
  250. align-items: center;
  251. .search_form{
  252. display: flex;
  253. flex-grow: 1;
  254. input{
  255. display: block;
  256. border: none;
  257. flex-grow: 1;
  258. border-top-left-radius: 50px;
  259. border-bottom-left-radius: 50px;
  260. outline: none;
  261. padding: 4px 3px 4px 26px;
  262. width: 20%;
  263. background-image: url(/img/search.svg);
  264. background-repeat: no-repeat;
  265. background-size: 14px;
  266. background-position: 9px 8px;
  267. }
  268. button{
  269. display: block;
  270. border: none;
  271. background: #f5f5f5;
  272. color: #f6911f;
  273. border-top-right-radius: 50px;
  274. border-bottom-right-radius: 50px;
  275. padding: 3px 10px;
  276. outline: none;
  277. }
  278. }
  279. .hamburger {
  280. display: flex;
  281. color: #767471;
  282. height: 15px;
  283. margin-left: 15px;
  284. .hamburger-inner {
  285. background-color: #767471;
  286. &:after{ background-color: #767471; }
  287. }
  288. }
  289. }
  290. .sidemenu_content{
  291. ul{
  292. list-style: none;
  293. padding: 0;
  294. margin-top: 15px;
  295. li{
  296. margin-bottom: 15px;
  297. a{
  298. position: relative;
  299. font-size: 20px;
  300. padding: 0 0 0 30px;
  301. text-decoration: none;
  302. color: white;
  303. font-weight: bold;
  304. }
  305. }
  306. }
  307. .header-bottom__buttons{
  308. padding: 0 30px;
  309. margin-bottom: 5px;
  310. .header-bottom__button{
  311. margin-bottom: 5px;
  312. a{
  313. width: 140px;
  314. }
  315. }
  316. }
  317. }
  318. }
  319. }
  320. }
  321. .hamburger{
  322. display: block;
  323. position: absolute;
  324. height: 15px;
  325. right: 0px;
  326. color: gray;
  327. .hamburger-inner{
  328. background-color: gray;
  329. }
  330. }
  331. @media not (max-width: @size-mobile){
  332. .burgerd {
  333. line-height: 12px;
  334. font-size: 23px;
  335. cursor: pointer;
  336. }
  337. /*
  338. .burger{
  339. position: absolute;
  340. height: 30px;
  341. width: 25px;
  342. bottom: 26px;
  343. left: 15px;
  344. margin: auto;
  345. .hamburger{
  346. display: block;
  347. position: absolute;
  348. height: 2px;
  349. width: 100%;
  350. top: 0px;
  351. bottom: 0;
  352. margin: auto;
  353. background: black;
  354. &:before{
  355. content: "";
  356. display: block;
  357. position: absolute;
  358. height: 2px;
  359. width: 100%;
  360. top: -6px;
  361. background: black;
  362. }
  363. &:after{
  364. content: "";
  365. display: block;
  366. position: absolute;
  367. height: 2px;
  368. width: 100%;
  369. top: 6px;
  370. background: black;
  371. }
  372. }
  373. }
  374. */
  375. .dots{
  376. position: absolute;
  377. height: 30px;
  378. width: 25px;
  379. top: 0;
  380. bottom: 0;
  381. right: 60px;
  382. margin: auto;
  383. display: flex;
  384. justify-content: center;
  385. align-items: center;
  386. .dots-anhcor{
  387. height: 4px;
  388. width: 4px;
  389. background: #a8a8a8;
  390. border-radius: 50%;
  391. &:before,&:after{
  392. content: "";
  393. position: absolute;
  394. height: 4px;
  395. width: 4px;
  396. background: #a8a8a8;
  397. border-radius: 50%;
  398. }
  399. &:before{
  400. top: 5px;
  401. }
  402. &:after{
  403. top: 20px;
  404. }
  405. }
  406. }
  407. .sidemenu_overlay,.sidemenu_rubrics_overlay{
  408. position: fixed;
  409. width: 100%;
  410. height: 100%;
  411. left: 100%;
  412. top:0;
  413. background: #00000055;
  414. color: white;
  415. transition: 0.2s ease-in-out;
  416. &.active{
  417. left: 0;
  418. backdrop-filter: blur(5px);
  419. }
  420. .sidemenu{
  421. display: block;
  422. height: 100%;
  423. background-color: #3b5573;
  424. width: calc(100% - 300px);
  425. margin: 0 auto;
  426. opacity: 0.9;
  427. .sidemenu_header{
  428. background: #eaeaea;
  429. padding: 10px;
  430. display: flex;
  431. align-items: center;
  432. .search_form{
  433. display: flex;
  434. flex-grow: 1;
  435. input{
  436. display: block;
  437. border: none;
  438. flex-grow: 1;
  439. border-top-left-radius: 50px;
  440. border-bottom-left-radius: 50px;
  441. outline: none;
  442. padding: 4px 3px 4px 26px;
  443. width: 20%;
  444. background-image: url(/img/search.svg);
  445. background-repeat: no-repeat;
  446. background-size: 14px;
  447. background-position: 9px 8px;
  448. }
  449. button{
  450. display: block;
  451. border: none;
  452. background: #f5f5f5;
  453. color: #f6911f;
  454. border-top-right-radius: 50px;
  455. border-bottom-right-radius: 50px;
  456. padding: 3px 10px;
  457. outline: none;
  458. }
  459. }
  460. .hamburger {
  461. display: flex;
  462. color: #767471;
  463. height: 15px;
  464. margin-left: 15px;
  465. .hamburger-inner {
  466. background-color: #767471;
  467. &:after{ background-color: #767471; }
  468. }
  469. }
  470. .hamburger, .dots{
  471. position: relative;
  472. width: 20px;
  473. &.is-active{
  474. .hamburger-box{
  475. transform: rotate(45deg);
  476. &:before{
  477. top: 0;
  478. transform: rotate(90deg);
  479. }
  480. &:after{
  481. display: none;
  482. }
  483. }
  484. }
  485. .hamburger-box{
  486. display: block;
  487. position: absolute;
  488. height: 2px;
  489. width: 100%;
  490. top: 0px;
  491. bottom: 0;
  492. margin: auto;
  493. background: black;
  494. &:before{
  495. content: "";
  496. display: block;
  497. position: absolute;
  498. height: 2px;
  499. width: 100%;
  500. top: -6px;
  501. background: black;
  502. }
  503. &:after{
  504. content: "";
  505. display: block;
  506. position: absolute;
  507. height: 2px;
  508. width: 100%;
  509. top: 6px;
  510. background: black;
  511. }
  512. }
  513. }
  514. }
  515. .sidemenu_content{
  516. margin: 20px 50px;
  517. overflow: hidden;
  518. .list-wrapper{
  519. -webkit-column-count: 4;
  520. -moz-column-count: 4;
  521. column-count: 4;
  522. border-top: 1px solid #ea943a;
  523. margin-top: 0px;
  524. padding-top: 8px;
  525. }
  526. ul{
  527. list-style: none;
  528. padding: 0;
  529. margin-top: 15px;
  530. margin-bottom: 0px;
  531. -webkit-column-count: 4;
  532. -moz-column-count: 4;
  533. column-count: 4;
  534. li{
  535. margin-bottom: 15px;
  536. a{
  537. position: relative;
  538. font-size: 20px;
  539. padding: 0 0 0 30px;
  540. text-decoration: none;
  541. color: white;
  542. font-weight: bold;
  543. }
  544. }
  545. .hr{
  546. width: 50%;
  547. border-top: solid #e8864b 1px;
  548. }
  549. }
  550. .header-bottom__buttons{
  551. display:none;
  552. }
  553. }
  554. }
  555. }
  556. }