|
| 1 | +@import '../common/style/base.less'; |
| 2 | + |
| 3 | +/* Less 支持测试 - 监听功能验证 */ |
| 4 | +@form-item-prefix: ~'@{prefix}-form-item'; |
| 5 | +@form-item-horizontal-padding: var(--td-form-item-horizontal-padding, 32rpx); |
| 6 | +@form-item-vertical-padding: var(--td-form-item-vertical-padding, 32rpx); |
| 7 | +@form-item-label-width: var(--td-form-item-label-width, 160rpx); |
| 8 | +@form-item-justify-content: var(--td-form-item-justify-content, space-between); |
| 9 | +.@{form-item-prefix} { |
| 10 | + position: relative; |
| 11 | + display: flex; |
| 12 | + align-items: flex-start; |
| 13 | + justify-content: @form-item-justify-content; |
| 14 | + width: 100%; |
| 15 | + padding: @form-item-horizontal-padding @form-item-vertical-padding; |
| 16 | + background-color: #ffffff; |
| 17 | + --td-input-vertical-padding: 0rpx; |
| 18 | + --td-textarea-vertical-padding: 0rpx; |
| 19 | + --td-textarea-horizontal-padding: 0rpx; |
| 20 | + box-sizing: border-box; |
| 21 | + &--top { |
| 22 | + display: flex; |
| 23 | + flex-direction: column; |
| 24 | + } |
| 25 | + |
| 26 | + &--bordered { |
| 27 | + border-bottom: 1rpx solid @border-color; |
| 28 | + } |
| 29 | + |
| 30 | + &--error { |
| 31 | + .@{form-item-prefix}__error { |
| 32 | + color: @error-color; |
| 33 | + } |
| 34 | + } |
| 35 | + |
| 36 | + &--success { |
| 37 | + .@{form-item-prefix}__success { |
| 38 | + color: @success-color; |
| 39 | + } |
| 40 | + } |
| 41 | + |
| 42 | + &__label { |
| 43 | + position: relative; |
| 44 | + display: flex; |
| 45 | + align-items: center; |
| 46 | + width: @form-item-label-width; |
| 47 | + margin-right: 16rpx; |
| 48 | + font-size: @font-size-base; |
| 49 | + color: @text-color-primary; |
| 50 | + line-height: 1.5; |
| 51 | + |
| 52 | + &--required { |
| 53 | + color: @error-color; |
| 54 | + margin-right: 4rpx; |
| 55 | + } |
| 56 | + |
| 57 | + &--colon { |
| 58 | + margin-left: 4rpx; |
| 59 | + } |
| 60 | + |
| 61 | + &--left { |
| 62 | + display: flex; |
| 63 | + align-items: center; |
| 64 | + justify-content: flex-start; |
| 65 | + } |
| 66 | + |
| 67 | + &--right { |
| 68 | + display: flex; |
| 69 | + align-items: center; |
| 70 | + justify-content: flex-end; |
| 71 | + } |
| 72 | + |
| 73 | + &--top { |
| 74 | + position: relative; |
| 75 | + // margin-bottom: 8rpx; |
| 76 | + margin-right: 0; |
| 77 | + width: 100%; |
| 78 | + } |
| 79 | + } |
| 80 | + |
| 81 | + &__controls { |
| 82 | + flex: 1; |
| 83 | + width: 100%; |
| 84 | + margin-top: 8rpx; |
| 85 | + |
| 86 | + &--left { |
| 87 | + text-align: left; |
| 88 | + } |
| 89 | + |
| 90 | + &--right { |
| 91 | + text-align: right; |
| 92 | + } |
| 93 | + |
| 94 | + &-content { |
| 95 | + width: 100%; |
| 96 | + display: flex; |
| 97 | + align-items: center; |
| 98 | + justify-content: space-between; |
| 99 | + } |
| 100 | + } |
| 101 | + |
| 102 | + &__help { |
| 103 | + // margin: 4rpx 0 8rpx; |
| 104 | + font-size: @font-size-base; |
| 105 | + color: @font-gray-1; |
| 106 | + line-height: 1.4; |
| 107 | + } |
| 108 | + |
| 109 | + &__desc-link { |
| 110 | + margin-top: 8rpx; |
| 111 | + color: @primary-color-7; |
| 112 | + font-size: @font-size-s; |
| 113 | + line-height: 1.4; |
| 114 | + } |
| 115 | + |
| 116 | + &__error { |
| 117 | + margin-top: 4rpx; |
| 118 | + font-size: @font-size-s; |
| 119 | + line-height: 1.4; |
| 120 | + |
| 121 | + &--error { |
| 122 | + color: @error-color; |
| 123 | + } |
| 124 | + |
| 125 | + &--warning { |
| 126 | + color: @warning-color; |
| 127 | + } |
| 128 | + } |
| 129 | + |
| 130 | + &__success { |
| 131 | + margin-top: 4rpx; |
| 132 | + font-size: @font-size-s; |
| 133 | + color: @success-color; |
| 134 | + line-height: 1.4; |
| 135 | + } |
| 136 | + |
| 137 | + &__arrow { |
| 138 | + display: flex; |
| 139 | + align-items: center; |
| 140 | + margin-left: 8rpx; |
| 141 | + color: @text-color-placeholder; |
| 142 | + } |
| 143 | + |
| 144 | + &__extra { |
| 145 | + margin-left: 16rpx; |
| 146 | + } |
| 147 | +} |
| 148 | + |
| 149 | +.desc-wrapper { |
| 150 | + display: flex; |
| 151 | + align-items: center; |
| 152 | + gap: 12rpx; |
| 153 | + height: 50rpx; |
| 154 | + --td-button-font-weight: 400; |
| 155 | + // --td-button-extra-small-height: 38rpx; |
| 156 | +} |
0 commit comments