Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. $header-height-desktop: pxToRem(80px);
  2. $header-height-mobile: pxToRemMd(74px);
  3. .c-modal-wrap {
  4. position: fixed;
  5. top: 0;
  6. left: 0;
  7. right: 0;
  8. bottom: 0;
  9. z-index: $index-xl;
  10. background-color: $black-1;
  11. &.c-modal-wrap--no-bg {
  12. background-color: transparent;
  13. }
  14. &.c-modal-wrap--over-modal {
  15. background-color: transparent;
  16. z-index: $index-xxl;
  17. }
  18. &.c-modal-wrap--sm {
  19. .c-modal {
  20. max-width: pxToRem(390px);
  21. width: 100%;
  22. }
  23. .c-modal__header {
  24. padding: pxToRem(12px);
  25. }
  26. }
  27. .c-modal__header {
  28. padding: pxToRem(12px);
  29. }
  30. &.c-modal-wrap--md {
  31. .c-modal {
  32. max-width: pxToRem(521px);
  33. width: 100%;
  34. }
  35. .c-modal__header {
  36. padding: pxToRem(12px) pxToRem(20px);
  37. }
  38. }
  39. &.c-modal-wrap--lg {
  40. .c-modal {
  41. max-width: pxToRem(782px);
  42. width: 100%;
  43. }
  44. .c-modal__header {
  45. padding: pxToRem(12px) pxToRem(20px);
  46. }
  47. }
  48. &.c-modal-wrap--close {
  49. display: none;
  50. }
  51. @include media-below($bp-xl) {
  52. &,
  53. &.c-modal-wrap--sm,
  54. &.c-modal-wrap--md {
  55. .c-modal {
  56. margin: $header-height-mobile auto $header-height-mobile;
  57. max-height: calc(100vh - #{2 * $header-height-mobile});
  58. }
  59. }
  60. }
  61. @include media-below($bp-md) {
  62. &,
  63. &.c-modal-wrap--sm,
  64. &.c-modal-wrap--md {
  65. .c-modal__header {
  66. padding: pxToRemMd(16px);
  67. }
  68. .c-modal__title {
  69. font-size: pxToRemMd(16px);
  70. line-height: 1.4;
  71. }
  72. .c-modal__close {
  73. width: pxToRemMd(24px);
  74. height: pxToRemMd(24px);
  75. }
  76. .c-modal__back {
  77. width: pxToRemMd(24px);
  78. height: pxToRemMd(24px);
  79. margin-right: pxToRemMd(8px);
  80. }
  81. .c-modal__back-button {
  82. margin-left: -#{pxToRemMd(8px)};
  83. }
  84. .c-modal,
  85. &.c-modal-wrap--lg .c-modal {
  86. max-width: 100%;
  87. max-height: 100vh;
  88. height: 100%;
  89. margin: 0;
  90. border-radius: 0;
  91. }
  92. &.c-modal-wrap--mobile-modal {
  93. display: flex;
  94. padding: 0 pxToRemMd(20px);
  95. .c-modal {
  96. height: auto;
  97. margin: auto;
  98. border-radius: 2px;
  99. }
  100. }
  101. }
  102. }
  103. }
  104. .c-modal {
  105. @include flex-column;
  106. box-shadow: $box-shadow;
  107. border-radius: $border-radius;
  108. background-color: $white;
  109. margin: $header-height-desktop auto $header-height-desktop;
  110. max-height: calc(100vh - #{2 * $header-height-desktop});
  111. position: relative;
  112. }
  113. .c-modal__header {
  114. display: flex;
  115. align-items: center;
  116. box-shadow: $box-shadow;
  117. z-index: $index-xxs;
  118. }
  119. .c-modal__title {
  120. @include text-ellipsis;
  121. font-size: pxToRem(16px);
  122. font-weight: 600;
  123. line-height: 1.5;
  124. color: $dark-blue;
  125. padding-right: pxToRem(10px);
  126. margin-right: auto;
  127. }
  128. .c-modal__close {
  129. width: pxToRem(16px);
  130. height: pxToRem(16px);
  131. color: $dark-blue;
  132. }
  133. .c-modal__back {
  134. width: pxToRem(16px);
  135. height: pxToRem(16px);
  136. color: $dark-blue;
  137. margin-right: pxToRem(10px);
  138. }
  139. .c-modal__body {
  140. @include flex-column;
  141. flex: 1 1 auto;
  142. overflow: auto;
  143. }