uni-easyinput.wxss 2.7 KB

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