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

236 строки
4.3 KiB

  1. @import "../../variables/wood";
  2. @import "ihk-finder-form";
  3. .ihk-switch {
  4. position: absolute;
  5. left: 42px;
  6. top: 100%;
  7. width: 400px;
  8. font-size: 18px;
  9. transform: translate3d(0, 20px, 0);
  10. @include hide;
  11. &::after {
  12. content: "";
  13. position: absolute;
  14. width: 0;
  15. height: 0;
  16. border-style: solid;
  17. border-width: 0 16px 16px 16px;
  18. border-color: transparent transparent $color-primary transparent;
  19. border-color: transparent transparent var(--theme-color-primary, $color-primary) transparent;
  20. bottom: 100%;
  21. left: 30px;
  22. }
  23. @media(max-width: 1199px) {
  24. left: 30px;
  25. &::after {
  26. border-width: 0 12px 12px 12px;
  27. left: 24px;
  28. }
  29. }
  30. @media(max-width: 767px) {
  31. left: 20px;
  32. max-width: calc(100% - 40px);
  33. font-size: 16px;
  34. &::after {
  35. border-width: 0 10px 10px 10px;
  36. left: 20px;
  37. }
  38. }
  39. &[data-show-step] {
  40. @include show;
  41. transform: translate3d(0, 0, 0);
  42. &.hide {
  43. @include hide;
  44. }
  45. }
  46. .step {
  47. position: absolute;
  48. background-color: $color-primary;
  49. background-color: var(--theme-color-primary, $color-primary);
  50. color: white;
  51. padding: 50px 30px 30px;
  52. outline: 1px solid rgba(white, 0.1);
  53. display: none;
  54. width: 100%;
  55. @media(max-width: 767px) {
  56. padding: 44px 20px 22px;
  57. }
  58. }
  59. &[data-show-step="geolocation"] [data-step="geolocation"],
  60. &[data-show-step="form"] [data-step="form"],
  61. &[data-show-step="switch"] [data-step="switch"],
  62. &[data-show-step="success"] [data-step="success"] {
  63. display: block;
  64. }
  65. [data-step="success"] {
  66. text-align: center;
  67. .large {
  68. display: block;
  69. font-size: 1.3em;
  70. }
  71. &::after {
  72. content: "";
  73. display: block;
  74. height: 40px;
  75. background-image: url('../../../img/loader-switch.gif');
  76. background-size: 40px;
  77. background-position: center;
  78. margin: 22px 0 8px;
  79. background-repeat: no-repeat;
  80. }
  81. }
  82. .hidden {
  83. display: none;
  84. }
  85. a {
  86. color: white;
  87. &:hover {
  88. color: $color-secondary;
  89. }
  90. }
  91. .small, .hidden {
  92. font-size: 16px;
  93. @media(max-width: 767px) {
  94. font-size: 13px;
  95. }
  96. }
  97. .buttons {
  98. margin-top: 28px;
  99. margin-left: -2px;
  100. margin-right: -8px;
  101. @media(max-width: 767px) {
  102. margin-top: 20px;
  103. }
  104. }
  105. .btn {
  106. position: relative;
  107. overflow: hidden;
  108. transition: 0.2s ease;
  109. background-color: #E3EBF5;
  110. color: #003366;
  111. &:not(.accept-location):hover {
  112. box-shadow: 0 0 0 5px rgba(#E3EBF5, 0.3), 0 0 4px rgba(0, 0, 0, 0.1);
  113. }
  114. &::before {
  115. transition: none;
  116. }
  117. @media(max-width: 359px) {
  118. padding-left: 12px;
  119. padding-right: 12px;
  120. &.has-icon {
  121. padding-right: 40px;
  122. &::before {
  123. right: 10px;
  124. }
  125. }
  126. }
  127. + .btn {
  128. margin-left: 12px;
  129. @media(max-width: 767px) {
  130. margin-left: 6px;
  131. }
  132. }
  133. &.accept-location {
  134. background-color: $color-secondary;
  135. background-color: var(--theme-color-secondary, $color-secondary);
  136. }
  137. /*
  138. &:hover {
  139. background-color: $color-secondary;
  140. background-color: var(--theme-color-secondary, $color-secondary);
  141. color: $color-primary;
  142. color: var(--theme-color-primary, $color-primary);
  143. box-shadow: 0 0 0 5px rgba($color-secondary, 0.4), 0 0 4px rgba($color-black, 0.1);
  144. }
  145. */
  146. }
  147. .closer {
  148. position: absolute;
  149. top: 0;
  150. right: 0;
  151. width: 50px;
  152. height: 50px;
  153. border: 0;
  154. background-color: transparent;
  155. cursor: pointer;
  156. &::before, &::after {
  157. content: "";
  158. position: absolute;
  159. left: 50%;
  160. top: 50%;
  161. width: 24px;
  162. height: 2px;
  163. transform: translate(-50%, -50%) rotate(45deg);
  164. background-color: white;
  165. transition: 0.2s ease;
  166. @media(max-width: 767px) {
  167. width: 20px;
  168. }
  169. }
  170. &::after {
  171. transform: translate(-50%, -50%) rotate(-45deg);
  172. }
  173. @media(min-width: 768px) {
  174. &:hover {
  175. &::before, &::after {
  176. width: 28px;
  177. }
  178. }
  179. }
  180. @media(max-width: 767px) {
  181. width: 44px;
  182. height: 44px;
  183. }
  184. }
  185. strong {
  186. font-weight: 600;
  187. }
  188. .ihk-finder {
  189. margin-top: 16px;
  190. margin-bottom: 6px;
  191. @media(max-width: 767px) {
  192. margin-top: 12px;
  193. }
  194. }
  195. }