index.less 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  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-rare-words-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: rgba(0, 0, 0, 0.45);
  27. &.hide {
  28. visibility: hidden;
  29. }
  30. }
  31. &-kb {
  32. background: @COLOR_BACKGROUND;
  33. max-height: 1200 * @rpx;
  34. min-width: 100vw;
  35. position: fixed;
  36. bottom: 0;
  37. left: 0;
  38. transition: all 200ms linear;
  39. z-index: 999;
  40. &.hide {
  41. transform: translateY(100%);
  42. max-height: 0;
  43. }
  44. &_iphonex-safe {
  45. height: calc(constant(safe-area-inset-bottom) - 20 * @rpx);
  46. height: calc(env(safe-area-inset-bottom) - 20 * @rpx);
  47. width: 100%;
  48. background-color: @COLOR_BACKGROUND;
  49. }
  50. }
  51. &_header {
  52. background-color: @COLOR_BACKGROUND;
  53. }
  54. &-input_value {
  55. position: absolute;
  56. top: -64 * @rpx;
  57. left: 0;
  58. display: inline-block;
  59. height: 64 * @rpx;
  60. line-height: 64 * @rpx;
  61. border-top-left-radius: 8 * @rpx;
  62. border-top-right-radius: 8 * @rpx;
  63. background-color: @COLOR_BACKGROUND;
  64. padding-left: 20 * @rpx;
  65. padding-right: 20 * @rpx;
  66. border: 1 * @rpx solid #eee;
  67. border-bottom: 0;
  68. letter-spacing: 2 * @rpx;
  69. box-sizing: border-box;
  70. font-size: 24 * @rpx;
  71. color: #333;
  72. &.hide {
  73. display: none;
  74. }
  75. }
  76. &-match_words {
  77. display: flex;
  78. flex-flow: row nowrap;
  79. align-items: flex-start;
  80. justify-content: flex-start;
  81. padding: 20 * @rpx 24 * @rpx 20 * @rpx 8 * @rpx;
  82. background: @COLOR_BACKGROUND;
  83. overflow: hidden;
  84. font-family: 'rare-words-font';
  85. &.absolute {
  86. position: absolute;
  87. top: 0;
  88. left: 0;
  89. width: 100%;
  90. height: 100%;
  91. box-sizing: border-box;
  92. z-index: 10000;
  93. padding-left: 0;
  94. overflow: auto;
  95. }
  96. &_wrap {
  97. min-height: 96 * @rpx;
  98. &::before {
  99. content: '';
  100. display: block;
  101. position: absolute;
  102. top: 0;
  103. left: 0;
  104. background: @COLOR_TEXT_WEAK_DEFAULT;
  105. width: 100%;
  106. height: 2 * @rpx;
  107. transform: scaleY(0.5);
  108. transform-origin: 0 0;
  109. }
  110. }
  111. &_item_tips {
  112. padding-left: 8 * @rpx;
  113. font-size: 28 * @rpx;
  114. color: @COLOR_TEXT_SECONDARY_DEFAULT;
  115. line-height: 34 * @rpx;
  116. &.loading {
  117. display: flex;
  118. flex-flow: row nowrap;
  119. align-items: center;
  120. }
  121. }
  122. &_inner {
  123. flex: 1;
  124. display: flex;
  125. flex-flow: row wrap;
  126. align-items: center;
  127. justify-content: flex-start;
  128. overflow: hidden;
  129. height: 56 * @rpx;
  130. white-space: nowrap;
  131. box-sizing: border-box;
  132. margin-right: -32 * @rpx;
  133. padding-right: 42 * @rpx;
  134. &.all {
  135. height: auto;
  136. margin-top: -20 * @rpx;
  137. position: relative;
  138. padding-left: 8 * @rpx;
  139. padding-right: 42 * @rpx;
  140. &::after {
  141. content: '';
  142. display: block;
  143. position: absolute;
  144. left: -64 * @rpx;
  145. bottom: 0;
  146. background: @COLOR_TEXT_WEAK_DEFAULT;
  147. width: 100%;
  148. height: 2 * @rpx;
  149. transform: scaleY(0.5);
  150. transform-origin: 0 0;
  151. }
  152. }
  153. }
  154. &_item {
  155. color: @COLOR_TEXT_PRIMARY_DEFAULT;
  156. width: 73 * @rpx;
  157. padding-left: 16 * @rpx;
  158. padding-right: 16 * @rpx;
  159. box-sizing: border-box;
  160. &.all {
  161. padding-top: 20 * @rpx;
  162. padding-bottom: 20 * @rpx;
  163. position: relative;
  164. &::after {
  165. content: '';
  166. display: block;
  167. position: absolute;
  168. left: -20 * @rpx;
  169. bottom: 0;
  170. background: @COLOR_TEXT_WEAK_DEFAULT;
  171. width: 100%;
  172. height: 2 * @rpx;
  173. transform: scaleY(0.5);
  174. transform-origin: 0 0;
  175. }
  176. }
  177. &_text {
  178. font-size: 42 * @rpx;
  179. line-height: 57 * @rpx;
  180. user-select: none;
  181. color: @COLOR_TEXT_PRIMARY_DEFAULT;
  182. &:active {
  183. color: @COLOR_BRAND1_DEFAULT;
  184. }
  185. &:hover {
  186. color: @COLOR_BRAND1_DEFAULT;
  187. }
  188. }
  189. }
  190. &_hidden {
  191. visibility: hidden;
  192. position: absolute;
  193. top: -19998 * @rpx;
  194. left: -19998 * @rpx;
  195. width: 73 * @rpx;
  196. padding-left: 16 * @rpx;
  197. padding-right: 16 * @rpx;
  198. box-sizing: border-box;
  199. }
  200. &_right {
  201. width: 48 * @rpx;
  202. height: 48 * @rpx;
  203. display: flex;
  204. flex-flow: row nowrap;
  205. align-items: center;
  206. justify-content: center;
  207. position: relative;
  208. margin-top: 4 * @rpx;
  209. color: @COLOR_TEXT_PRIMARY_DEFAULT;
  210. &.sticky {
  211. position: sticky !important;
  212. top: 0 !important;
  213. left: 0 !important;
  214. }
  215. &.overflow {
  216. &::before {
  217. content: '';
  218. display: block;
  219. width: 10 * @rpx;
  220. height: 100%;
  221. background: linear-gradient(to right, transparent, #d8d8d8);
  222. position: absolute;
  223. left: -32 * @rpx;
  224. }
  225. }
  226. }
  227. }
  228. &-loading {
  229. min-height: 34 * @rpx;
  230. margin-right: 12 * @rpx;
  231. }
  232. &_delete {
  233. font-size: 48 * @rpx;
  234. }
  235. &_down {
  236. font-size: 48 * @rpx;
  237. }
  238. &_pinyin {
  239. background: @COLOR_BACKGROUND;
  240. padding-top: 16 * @rpx;
  241. padding-bottom: 16 * @rpx;
  242. &_row {
  243. display: flex;
  244. flex-flow: row nowrap;
  245. justify-content: center;
  246. background: @COLOR_BACKGROUND;
  247. margin-bottom: 16 * @rpx;
  248. &:last-child {
  249. margin-bottom: 0;
  250. }
  251. }
  252. &_key {
  253. position: relative;
  254. display: flex;
  255. align-items: center;
  256. justify-content: center;
  257. height: 88 * @rpx;
  258. width: 63 * @rpx;
  259. background: @COLOR_WHITE_DEFAULT;
  260. font-size: 36 * @rpx;
  261. color: @COLOR_TEXT_PRIMARY_DEFAULT;
  262. box-sizing: border-box;
  263. border-radius: 8 * @rpx;
  264. margin-right: 12 * @rpx;
  265. user-select: none;
  266. &:active {
  267. background: @COLOR_BRAND1_DEFAULT;
  268. color: @COLOR_WHITE_DEFAULT;
  269. }
  270. &:last-child {
  271. margin-right: 0;
  272. }
  273. &.delete {
  274. width: 80 * @rpx;
  275. }
  276. }
  277. }
  278. &_error {
  279. background: @COLOR_BACKGROUND;
  280. padding-top: 30 * @rpx;
  281. padding-bottom: 30 * @rpx;
  282. .ant-result-main {
  283. background: none;
  284. margin-bottom: 0;
  285. padding-top: 40 * @rpx;
  286. padding-bottom: 40 * @rpx;
  287. }
  288. .ant-result-message {
  289. text-align: center;
  290. }
  291. &-btns {
  292. display: flex;
  293. flex-flow: row nowrap;
  294. align-items: center;
  295. justify-content: center;
  296. }
  297. }
  298. }