components.scss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. .ptc-wrapper {
  2. @include media-breakpoint-up(md) {
  3. background: #fff;
  4. &:only-of-type {
  5. min-height: 1084px;
  6. }
  7. .ptc-block {
  8. margin-bottom: 0;
  9. }
  10. }
  11. }
  12. .ptc-inner {
  13. @include media-breakpoint-up(md) {
  14. margin: auto;
  15. // padding: 0 36px;
  16. width: 750px;
  17. }
  18. }
  19. .ptc-inner-md {
  20. @include media-breakpoint-up(md) {
  21. margin: auto;
  22. width: 1168px;
  23. }
  24. }
  25. .ptc-title {
  26. padding: 36px 24px;
  27. line-height: 56px;
  28. font-size: 40px;
  29. font-weight: 600;
  30. color: #333;
  31. @include media-breakpoint-up(lg) {
  32. padding-left: 0;
  33. }
  34. }
  35. .ptc-block {
  36. margin-bottom: 24px;
  37. padding: 48px 36px;
  38. background: #fff;
  39. &:last-child {
  40. margin-bottom: 0;
  41. }
  42. @include media-breakpoint-up(md) {
  43. padding: 64px 0;
  44. }
  45. }
  46. .ptc-button-group {
  47. margin: 48px 36px 0;
  48. .ptc-button + .ptc-button {
  49. margin-top: 36px;
  50. }
  51. @include media-breakpoint-up(md) {
  52. margin: 0;
  53. padding: 32px 0 64px;
  54. }
  55. }
  56. .ptc-button {
  57. display: flex;
  58. justify-content: center;
  59. align-items: center;
  60. width: 100%;
  61. height: 92px;
  62. background: $primary-color;
  63. border-radius: 8px;
  64. font-size: 32px;
  65. font-weight: 600;
  66. color: #fff;
  67. &:active {
  68. background: $primary-color-lighten;
  69. }
  70. &.disabled {
  71. opacity: 0.5;
  72. pointer-events: none;
  73. }
  74. &--stroke {
  75. background: none;
  76. border: 2Px solid $primary-color;
  77. color: $primary-color;
  78. &:active {
  79. background: #f2f5fb;
  80. }
  81. }
  82. &[loading=true] {
  83. pointer-events: none;
  84. opacity: 0.75;
  85. position: relative;
  86. &::before {
  87. content: '';
  88. position: absolute;
  89. right: 24px;
  90. animation: rotate 1s ease-in-out infinite;
  91. @include icon('@img/loading.svg', 40px);
  92. }
  93. }
  94. }
  95. .ptc-form {
  96. &-item {
  97. margin-top: 36px;
  98. }
  99. }
  100. .ptc-input {
  101. display: block;
  102. padding: 0 28px;
  103. width: 100%;
  104. height: 100px;
  105. border-radius: 8px;
  106. border: 2px solid #d9d9d9;
  107. font-size: 32px;
  108. color: #333;
  109. }
  110. .ptc-cell {
  111. + .ptc-cell {
  112. margin-top: 84px;
  113. }
  114. }
  115. .ptc-label {
  116. margin-bottom: 48px;
  117. line-height: 44px;
  118. font-size: 32px;
  119. color: #999;
  120. }
  121. .ptc-value {
  122. font-size: 32px;
  123. color: #1A1A1A;
  124. line-height: 44px;
  125. }
  126. .ptc-tag {
  127. display: inline-block;
  128. margin-left: 32px;
  129. padding: 0 24px;
  130. line-height: 52px;
  131. font-size: 28px;
  132. font-weight: 600;
  133. color: #fff;
  134. background: $danger-color;
  135. border-radius: 30px 4px 30px 4px;
  136. }
  137. .ptc-comboinput {
  138. display: flex;
  139. .ptc-input {
  140. flex: 1;
  141. border-radius: 8px 0 0 8px;
  142. border-right: 0;
  143. }
  144. .ptc-button {
  145. padding: 0 16px;
  146. height: auto;
  147. width: auto;
  148. border-radius: 0 8px 8px 0;
  149. font-size: 28px;
  150. }
  151. }
  152. .ptc-empty {
  153. height: 900px;
  154. text-align: center;
  155. background: #fff;
  156. overflow: hidden;
  157. &-img {
  158. @include icon('@img/empty.png', 160px, 206px);
  159. display: inline-block;
  160. vertical-align: top;
  161. margin-top: 200px;
  162. }
  163. &-txt {
  164. margin-top: 48px;
  165. font-size: 32px;
  166. color: #999;
  167. }
  168. }
  169. .ptc-loading {
  170. @include media-breakpoint-up(md) {
  171. position: relative;
  172. overflow: hidden !important;
  173. &::before {
  174. content: '';
  175. position: absolute;
  176. left: 0;
  177. right: 0;
  178. top: 0;
  179. bottom: 0;
  180. background: rgba(255, 255, 255, 0.85);
  181. z-index: 10;
  182. }
  183. &::after {
  184. content: '';
  185. @include icon('@img/loading.svg', 100px);
  186. position: absolute;
  187. left: 50%;
  188. top: 45%;
  189. transform: translate(-50%, -50%);
  190. animation: rotate2 1s ease-in-out infinite;
  191. z-index: 11;
  192. }
  193. }
  194. @keyframes rotate2 {
  195. 100% {
  196. transform: translate(-50%, -50%) rotate(360deg);
  197. }
  198. }
  199. }