index.less 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. @import "../styles/mixins/index.less";
  2. @import "../styles/themes/index.less";
  3. .@{wux-prefix}-input {
  4. position: relative;
  5. display: flex;
  6. align-items: center;
  7. &__label {
  8. position: relative;
  9. margin-left: 0;
  10. margin-right: @margin-component-base;
  11. text-align: left;
  12. white-space: nowrap;
  13. overflow: hidden;
  14. width: 105px;
  15. &--wrap {
  16. white-space: normal;
  17. }
  18. &--required {
  19. &::before {
  20. display: inline-block;
  21. margin-right: 3px;
  22. color: @assertive;
  23. font-size: 14px;
  24. font-family: SimSun, sans-serif;
  25. line-height: 1;
  26. content: "*";
  27. }
  28. }
  29. }
  30. &__control {
  31. flex: 1;
  32. }
  33. &__item {
  34. width: 100%;
  35. border: 0;
  36. outline: 0;
  37. -webkit-appearance: none;
  38. background-color: transparent;
  39. font-size: inherit;
  40. color: inherit;
  41. height: 1.47058824em;
  42. min-height: 1.47058824em;
  43. line-height: 1.47058824;
  44. }
  45. &__clear {
  46. display: flex;
  47. }
  48. &__eye {
  49. display: flex;
  50. width: 16px;
  51. height: 16px;
  52. background-repeat: no-repeat;
  53. background-size: contain;
  54. margin-left: @margin-component-base;
  55. .encoded-svg-background(eye, @text-color-secondary);
  56. &--invisible {
  57. .encoded-svg-background(eye_invisible, @text-color-secondary);
  58. }
  59. }
  60. &__error {
  61. display: flex;
  62. margin-left: @margin-component-base;
  63. }
  64. &__extra {
  65. color: @text-color-secondary;
  66. margin-left: @margin-component-base;
  67. }
  68. &--disabled {
  69. opacity: @disabled-opacity;
  70. }
  71. &--error &__control {
  72. color: @assertive;
  73. }
  74. // tip: not effective.
  75. &__keyboard-accessory {
  76. max-height: 200px;
  77. }
  78. }