header.less 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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. }
  12. header{
  13. position: relative;
  14. padding: 10px 0;
  15. #stories{
  16. display: none;
  17. &.stories{
  18. display: block;
  19. }
  20. }
  21. .stories_cont{
  22. display: flex;
  23. height: 100%;
  24. align-items: center;
  25. }
  26. .header-center__info{
  27. color: #5a748b;
  28. align-items: center;
  29. display: flex;
  30. height: 100%;
  31. &-link{
  32. white-space: nowrap;
  33. color: #3b9b00;
  34. line-height: 22px;
  35. &_down{
  36. color: #ad0000;
  37. }
  38. }
  39. }
  40. .header-comments__item:not(:last-child){
  41. margin-bottom: 8px;
  42. }
  43. .header-comments__title{
  44. margin-bottom: 5px;
  45. font-size: 12px;
  46. line-height: 17px;
  47. color: #a8a8a8;
  48. text-transform: uppercase;
  49. letter-spacing: .1em;
  50. }
  51. .header-comments-item__bottom, .header-comments-item__text{
  52. line-height: 16px;
  53. max-height: 32px;
  54. overflow: hidden;
  55. font-size: 12px;
  56. }
  57. .header-comments-item__bottom{
  58. display: flex;
  59. justify-content: space-between;
  60. color: #a8a8a8;
  61. .header-comments-item__title{
  62. max-width: 355px;
  63. overflow: hidden;
  64. white-space: nowrap;
  65. text-overflow: ellipsis;
  66. }
  67. .header-comments-item__time{
  68. white-space: nowrap;
  69. }
  70. }
  71. .header__bottom{
  72. background-color: white;
  73. .header-bottom__wrapper{
  74. display: flex;
  75. justify-content: space-between;
  76. padding: 15px 0 13px;
  77. .header-bottom__main{
  78. display: flex;
  79. align-items: center;
  80. .header-bottom__logo{
  81. margin-right: 32px;
  82. }
  83. .header-bottom__nav{
  84. margin: 0 42px 0 53px;
  85. .header-nav{
  86. .header-nav__list{
  87. display: flex;
  88. list-style: none;
  89. margin: 0;
  90. .header-nav__item:not(:last-child) {
  91. margin-right: 23px;
  92. }
  93. .header-nav__link {
  94. font: 700 12px/14px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  95. text-transform: uppercase;
  96. letter-spacing: .065em;
  97. }
  98. }
  99. }
  100. }
  101. }
  102. .header-bottom__side{
  103. display: flex;
  104. .header-bottom__buttons{
  105. display: flex;
  106. align-items: center;
  107. .header-bottom__button:not(:last-child) {
  108. margin-right: 15px;
  109. }
  110. }
  111. }
  112. }
  113. }
  114. #stories{
  115. -ms-overflow-style: none; /* IE and Edge */
  116. scrollbar-width: none; /* Firefox */
  117. &::-webkit-scrollbar {
  118. display: none;
  119. }
  120. }
  121. }