uni-plate-input.css 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. .so-mask {
  2. position: fixed;
  3. top: 0;
  4. bottom: 0;
  5. right: 0;
  6. left: 0;
  7. background: rgba(0, 0, 0, 0.5);
  8. z-index: 998
  9. }
  10. .so-plate {
  11. box-sizing: border-box;
  12. position: absolute;
  13. bottom: 0;
  14. width: 100%;
  15. left: 0;
  16. background: #fff;
  17. padding: 25upx 25upx 0 25upx
  18. }
  19. .so-plate-head {
  20. display: -webkit-box;
  21. display: flex;
  22. -webkit-box-pack: justify;
  23. justify-content: space-between;
  24. -webkit-box-align: center;
  25. align-items: center
  26. }
  27. .so-plate-type {
  28. -webkit-box-flex: 1;
  29. flex: 1;
  30. display: block
  31. }
  32. .so-plate-type label {
  33. display: inline-block;
  34. min-height: 32upx;
  35. font-size: 26upx;
  36. margin-right: 10upx
  37. }
  38. .so-plate-body {
  39. box-sizing: border-box;
  40. padding: 30upx 0;
  41. display: -webkit-box;
  42. display: flex;
  43. -webkit-box-pack: justify;
  44. justify-content: space-between;
  45. -webkit-box-align: center;
  46. align-items: center
  47. }
  48. .so-plate-word {
  49. border: 1upx solid #ccc;
  50. border-radius: 10upx;
  51. height: 0;
  52. margin: 0 5upx;
  53. box-sizing: border-box;
  54. padding-bottom: calc(4.28571429%);
  55. width: calc(4.28571429%);
  56. position: relative;
  57. padding: 20px;
  58. box-sizing: border-box;
  59. }
  60. .so-plate-word.active {
  61. border-color: #007aff;
  62. box-shadow: 0 0 15upx 0 #007aff
  63. }
  64. .so-plate-word text {
  65. position: absolute;
  66. top: 50%;
  67. left: 50%;
  68. -webkit-transform: translateX(-50%) translateY(-50%);
  69. transform: translateX(-50%) translateY(-50%);
  70. font-weight: 700;
  71. font-size: 32upx
  72. }
  73. .so-plate-dot {
  74. width: 15upx;
  75. height: 15upx;
  76. background: #ccc;
  77. border-radius: 50%;
  78. margin: 0 5upx
  79. }
  80. .so-plate-keyboard {
  81. background: #eee;
  82. margin-left: -25upx;
  83. margin-right: -25upx;
  84. padding: 20upx 25upx 10upx 25upx;
  85. box-sizing: border-box;
  86. -webkit-transition: all .3s;
  87. transition: all .3s
  88. }
  89. .so-plate-keyboard>view {
  90. display: -webkit-box;
  91. display: flex;
  92. flex-wrap: wrap;
  93. -webkit-box-pack: justify;
  94. justify-content: space-between
  95. }
  96. .so-plate-key {
  97. display: block;
  98. background: #fff;
  99. border-radius: 10upx;
  100. box-shadow: 0 0 8upx 0 #bbb;
  101. width: 80upx;
  102. height: 80upx;
  103. margin: 5upx 0;
  104. font-size: 32upx;
  105. text-align: center;
  106. display: -webkit-box;
  107. display: flex;
  108. -webkit-box-align: center;
  109. align-items: center;
  110. -webkit-box-pack: center;
  111. justify-content: center;
  112. position: relative
  113. }
  114. .so-plate-key.hover {
  115. background: #efefef
  116. }
  117. .so-plate-key.fill-block {
  118. width: 80upx;
  119. height: 80upx;
  120. background: none;
  121. box-shadow: none
  122. }
  123. .so-plate-btn {
  124. display: inline-block;
  125. background: #fff;
  126. border-radius: 10upx;
  127. box-shadow: 0 0 10upx 0 #bbb;
  128. font-size: 28upx;
  129. text-align: center;
  130. margin: 0 0 0 10upx;
  131. width: 120upx;
  132. }
  133. .so-plate-btn-group {
  134. display: -webkit-box;
  135. display: flex;
  136. -webkit-box-pack: justify;
  137. justify-content: space-between;
  138. background: #eee;
  139. margin-left: -25upx;
  140. margin-right: -25upx;
  141. box-sizing: border-box;
  142. padding: 0 25upx 10upx 25upx
  143. }
  144. .so-plate-btn--cancel {
  145. margin: 0
  146. }
  147. .so-plate-btn--submit {
  148. background: #5773f9;
  149. color: #fff
  150. }
  151. .so-plate-btn--delete {
  152. color: #fd6b6d
  153. }
  154. .animation-scale-up {
  155. -webkit-animation-duration: .2s;
  156. animation-duration: .2s;
  157. -webkit-animation-timing-function: ease-out;
  158. animation-timing-function: ease-out;
  159. -webkit-animation-fill-mode: both;
  160. animation-fill-mode: both;
  161. -webkit-animation-name: scale-up;
  162. animation-name: scale-up
  163. }
  164. @-webkit-keyframes scale-up {
  165. 0% {
  166. opacity: .8;
  167. -webkit-transform: scale(.8);
  168. transform: scale(.8)
  169. }
  170. 100% {
  171. opacity: 1;
  172. -webkit-transform: scale(1);
  173. transform: scale(1)
  174. }
  175. }
  176. @keyframes scale-up {
  177. 0% {
  178. opacity: .8;
  179. -webkit-transform: scale(.8);
  180. transform: scale(.8)
  181. }
  182. 100% {
  183. opacity: 1;
  184. -webkit-transform: scale(1);
  185. transform: scale(1)
  186. }
  187. }