index.less 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. @import "../styles/mixins/index.less";
  2. @import "../styles/themes/index.less";
  3. .@{wux-prefix}-keyboard {
  4. display: block;
  5. width: 100%;
  6. color: @heading-color;
  7. background-color: #f7f7f7;
  8. &__hd {
  9. height: 40px;
  10. display: flex;
  11. justify-content: center;
  12. align-items: center;
  13. color: #1f2324;
  14. font-size: 15px;
  15. position: relative;
  16. &::after {
  17. .setBottomLine(@border-color-split);
  18. }
  19. }
  20. &__bd {
  21. margin: 15px 40px;
  22. display: flex;
  23. position: relative;
  24. background-color: @keyboard-bg;
  25. }
  26. &__input {
  27. width: 100%;
  28. padding: 4px;
  29. height: @keyboard-input-size;
  30. min-height: @keyboard-input-size;
  31. text-align: center;
  32. box-sizing: border-box;
  33. }
  34. &__label {
  35. flex: 1;
  36. position: relative;
  37. display: flex;
  38. justify-content: center;
  39. align-items: center;
  40. height: 50px;
  41. &:not(:last-child)::after {
  42. content: "";
  43. width: 1px;
  44. height: 50%;
  45. position: absolute;
  46. right: 0;
  47. top: 25%;
  48. background-color: @border-color-split;
  49. transform: scaleX(.5);
  50. }
  51. }
  52. &__password {
  53. width: auto;
  54. height: auto;
  55. display: none;
  56. &--dot {
  57. .square(@keyboard-dot-size);
  58. border-radius: 50%;
  59. background-color: @keyboard-dot-bg;
  60. }
  61. &--active {
  62. display: block;
  63. }
  64. }
  65. &__ft {
  66. background-color: @keyboard-bg;
  67. position: relative;
  68. &::before {
  69. .setTopLine(@border-color-split);
  70. }
  71. }
  72. &__title {
  73. overflow: hidden;
  74. padding: 10px 0 6px;
  75. color: #222;
  76. margin-bottom: 1px;
  77. font-size: 12px;
  78. text-align: center;
  79. background-color: @keyboard-bg;
  80. &::before {
  81. font-size: 13px;
  82. color: #ff2424;
  83. line-height: 1;
  84. margin-right: 3px;
  85. }
  86. }
  87. &__numbers {
  88. font-size: 24px;
  89. background-color: @keyboard-bg;
  90. }
  91. &__number {
  92. display: flex;
  93. width: 100%;
  94. }
  95. &__text {
  96. display: flex;
  97. width: 1%;
  98. flex: 1;
  99. color: #222;
  100. height: 50px;
  101. position: relative;
  102. justify-content: center;
  103. align-items: center;
  104. overflow: hidden;
  105. &::before {
  106. .setTopLine(@border-color-split);
  107. }
  108. &:not(:last-child)::after {
  109. .setRightLine(@border-color-split);
  110. }
  111. &--hover {
  112. background-color: #dedede;
  113. color: rgba(0, 0, 0, .6);
  114. }
  115. }
  116. &__number:last-child &__text:last-child,
  117. &__number:last-child &__text:nth-last-child(3) {
  118. background-color: #f7f7f7;
  119. font-size: 15px;
  120. color: #686868;
  121. }
  122. }