index.wxss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. @keyframes number-input-cursor {
  2. 0% {
  3. opacity: 0;
  4. }
  5. 50% {
  6. opacity: 1;
  7. }
  8. 100% {
  9. opacity: 0;
  10. }
  11. }
  12. .ant-number-keyboard {
  13. color: #333333;
  14. width: 0;
  15. height: 0;
  16. position: relative;
  17. overflow: hidden;
  18. }
  19. .ant-number-keyboard-modal {
  20. z-index: 998;
  21. position: fixed;
  22. bottom: 0;
  23. left: 0;
  24. width: 100vw;
  25. height: 100vh;
  26. background-color: transparent;
  27. }
  28. .ant-number-keyboard-kb {
  29. background: #f5f5f5;
  30. max-height: 600px;
  31. min-width: 100vw;
  32. overflow: hidden;
  33. position: fixed;
  34. bottom: 0;
  35. left: 0;
  36. transition: all 200ms linear;
  37. z-index: 999;
  38. }
  39. .ant-number-keyboard-kb_hide {
  40. transform: translateY(100%);
  41. max-height: 0;
  42. }
  43. .ant-number-keyboard-kb_bd {
  44. display: flex;
  45. }
  46. .ant-number-keyboard-kb_row {
  47. display: flex;
  48. }
  49. .ant-number-keyboard-kb_keys {
  50. flex: 3;
  51. }
  52. .ant-number-keyboard-kb_function {
  53. flex: 1;
  54. display: flex;
  55. flex-direction: column;
  56. }
  57. .ant-number-keyboard-kb_none {
  58. height: 40px;
  59. width: calc(100% - 96 * 0.5px);
  60. padding: 0 24px;
  61. font-size: 14px;
  62. background-color: #ffffff;
  63. display: flex;
  64. position: relative;
  65. flex-direction: row;
  66. align-items: center;
  67. justify-content: center;
  68. border-bottom: 1px solid #f5f5f5;
  69. color: #999999;
  70. }
  71. .ant-number-keyboard-kb_number {
  72. flex: 1;
  73. height: calc(100vh / 14);
  74. text-align: center;
  75. font-size: 25px;
  76. color: #333333;
  77. background: #ffffff;
  78. border-right: 1px solid #f5f5f5;
  79. border-bottom: 1px solid #f5f5f5;
  80. display: flex;
  81. justify-content: center;
  82. align-items: center;
  83. user-select: none;
  84. }
  85. .ant-number-keyboard-kb_number:active {
  86. background-color: #d3d3d3;
  87. opacity: 0.5;
  88. color: #333333;
  89. }
  90. .ant-number-keyboard-kb_disable:active {
  91. opacity: 1;
  92. }
  93. .ant-number-keyboard-kb_zero {
  94. flex: 2;
  95. }
  96. .ant-number-keyboard-kb_point {
  97. flex: 1;
  98. }
  99. .ant-number-keyboard-kb_transfer {
  100. background-color: #1677ff;
  101. color: white;
  102. flex: 1;
  103. height: calc(100vh / 14);
  104. text-align: center;
  105. font-size: 17px;
  106. border-right: 1px solid #f5f5f5;
  107. border-bottom: 1px solid #f5f5f5;
  108. display: flex;
  109. justify-content: center;
  110. align-items: center;
  111. user-select: none;
  112. position: relative;
  113. overflow: hidden;
  114. }
  115. .ant-number-keyboard-kb_transfer-btn {
  116. font-size: 16px;
  117. font-weight: bold;
  118. }
  119. .ant-number-keyboard-kb_transfer:active {
  120. opacity: 0.9;
  121. }
  122. .ant-number-keyboard-kb_del {
  123. position: relative;
  124. flex: none;
  125. border-right: none;
  126. }
  127. .ant-number-keyboard-kb_del::before {
  128. display: block;
  129. position: absolute;
  130. top: 0;
  131. right: 0;
  132. bottom: 0;
  133. left: 0;
  134. content: '';
  135. }
  136. .ant-number-keyboard-kb_iphonex-safe {
  137. height: 24px;
  138. width: 100%;
  139. background-color: #ffffff;
  140. }
  141. .ant-number-keyboard-kb_flex {
  142. flex: 1;
  143. }
  144. .ant-number-keyboard-kb-e {
  145. background-color: #eeeeee;
  146. }
  147. .ant-number-keyboard-down {
  148. font-size: 20px;
  149. }
  150. .ant-number-keyboard-del {
  151. font-size: 25px;
  152. }