index.less 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. @import "../styles/mixins/index.less";
  2. @import "../styles/themes/index.less";
  3. .@{wux-prefix}-textarea {
  4. position: relative;
  5. display: flex;
  6. align-items: center;
  7. &__label {
  8. margin-left: 0;
  9. margin-right: @margin-component-base;
  10. text-align: left;
  11. white-space: nowrap;
  12. overflow: hidden;
  13. width: 105px;
  14. align-self: flex-start;
  15. }
  16. &__control {
  17. flex: 1;
  18. }
  19. &__item {
  20. width: 100%;
  21. border: 0;
  22. outline: 0;
  23. -webkit-appearance: none;
  24. background-color: transparent;
  25. font-size: inherit;
  26. color: inherit;
  27. height: 1.47058824em;
  28. min-height: 1.47058824em;
  29. line-height: 1.47058824;
  30. }
  31. &__extra {
  32. color: @text-color-secondary;
  33. margin-left: @margin-component-base;
  34. }
  35. &__error {
  36. margin-left: @margin-component-base;
  37. }
  38. &__clear {
  39. display: none;
  40. }
  41. &--focus &__clear {
  42. display: block;
  43. }
  44. &--disabled {
  45. opacity: @disabled-opacity;
  46. }
  47. &--error &__control {
  48. color: @assertive;
  49. }
  50. &__count {
  51. position: absolute;
  52. bottom: -6px;
  53. right: 0;
  54. color: @text-color-secondary;
  55. font-size: @font-size-base;
  56. line-height: 1.47058824;
  57. }
  58. &__current {
  59. color: @heading-color;
  60. }
  61. &--has-count &__control {
  62. padding-bottom: 10px;
  63. }
  64. // tip: not effective.
  65. &__keyboard-accessory {
  66. max-height: 200px;
  67. }
  68. }