subjects.less 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. .subjects {
  2. display: flex;
  3. min-height: 517px;
  4. &__background {
  5. .size(100%);
  6. position: absolute;
  7. top: 0;
  8. left: 0;
  9. background-size: cover;
  10. background-position: center center;
  11. background-repeat: no-repeat;
  12. &::before {
  13. .pseudo();
  14. .size(100%);
  15. top: 0;
  16. left: 0;
  17. background-color: rgba(@color-black, .32);
  18. }
  19. }
  20. &__wrapper {
  21. position: relative;
  22. display: flex;
  23. flex-direction: column;
  24. justify-content: flex-end;
  25. flex-grow: 1;
  26. padding: 36px 76px 36px 24px;
  27. }
  28. &__title {
  29. position: relative;
  30. margin-bottom: 46px;
  31. max-width: 608px;
  32. font: 36px/43px @font-main;
  33. color: @color-white;
  34. }
  35. &__list {
  36. position: relative;
  37. display: flex;
  38. justify-content: space-between;
  39. }
  40. &__item {
  41. flex: 0 1 240px;
  42. max-width: 240px;
  43. }
  44. }
  45. @media @media-md {
  46. .subjects {
  47. margin-left: -16px;
  48. &__list-wrapper {
  49. padding-bottom: 6px;
  50. width: calc(100vw - 32px);
  51. overflow-x: scroll;
  52. }
  53. &__list {
  54. width: 1100px;
  55. }
  56. }
  57. }
  58. @media @media-sm {
  59. .subjects {
  60. min-height: 370px;
  61. &__title {
  62. margin-bottom: 31px;
  63. font: 24px/29px @font-main;
  64. }
  65. }
  66. }
  67. .subjects-item {
  68. &__title {
  69. margin-bottom: 12px;
  70. min-height: 76px;
  71. font: 700 16px/19px @font-main;
  72. color: @color-white;
  73. }
  74. &__date {
  75. font: 14px/17px @font-main;
  76. color: @color-grey-dark;
  77. }
  78. }