Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

156 строки
3.1 KiB

  1. @use '../../_global/styles/mixins' as *;
  2. @use '../../_global/styles/vars' as *;
  3. .infobanner {
  4. margin: var(--section-margin) auto;
  5. container-type: inline-size;
  6. * > .banner {
  7. container-type: inline-size;
  8. }
  9. .banner {
  10. position: relative;
  11. display: flex;
  12. color: var(--color-text);
  13. border-radius: var(--border-radius-xs);
  14. text-decoration: none;
  15. transition: 0.25s ease;
  16. @include focus-visible;
  17. @include gradient;
  18. &.focus-visible:focus .btn {
  19. @include focus-standalone;
  20. }
  21. &:focus-visible .btn, &-moz-focusring .btn {
  22. @include focus-standalone;
  23. }
  24. &:before {
  25. content: "";
  26. position: relative;
  27. display: block;
  28. padding-top: 12.36%;
  29. @media(max-width: 567px) {
  30. padding-top: 66.6667%;
  31. }
  32. }
  33. }
  34. .is-commercial {
  35. position: absolute;
  36. display: block;
  37. z-index: 1;
  38. right: 0;
  39. top: 0;
  40. padding: 1px 7px;
  41. font-size: var(--font-size-xs);
  42. color: var(--color-text);
  43. background-color: var(--color-background);
  44. border-bottom-left-radius: var(--border-radius-xs);
  45. }
  46. .image-box {
  47. @include full-size;
  48. background-size: cover;
  49. background-position: center;
  50. img {
  51. border-radius: var(--border-radius-xs);
  52. position: relative;
  53. display: block;
  54. max-width: 100%;
  55. margin: 0 auto;
  56. width: 100%;
  57. height: 100%;
  58. object-fit: cover;
  59. }
  60. }
  61. .text-wrapper {
  62. position: relative;
  63. display: flex;
  64. justify-content: space-between;
  65. flex: 1 1 100%;
  66. background: linear-gradient(120deg, rgba(var(--swatches-primary-500-rgb), 1) 0%, rgba(var(--swatches-primary-500-rgb), 0.2) 100%);
  67. border-radius: var(--border-radius-xs);
  68. @media(max-width: 567px) {
  69. flex-direction: column;
  70. }
  71. }
  72. &:not(.has-image-box) .text-wrapper {
  73. background: none;
  74. }
  75. .text-box {
  76. padding: 18px 24px;
  77. min-height: 180px;
  78. max-width: 768px;
  79. display: flex;
  80. flex-direction: column;
  81. justify-content: center;
  82. line-height: 1.4;
  83. @media(max-width: 1339px) {
  84. min-height: 150px;
  85. }
  86. @media(max-width: 999px) {
  87. min-height: 0;
  88. padding: 12px 20px;
  89. }
  90. @media(max-width: 567px) {
  91. padding: 8px 0;
  92. margin: var(--content-box-padding);
  93. }
  94. > * {
  95. margin-top: 0.1em;
  96. margin-bottom: 0.1em;
  97. &.kicker {
  98. margin-left: 0;
  99. }
  100. }
  101. > .like-h2 {
  102. @media(max-width: 567px) {
  103. margin-top: 8px;
  104. margin-bottom: 10px;
  105. }
  106. }
  107. }
  108. .button-box {
  109. padding: 24px;
  110. display: flex;
  111. align-items: flex-end;
  112. justify-content: flex-end;
  113. margin-top: auto;
  114. @media(max-width: 999px) {
  115. padding: 16px;
  116. }
  117. @media(max-width: 767px) {
  118. padding: 0 0 20px;
  119. margin: 0 var(--content-box-padding);
  120. }
  121. @media(max-width: 567px) {
  122. padding-bottom: 30px;
  123. }
  124. .btn {
  125. background-color: var(--color-button-primary-background);
  126. color: var(--color-button-primary-text);
  127. }
  128. }
  129. /*
  130. .btn {
  131. @media(min-width: 768px) {
  132. white-space: nowrap;
  133. }
  134. }
  135. */
  136. }