style.less 5.3 KB

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