_form.scss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. /* ==================
  2. 表单
  3. ==================== */
  4. .ui-form-item {
  5. padding: 1rpx 24rpx;
  6. display: flex;
  7. align-items: center;
  8. min-height: 100rpx;
  9. justify-content: space-between;
  10. .title {
  11. text-align: justify;
  12. padding-right: 30rpx;
  13. font-size: 30rpx;
  14. position: relative;
  15. height: 60rpx;
  16. line-height: 60rpx;
  17. }
  18. .content {
  19. flex: 1;
  20. }
  21. input,
  22. ui-input {
  23. flex: 1;
  24. font-size: 30rpx;
  25. color: #555;
  26. padding-right: 20rpx;
  27. }
  28. text[class*='icon-'] {
  29. font-size: 36rpx;
  30. padding: 0;
  31. box-sizing: border-box;
  32. }
  33. textarea {
  34. margin: 32rpx 0 30rpx;
  35. height: 4.6em;
  36. width: 100%;
  37. line-height: 1.2em;
  38. flex: 1;
  39. font-size: 28rpx;
  40. padding: 0;
  41. }
  42. picker,
  43. .arrow {
  44. flex: 1;
  45. padding-right: 40rpx;
  46. overflow: hidden;
  47. position: relative;
  48. }
  49. picker .picker,
  50. .arrow > view {
  51. line-height: 100rpx;
  52. text-overflow: ellipsis;
  53. white-space: nowrap;
  54. overflow: hidden;
  55. width: 100%;
  56. }
  57. picker::after,
  58. .arrow::after {
  59. font-family: 'ui';
  60. display: block;
  61. content: '\e605';
  62. position: absolute;
  63. font-size: 34rpx;
  64. color: #8799a3;
  65. line-height: 100rpx;
  66. width: 60rpx;
  67. text-align: center;
  68. top: 0;
  69. bottom: 0;
  70. right: -20rpx;
  71. margin: auto;
  72. }
  73. textarea[disabled],
  74. textarea[disabled] .placeholder {
  75. color: transparent;
  76. }
  77. &.align-start .title {
  78. height: 1em;
  79. margin-top: 32rpx;
  80. line-height: 1em;
  81. }
  82. .grid-square {
  83. > view {
  84. background-color: #f8f8f8;
  85. border-radius: 12rpx;
  86. .mask {
  87. background-color: rgba(0, 0, 0, 0.6);
  88. position: absolute;
  89. font-size: 20rpx;
  90. color: #ffffff;
  91. width: 100%;
  92. bottom: 0;
  93. text-align: center;
  94. padding: 6rpx 0;
  95. &.red-mask {
  96. background-color: rgba(255, 80, 80, 0.6);
  97. }
  98. }
  99. [class*='icon'] {
  100. position: absolute;
  101. width: 100%;
  102. height: 100%;
  103. display: flex;
  104. align-items: center;
  105. transform: scale(1.5);
  106. justify-content: center;
  107. }
  108. .text-gray {
  109. position: absolute;
  110. width: 100%;
  111. font-size: 24rpx;
  112. text-align: center;
  113. bottom: 20rpx;
  114. }
  115. }
  116. }
  117. }
  118. .disabled {
  119. opacity: 0.6;
  120. cursor: not-allowed !important;
  121. }