style.less 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  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{
  133. font-size: 25px;
  134. @media (resolution: 150dpi) {
  135. font-size: 18px;
  136. }
  137. }
  138. .post h2{ font-size: 23px}
  139. .post h3{ font-size: 16px}
  140. .post h4{ font-size: 14px}
  141. .post h5{ font-size: 14px}
  142. .post .text h6{ font-size: 14px}
  143. .sidemenu_overlay, .sidemenu_rubrics_overlay {
  144. display: block;
  145. }
  146. .hamburger, .dots{
  147. position: relative;
  148. width: 20px;
  149. &.is-active{
  150. .hamburger-box{
  151. transform: rotate(45deg);
  152. &:before{
  153. top: 0;
  154. transform: rotate(90deg);
  155. }
  156. &:after{
  157. display: none;
  158. }
  159. }
  160. }
  161. .hamburger-box{
  162. display: block;
  163. position: absolute;
  164. height: 2px;
  165. width: 100%;
  166. top: 0px;
  167. bottom: 0;
  168. margin: auto;
  169. background: black;
  170. &:before{
  171. content: "";
  172. display: block;
  173. position: absolute;
  174. height: 2px;
  175. width: 100%;
  176. top: -6px;
  177. background: black;
  178. }
  179. &:after{
  180. content: "";
  181. display: block;
  182. position: absolute;
  183. height: 2px;
  184. width: 100%;
  185. top: 6px;
  186. background: black;
  187. }
  188. }
  189. }
  190. }
  191. .desktop-search{
  192. display: flex;
  193. @media(max-width: @size-mobile){
  194. display: none;
  195. }
  196. .search_form{
  197. display: flex;
  198. flex-grow: 1;
  199. align-items: center;
  200. border: 1px solid #eaeaea;
  201. border-radius: 50px;
  202. h6{
  203. margin: 0;
  204. margin-right: 15px;
  205. }
  206. input{
  207. display: block;
  208. border: none;
  209. flex-grow: 1;
  210. border-top-left-radius: 50px;
  211. border-bottom-left-radius: 50px;
  212. outline: none;
  213. padding: 4px 3px 4px 26px;
  214. width: 20%;
  215. background-image: url(/img/search.svg);
  216. background-repeat: no-repeat;
  217. background-size: 14px;
  218. background-position: 9px 8px;
  219. }
  220. button{
  221. display: block;
  222. border: none;
  223. background: #f5f5f5;
  224. color: #f6911f;
  225. border-top-right-radius: 50px;
  226. border-bottom-right-radius: 50px;
  227. padding: 4px 10px;
  228. outline: none;
  229. }
  230. }
  231. @media(max-width: 375px){
  232. display: none;
  233. }
  234. }
  235. .header-banner{
  236. .header-banner_desktop{
  237. display: block;
  238. position: relative;
  239. min-height: 200px;
  240. text-align: center;
  241. }
  242. .header-banner_mobile{
  243. position: relative;
  244. .placeholder{
  245. position: absolute;
  246. opacity: 1;
  247. transition: .3s;
  248. z-index: 2;
  249. height: 100%;
  250. top: 0;
  251. left: 0;
  252. margin: auto;
  253. right: 0;
  254. background: url(/img/adv_placeholder.jpg) no-repeat;
  255. background-size: contain;
  256. background-position: center;
  257. &::after{
  258. //content: "загрузка рекламы";
  259. position: absolute;
  260. bottom: 102px;
  261. font-size: 8px;
  262. color: gray;
  263. margin: auto;
  264. width: 100%;
  265. left: 0;
  266. text-transform: uppercase;
  267. }
  268. }
  269. }
  270. }