style.less 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. @import "variables";
  2. @import "fonts";
  3. @import "layouts/desktop/desktop";
  4. @import "components/main_page";
  5. @import "components/podcasts";
  6. @import "components/post";
  7. @import "components/archive";
  8. @import "components/search";
  9. @import "grid";
  10. body{
  11. -webkit-font-smoothing: antialiased;
  12. -webkit-text-size-adjust: 100%;
  13. font: 12px/22px "Golos Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Ubuntu,Arial,sans-serif;
  14. .fixed_social_links{
  15. position: fixed;
  16. right: 0;
  17. width: 50px;
  18. height: 135px;
  19. background: @border-gray;
  20. top: 0;
  21. bottom: 0;
  22. margin: auto;
  23. z-index: 999;
  24. .icons-container{
  25. display: flex;
  26. flex-direction: column;
  27. width: 100%;
  28. }
  29. a{
  30. text-align: center;
  31. svg{
  32. &.icon-vk{
  33. height: 18px;
  34. width: 50px;
  35. fill: #0A5DFE;
  36. margin-top: 15px;
  37. }
  38. &.icon-ok{
  39. width: 23px;
  40. height: 35px;
  41. fill: orange;
  42. }
  43. &.icon-tg{
  44. width: 30px;
  45. height: 50px;
  46. }
  47. }
  48. }
  49. }
  50. ul{
  51. list-style: none;
  52. padding: 0;
  53. }
  54. .button-gray{
  55. padding: 0 16px 0 20px;
  56. height: 32px;
  57. background-color: #f5f5f5;
  58. border-radius: 36px;
  59. }
  60. a{
  61. text-decoration: none;
  62. color: #3E3E42;
  63. outline: none;
  64. transition: .3s cubic-bezier(.645,.045,.355,1);
  65. &:hover{
  66. color: #3b5573;
  67. text-decoration: none;
  68. }
  69. }
  70. .button{
  71. position: relative;
  72. display: inline-flex;
  73. justify-content: center;
  74. align-items: center;
  75. margin: 0;
  76. border: none;
  77. cursor: pointer;
  78. outline: 0;
  79. z-index: 10;
  80. transition: .3s cubic-bezier(.645, .045, .355, 1);
  81. -webkit-appearance: none;
  82. border-radius: 50px;
  83. background: #f5f5f5;
  84. padding: 3px 12px;
  85. color: #ff7f00;
  86. white-space: nowrap;
  87. &_gray{
  88. padding: 0 16px 0 20px;
  89. height: 32px;
  90. background-color: #f5f5f5;
  91. border-radius: 36px;
  92. }
  93. }
  94. .hidden{
  95. display:none;
  96. }
  97. }
  98. div.picture-cont-16x9{
  99. position: relative;
  100. width: 100%;
  101. padding-bottom: 56.25%;
  102. overflow: hidden;
  103. picture{
  104. position: absolute;
  105. top:0;
  106. left: 0;
  107. width: 100%;
  108. height: 100%;
  109. img{
  110. aspect-ratio: 16/9;
  111. object-fit: cover;
  112. height: 100%;
  113. }
  114. }
  115. }
  116. .sidemenu_overlay, .sidemenu_rubrics_overlay{
  117. display: none;
  118. z-index: 99999;
  119. .sidemenu_content{
  120. max-height: calc( 100% - 50px );
  121. overflow: scroll;
  122. }
  123. &.active{
  124. display: block;
  125. }
  126. }
  127. @media(max-width: 700px){
  128. .fixed_social_links{ display: none}
  129. }
  130. @media(max-width: @size-mobile){
  131. //.post h1{ font-size: 25px; hyphens: auto;} Убрал по просьбе редакции, см. телеграм чат от 2023-12-13
  132. .post h1{ font-size: 25px}
  133. .post h2{ font-size: 23px}
  134. .post h3{ font-size: 16px}
  135. .post h4{ font-size: 14px}
  136. .post h5{ font-size: 14px}
  137. .post .text h6{ font-size: 14px}
  138. .sidemenu_overlay, .sidemenu_rubrics_overlay {
  139. display: block;
  140. }
  141. .hamburger, .dots{
  142. position: relative;
  143. width: 20px;
  144. &.is-active{
  145. .hamburger-box{
  146. transform: rotate(45deg);
  147. &:before{
  148. top: 0;
  149. transform: rotate(90deg);
  150. }
  151. &:after{
  152. display: none;
  153. }
  154. }
  155. }
  156. .hamburger-box{
  157. display: block;
  158. position: absolute;
  159. height: 2px;
  160. width: 100%;
  161. top: 0px;
  162. bottom: 0;
  163. margin: auto;
  164. background: black;
  165. &:before{
  166. content: "";
  167. display: block;
  168. position: absolute;
  169. height: 2px;
  170. width: 100%;
  171. top: -6px;
  172. background: black;
  173. }
  174. &:after{
  175. content: "";
  176. display: block;
  177. position: absolute;
  178. height: 2px;
  179. width: 100%;
  180. top: 6px;
  181. background: black;
  182. }
  183. }
  184. }
  185. }
  186. .desktop-search{
  187. display: flex;
  188. @media(max-width: @size-mobile){
  189. display: none;
  190. }
  191. .search_form{
  192. display: flex;
  193. flex-grow: 1;
  194. align-items: center;
  195. border: 1px solid #eaeaea;
  196. border-radius: 50px;
  197. h6{
  198. margin: 0;
  199. margin-right: 15px;
  200. }
  201. input{
  202. display: block;
  203. border: none;
  204. flex-grow: 1;
  205. border-top-left-radius: 50px;
  206. border-bottom-left-radius: 50px;
  207. outline: none;
  208. padding: 4px 3px 4px 26px;
  209. width: 20%;
  210. background-image: url(/img/search.svg);
  211. background-repeat: no-repeat;
  212. background-size: 14px;
  213. background-position: 9px 8px;
  214. }
  215. button{
  216. display: block;
  217. border: none;
  218. background: #f5f5f5;
  219. color: #f6911f;
  220. border-top-right-radius: 50px;
  221. border-bottom-right-radius: 50px;
  222. padding: 4px 10px;
  223. outline: none;
  224. }
  225. }
  226. @media(max-width: 375px){
  227. display: none;
  228. }
  229. }
  230. .header-banner{
  231. .header-banner_desktop{
  232. display: block;
  233. position: relative;
  234. min-height: 200px;
  235. text-align: center;
  236. }
  237. .header-banner_mobile{
  238. position: relative;
  239. .placeholder{
  240. position: absolute;
  241. opacity: 1;
  242. transition: .3s;
  243. z-index: 2;
  244. height: 100%;
  245. top: 0;
  246. left: 0;
  247. margin: auto;
  248. right: 0;
  249. background: url(/img/adv_placeholder.jpg) no-repeat;
  250. background-size: contain;
  251. background-position: center;
  252. &::after{
  253. //content: "загрузка рекламы";
  254. position: absolute;
  255. bottom: 102px;
  256. font-size: 8px;
  257. color: gray;
  258. margin: auto;
  259. width: 100%;
  260. left: 0;
  261. text-transform: uppercase;
  262. }
  263. }
  264. }
  265. }