catalog.less 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. .catalog {
  2. &__wrapper {
  3. padding-top: 61px;
  4. @media (max-width: 576px) {
  5. padding-top: 20px;
  6. }
  7. }
  8. &__container {
  9. display: flex;
  10. justify-content: space-between;
  11. padding: 15px 64px 56px 0;
  12. background-color: @color-white;
  13. }
  14. &__side {
  15. flex: 1 0 320px;
  16. max-width: 320px;
  17. margin-right: 10px;
  18. }
  19. &__main {
  20. flex: 0 1 826px;
  21. max-width: 826px;
  22. @media (max-width: 576px) {
  23. flex: 0 1 100%;
  24. max-width: 100%;
  25. }
  26. }
  27. &__menu {
  28. margin-bottom: 75px;
  29. }
  30. &__side-banner {
  31. display: flex;
  32. justify-content: flex-end;
  33. padding: 0 17px;
  34. }
  35. }
  36. .catalog-menu {
  37. border-right: 1px solid #EEEEEE;
  38. &__link {
  39. display: block;
  40. position: relative;
  41. padding: 15px 30px;
  42. font: 18px/22px @font-main;
  43. &.is-active {
  44. background-color: @color-page;
  45. font-weight: 700;
  46. &::before {
  47. background-color: @color-page;
  48. }
  49. }
  50. &.nuxt-link-active{
  51. background: rgba(59, 85, 115, 0.1);
  52. }
  53. &_green,
  54. &_orange,
  55. &_pink,
  56. &.is-active {
  57. &::before {
  58. .pseudo();
  59. .size(27px, 100%);
  60. top: 0;
  61. left: -27px;
  62. }
  63. }
  64. &_green {
  65. background-color: #DBEFD7;
  66. &::before {
  67. background-color: #DBEFD7;
  68. }
  69. }
  70. &_orange {
  71. background-color: #FFF0DA;
  72. &::before {
  73. background-color: #FFF0DA;
  74. }
  75. }
  76. &_pink {
  77. background-color: #FFDAF0;
  78. &::before {
  79. background-color: #FFDAF0;
  80. }
  81. }
  82. }
  83. }
  84. .catalog-main {
  85. &__topic {
  86. margin-bottom: 24px;
  87. }
  88. &__topic-list {
  89. display: flex;
  90. }
  91. &__topic-item {
  92. position: relative;
  93. &:not(:last-child) {
  94. margin-right: 27px;
  95. &::before {
  96. .pseudo();
  97. content: '•';
  98. right: -16px;
  99. color: @color-grey-dark;
  100. }
  101. .catalog-main__topic-link {
  102. color: @color-dark-blue;
  103. }
  104. }
  105. }
  106. &__topic-link {
  107. font: 12px/14px @font-main;
  108. color: @color-grey-dark;
  109. letter-spacing: 0.15em;
  110. text-transform: uppercase;
  111. }
  112. &__header {
  113. display: flex;
  114. align-items: center;
  115. margin-bottom: 57px;
  116. }
  117. &__filter {
  118. margin-left: auto;
  119. cursor: pointer;
  120. }
  121. &__subscribe {
  122. margin-left: 20px;
  123. }
  124. &__title {
  125. font: 700 28px/36px @font-main;
  126. }
  127. }
  128. .catalog-list {
  129. &__item {
  130. padding-bottom: 24px;
  131. border-bottom: 1px solid #E5E5E5;
  132. &:not(:last-child) {
  133. margin-bottom: 24px;
  134. }
  135. &_banner {
  136. border: none;
  137. padding-bottom: 0;
  138. .banner {
  139. margin: 0;
  140. }
  141. }
  142. }
  143. &__news {
  144. margin-bottom: 49px;
  145. }
  146. &__actions {
  147. margin-bottom: 25px;
  148. }
  149. }
  150. .catalog-item {
  151. &__link {
  152. display: flex;
  153. justify-content: space-between;
  154. @media (max-width: 576px) {
  155. flex-direction: column;
  156. }
  157. }
  158. &__side {
  159. flex: 1 0;
  160. max-width: 220px;
  161. margin-right: 10px;
  162. @media (max-width: 576px) {
  163. margin-right: 0;
  164. }
  165. }
  166. &__main {
  167. flex: 0 1 563px;
  168. max-width: 563px;
  169. @media (max-width: 576px) {
  170. flex:none;
  171. }
  172. }
  173. &__figure {
  174. .size(100%, 136px);
  175. }
  176. &__img {
  177. width: 100%;
  178. max-height: 100%;
  179. object-fit: cover;
  180. @media (max-width: 576px) {
  181. max-height: 235px;
  182. }
  183. }
  184. &__main-top {
  185. display: flex;
  186. align-items: center;
  187. margin-bottom: 18px;
  188. min-height: 101px;
  189. font: 24px/29px @font-main;
  190. }
  191. &__main-info {
  192. display: flex;
  193. }
  194. &__main-info-element {
  195. display: flex;
  196. align-items: center;
  197. font: 12px/17px @font-main;
  198. color: @color-grey-dark;
  199. &:not(:last-child) {
  200. margin-right: 33px;
  201. }
  202. span {
  203. display: inline-block;
  204. &:not(:last-child) {
  205. margin-right: 8px;
  206. }
  207. }
  208. }
  209. &__banner {
  210. margin-top: 20px;
  211. }
  212. }
  213. .catalog-pagination {
  214. &__list {
  215. display: flex;
  216. align-items: center;
  217. }
  218. &__link {
  219. .size(41px);
  220. display: flex;
  221. justify-content: center;
  222. align-items: center;
  223. background-color: transparent;
  224. border-radius: 11px;
  225. color: @color-blue-darken;
  226. font: 14px/1 @font-main;
  227. &.is-active {
  228. background-color: rgba(@color-blue-darken, .08);
  229. pointer-events: none;
  230. }
  231. &_next {
  232. .size(auto);
  233. }
  234. }
  235. }