form.scss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. .form-input {
  2. &.l-input {
  3. padding: 0 !important;
  4. .l-input__label {
  5. font-weight: 400;
  6. font-size: 28rpx;
  7. color: #6e7580;
  8. }
  9. .l-input__control {
  10. font-weight: 400;
  11. font-size: 28rpx;
  12. color: #131415;
  13. padding: 20rpx;
  14. background-color: #f5f7fa;
  15. border-radius: 8rpx;
  16. }
  17. .l-input__placeholder {
  18. font-weight: 400;
  19. font-size: 28rpx;
  20. color: #999999;
  21. }
  22. }
  23. &::after {
  24. display: none !important;
  25. opacity: 0 !important;
  26. }
  27. }
  28. .form-textarea {
  29. &.l-textarea {
  30. padding: 0 !important;
  31. .l-textarea__wrapper {
  32. padding: 20rpx;
  33. background-color: #f5f7fa;
  34. border-radius: 8rpx;
  35. }
  36. .l-textarea__label {
  37. font-weight: 400;
  38. font-size: 28rpx;
  39. color: #6e7580;
  40. padding-bottom: 0 !important;
  41. margin-bottom: 16rpx;
  42. }
  43. .l-textarea__control {
  44. font-weight: 400;
  45. font-size: 28rpx;
  46. color: #131415;
  47. }
  48. .l-textarea__placeholder {
  49. font-weight: 400;
  50. font-size: 28rpx;
  51. color: #999999 !important;
  52. }
  53. }
  54. &::after {
  55. display: none !important;
  56. opacity: 0 !important;
  57. }
  58. }
  59. /* 全局样式 - 确保在所有平台生效 */
  60. .l-input__placeholder {
  61. font-weight: 400 !important;
  62. font-size: 28rpx !important;
  63. color: #999999 !important;
  64. }
  65. .l-textarea__placeholder {
  66. font-weight: 400 !important;
  67. font-size: 28rpx !important;
  68. color: #999999 !important;
  69. }
  70. .l-textarea__control {
  71. font-weight: 400 !important;
  72. font-size: 28rpx !important;
  73. color: #131415 !important;
  74. }
  75. /* uni 原生 input 样式 */
  76. .uni-input-input {
  77. font-weight: 400 !important;
  78. font-size: 28rpx !important;
  79. color: #131415 !important;
  80. }
  81. /* uni 原生 textarea 样式 */
  82. .uni-textarea-textarea {
  83. font-weight: 400 !important;
  84. font-size: 28rpx !important;
  85. color: #131415 !important;
  86. }
  87. /* uni 原生 placeholder 样式 */
  88. .uni-input-placeholder,
  89. .uni-textarea-placeholder {
  90. font-weight: 400 !important;
  91. font-size: 28rpx !important;
  92. color: #999999 !important;
  93. }