index.less 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. @import (reference) '../style/themes/index.less';
  2. @keyframes number-input-cursor {
  3. 0% {
  4. opacity: 0;
  5. }
  6. 50% {
  7. opacity: 1;
  8. }
  9. 100% {
  10. opacity: 0;
  11. }
  12. }
  13. .ant-number-keyboard {
  14. color: @COLOR_TEXT_PRIMARY;
  15. width: 0;
  16. height: 0;
  17. position: relative;
  18. overflow: hidden;
  19. &-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. &-kb {
  29. background: @COLOR_BACKGROUND;
  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. &_hide {
  39. transform: translateY(100%);
  40. max-height: 0;
  41. }
  42. &_bd {
  43. display: flex;
  44. }
  45. &_row {
  46. display: flex;
  47. }
  48. &_keys {
  49. flex: 3;
  50. }
  51. &_function {
  52. flex: 1;
  53. display: flex;
  54. flex-direction: column;
  55. }
  56. &_none {
  57. height: 80 * @rpx;
  58. width: calc(100% - 96 * @rpx);
  59. padding: 0 48 * @rpx;
  60. font-size: 28 * @rpx;
  61. background-color: @COLOR_CARD;
  62. display: flex;
  63. position: relative;
  64. flex-direction: row;
  65. align-items: center;
  66. justify-content: center;
  67. border-bottom: @border-width-standard solid @COLOR_BACKGROUND;
  68. color: @COLOR_TEXT_ASSIST;
  69. }
  70. &_number {
  71. flex: 1;
  72. height: calc(100vh / 14);
  73. text-align: center;
  74. font-size: 50 * @rpx;
  75. color: @COLOR_TEXT_PRIMARY;
  76. background: @COLOR_CARD;
  77. border-right: @border-width-standard solid @COLOR_BACKGROUND;
  78. border-bottom: @border-width-standard solid @COLOR_BACKGROUND;
  79. display: flex;
  80. justify-content: center;
  81. align-items: center;
  82. user-select: none;
  83. &:active {
  84. background-color: #d3d3d3;
  85. opacity: 0.5;
  86. color: @COLOR_TEXT_PRIMARY;
  87. }
  88. }
  89. &_disable {
  90. &:active {
  91. opacity: 1;
  92. }
  93. }
  94. &_zero {
  95. flex: 2;
  96. }
  97. &_point {
  98. flex: 1;
  99. }
  100. &_transfer {
  101. background-color: @COLOR_BRAND1;
  102. color: white;
  103. flex: 1;
  104. height: calc(100vh / 14);
  105. text-align: center;
  106. font-size: 34 * @rpx;
  107. border-right: @border-width-standard solid @COLOR_BACKGROUND;
  108. border-bottom: @border-width-standard solid @COLOR_BACKGROUND;
  109. display: flex;
  110. justify-content: center;
  111. align-items: center;
  112. user-select: none;
  113. position: relative;
  114. overflow: hidden;
  115. &-btn {
  116. font-size: 32 * @rpx;
  117. font-weight: bold;
  118. }
  119. &:active {
  120. opacity: 0.9;
  121. }
  122. }
  123. &_del {
  124. position: relative;
  125. flex: none;
  126. border-right: none;
  127. &::before {
  128. display: block;
  129. position: absolute;
  130. top: 0;
  131. right: 0;
  132. bottom: 0;
  133. left: 0;
  134. content: '';
  135. }
  136. }
  137. &_iphonex-safe {
  138. height: 48 * @rpx;
  139. width: 100%;
  140. background-color: @COLOR_CARD;
  141. }
  142. &_flex {
  143. flex: 1;
  144. }
  145. &-e {
  146. background-color: @COLOR_BORDER;
  147. }
  148. }
  149. &-down {
  150. font-size: 40 * @rpx;
  151. }
  152. &-del {
  153. font-size: 50 * @rpx;
  154. }
  155. }