环卫车小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

88 lines
1.3 KiB

4 months ago
  1. @import '../mixin/flex.scss';
  2. @import '../mixin/color.scss';
  3. @mixin required {
  4. &.se-input-required {
  5. ::before {
  6. content: '*';
  7. color: $red;
  8. }
  9. }
  10. }
  11. @mixin name {
  12. .se-input-name {
  13. min-width: 80rpx;
  14. &::after {
  15. content: '';
  16. }
  17. }
  18. }
  19. @mixin icon {
  20. .se-input-icon {
  21. font-size: 20rpx;
  22. }
  23. }
  24. @mixin input {
  25. .se-input-inner {
  26. -webkit-appearance: none;
  27. flex: 1;
  28. width: 100%;
  29. height: 100%;
  30. background-color: transparent;
  31. color: $c-99;
  32. &::-webkit-input-placeholder {
  33. color: $c-99;
  34. }
  35. &:disabled {
  36. -webkit-opacity: 1;
  37. -webkit-text-fill-color: $c-99;
  38. background-color: transparent;
  39. color: $c-99;
  40. }
  41. }
  42. }
  43. .se {
  44. &-input {
  45. &-s {
  46. @include flex-h-c;
  47. @include required;
  48. @include name;
  49. @include icon;
  50. @include input;
  51. height: 30rpx;
  52. }
  53. &-m {
  54. @include flex-h-c;
  55. @include required;
  56. @include name;
  57. @include icon;
  58. @include input;
  59. height: 40rpx;
  60. }
  61. &-l {
  62. @include flex-h-c;
  63. @include required;
  64. @include name;
  65. @include icon;
  66. @include input;
  67. height: 50rpx;
  68. }
  69. }
  70. &-textarea {
  71. @include flex-h-c;
  72. @include required;
  73. @include name;
  74. @include icon;
  75. @include input;
  76. }
  77. }