uni-plate-input.less 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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. &-head {
  19. display: flex;
  20. justify-content: space-between;
  21. align-items: center;
  22. }
  23. &-type {
  24. flex:1;
  25. display:block;
  26. label {
  27. display: inline-block;
  28. min-height: 32upx;
  29. font-size: 26upx;
  30. margin-right: 10upx;
  31. }
  32. }
  33. &-body {
  34. box-sizing: border-box;
  35. padding: 30upx 0;
  36. display: flex;
  37. justify-content: space-between;
  38. align-items: center;
  39. }
  40. &-word {
  41. border: 1upx solid #ccc;
  42. border-radius: 10upx;
  43. height: 0;
  44. margin: 0 5upx;
  45. box-sizing: border-box;
  46. padding-bottom: calc((100% - 70upx) / 7);
  47. width: calc((100% - 70upx) / 7);
  48. position: relative;
  49. &.active {
  50. border-color: #007aff;
  51. box-shadow: 0 0 15upx 0 #007aff;
  52. }
  53. text {
  54. position: absolute;
  55. top: 50%;
  56. left: 50%;
  57. transform: translateX(-50%) translateY(-50%);
  58. font-weight: 700;
  59. font-size: 32upx;
  60. }
  61. }
  62. &-dot {
  63. width: 15upx;
  64. height: 15upx;
  65. background: #ccc;
  66. border-radius: 50%;
  67. margin: 0 5upx;
  68. }
  69. &-keyboard {
  70. background: #eee;
  71. margin-left: -25upx;
  72. margin-right: -25upx;
  73. padding: 20upx 25upx 10upx 25upx;
  74. box-sizing: border-box;
  75. transition: all .3s;
  76. &>view{
  77. display: flex;
  78. flex-wrap: wrap;
  79. justify-content: space-between;
  80. }
  81. }
  82. &-key {
  83. display: block;
  84. background: #fff;
  85. border-radius: 10upx;
  86. box-shadow: 0 0 8upx 0 #bbb;
  87. width: 80upx;
  88. height: 80upx;
  89. margin: 5upx 0;
  90. font-size: 32upx;
  91. text-align: center;
  92. display: flex;
  93. align-items: center;
  94. justify-content: center;
  95. position: relative;
  96. &.hover {
  97. background: #efefef;
  98. }
  99. &.fill-block {
  100. width: 80upx;
  101. height: 80upx;
  102. background: none;
  103. box-shadow: none;
  104. }
  105. }
  106. &-btn {
  107. display: inline-block;
  108. background: #fff;
  109. border-radius: 10upx;
  110. box-shadow: 0 0 10upx 0 #bbb;
  111. font-size: 28upx;
  112. text-align: center;
  113. margin:0 0 0 10upx;
  114. padding:0 25upx;
  115. &-group{
  116. display: flex;
  117. justify-content: space-between;
  118. background: #eee;
  119. margin-left: -25upx;
  120. margin-right: -25upx;
  121. box-sizing: border-box;
  122. padding: 0 25upx 10upx 25upx;
  123. }
  124. &--cancel{
  125. margin:0;
  126. }
  127. &--submit{
  128. background:#5773f9;
  129. color:#fff;
  130. }
  131. &--delete{
  132. color:#fd6b6d;
  133. }
  134. }
  135. }
  136. .animation-scale-up {
  137. animation-duration: .2s;
  138. animation-timing-function: ease-out;
  139. animation-fill-mode: both;
  140. animation-name: scale-up
  141. }
  142. @keyframes scale-up {
  143. 0% {
  144. opacity: .8;
  145. transform: scale(.8)
  146. }
  147. 100% {
  148. opacity: 1;
  149. transform: scale(1)
  150. }
  151. }