uni-easyinput.wxss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. @charset "UTF-8";
  2. /**
  3. * 这里是uni-app内置的常用样式变量
  4. *
  5. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  6. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  7. *
  8. */
  9. /**
  10. * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
  11. *
  12. * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
  13. */
  14. /* 颜色变量 */
  15. /* 行为相关颜色 */
  16. /* 文字基本颜色 */
  17. /* 背景颜色 */
  18. /* 边框颜色 */
  19. /* 尺寸变量 */
  20. /* 文字尺寸 */
  21. /* 图片尺寸 */
  22. /* Border Radius */
  23. /* 水平间距 */
  24. /* 垂直间距 */
  25. /* 透明度 */
  26. /* 文章场景相关 */
  27. .uni-easyinput {
  28. width: 100%;
  29. flex: 1;
  30. position: relative;
  31. text-align: left;
  32. color: #333;
  33. font-size: 14px;
  34. }
  35. .uni-easyinput__content {
  36. flex: 1;
  37. width: 100%;
  38. display: flex;
  39. box-sizing: border-box;
  40. flex-direction: row;
  41. align-items: center;
  42. border-color: #fff;
  43. transition-property: border-color;
  44. transition-duration: 0.3s;
  45. }
  46. .uni-easyinput__content-input {
  47. width: auto;
  48. position: relative;
  49. overflow: hidden;
  50. flex: 1;
  51. line-height: 1;
  52. font-size: 14px;
  53. height: 35px;
  54. /*ifdef H5*/
  55. /*endif*/
  56. }
  57. .uni-easyinput__content-input ::-ms-reveal {
  58. display: none;
  59. }
  60. .uni-easyinput__content-input ::-ms-clear {
  61. display: none;
  62. }
  63. .uni-easyinput__content-input ::-o-clear {
  64. display: none;
  65. }
  66. .uni-easyinput__placeholder-class {
  67. color: #999;
  68. font-size: 12px;
  69. }
  70. .is-textarea {
  71. align-items: flex-start;
  72. }
  73. .is-textarea-icon {
  74. margin-top: 5px;
  75. }
  76. .uni-easyinput__content-textarea {
  77. position: relative;
  78. overflow: hidden;
  79. flex: 1;
  80. line-height: 1.5;
  81. font-size: 14px;
  82. margin: 6px;
  83. margin-left: 0;
  84. height: 80px;
  85. min-height: 80px;
  86. min-height: 80px;
  87. width: auto;
  88. }
  89. .input-padding {
  90. padding-left: 10px;
  91. }
  92. .content-clear-icon {
  93. padding: 0 5px;
  94. }
  95. .label-icon {
  96. margin-right: 5px;
  97. margin-top: -1px;
  98. }
  99. .is-input-border {
  100. display: flex;
  101. box-sizing: border-box;
  102. flex-direction: row;
  103. align-items: center;
  104. border: 1px solid #dcdfe6;
  105. border-radius: 4px;
  106. }
  107. .uni-error-message {
  108. position: absolute;
  109. bottom: -17px;
  110. left: 0;
  111. line-height: 12px;
  112. color: #e43d33;
  113. font-size: 12px;
  114. text-align: left;
  115. }
  116. .uni-error-msg--boeder {
  117. position: relative;
  118. bottom: 0;
  119. line-height: 22px;
  120. }
  121. .is-input-error-border {
  122. border-color: #e43d33;
  123. }
  124. .is-input-error-border .uni-easyinput__placeholder-class {
  125. color: #f29e99;
  126. }
  127. .uni-easyinput--border {
  128. margin-bottom: 0;
  129. padding: 10px 15px;
  130. border-top: 1px #eee solid;
  131. }
  132. .uni-easyinput-error {
  133. padding-bottom: 0;
  134. }
  135. .is-first-border {
  136. border: none;
  137. }
  138. .is-disabled {
  139. background-color: #f7f6f6;
  140. color: #d5d5d5;
  141. }
  142. .is-disabled .uni-easyinput__placeholder-class {
  143. color: #d5d5d5;
  144. font-size: 12px;
  145. }