header.less 12 KB

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