您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

215 行
3.6 KiB

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