index.wxss 6.1 KB

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