|
8 | 8 | @input-prefix-cls: ~'@{prefix}-input'; |
9 | 9 |
|
10 | 10 | @border-radius: 3px; |
| 11 | +@border-medium-radius: 6px; |
| 12 | +@border-large-radius: 12px; |
11 | 13 | @default-width: 250px; |
12 | 14 |
|
13 | 15 | @placeholder-color: @gray-6; |
|
50 | 52 | border-radius: @border-radius; |
51 | 53 | } |
52 | 54 |
|
| 55 | + &-prefix { |
| 56 | + border-top-left-radius: @border-radius; |
| 57 | + border-bottom-left-radius: @border-radius; |
| 58 | + } |
| 59 | + |
| 60 | + &-suffix { |
| 61 | + border-top-right-radius: @border-radius; |
| 62 | + border-bottom-right-radius: @border-radius; |
| 63 | + } |
| 64 | + |
53 | 65 | &-loading-spin { |
54 | 66 | display: inline-block; |
55 | 67 | width: 14px; |
|
106 | 118 | } |
107 | 119 | } |
108 | 120 | } |
| 121 | + |
| 122 | + &.border-radius-medium { |
| 123 | + .@{input-prefix-cls}-group { |
| 124 | + border-radius: @border-medium-radius; |
| 125 | + } |
| 126 | + |
| 127 | + .@{input-prefix-cls}-prefix { |
| 128 | + border-top-left-radius: @border-medium-radius; |
| 129 | + border-bottom-left-radius: @border-medium-radius; |
| 130 | + } |
| 131 | + |
| 132 | + .@{input-prefix-cls}-suffix { |
| 133 | + border-top-right-radius: @border-medium-radius; |
| 134 | + border-bottom-right-radius: @border-medium-radius; |
| 135 | + } |
| 136 | + } |
| 137 | + |
| 138 | + &.border-radius-large { |
| 139 | + .@{input-prefix-cls}-group { |
| 140 | + border-radius: @border-large-radius; |
| 141 | + } |
| 142 | + |
| 143 | + .@{input-prefix-cls}-prefix { |
| 144 | + border-top-left-radius: @border-large-radius; |
| 145 | + border-bottom-left-radius: @border-large-radius; |
| 146 | + } |
| 147 | + |
| 148 | + .@{input-prefix-cls}-suffix { |
| 149 | + border-top-right-radius: @border-large-radius; |
| 150 | + border-bottom-right-radius: @border-large-radius; |
| 151 | + } |
| 152 | + } |
109 | 153 | } |
110 | 154 |
|
111 | 155 | /* group */ |
|
168 | 212 | border-bottom-right-radius: 0px; |
169 | 213 | } |
170 | 214 | } |
| 215 | + |
| 216 | + &.border-radius-medium { |
| 217 | + border-radius: @border-medium-radius; |
| 218 | + } |
| 219 | + |
| 220 | + &.border-radius-large { |
| 221 | + border-radius: @border-large-radius; |
| 222 | + } |
171 | 223 | } |
172 | 224 |
|
173 | 225 | &-prefix, |
|
337 | 389 | background: @textarea-background; |
338 | 390 | border-radius: @border-radius; |
339 | 391 | } |
| 392 | + |
| 393 | + &.border-radius-medium { |
| 394 | + border-radius: @border-medium-radius; |
| 395 | + |
| 396 | + > textarea { |
| 397 | + border-radius: @border-medium-radius; |
| 398 | + } |
| 399 | + } |
| 400 | + |
| 401 | + &.border-radius-large { |
| 402 | + border-radius: @border-large-radius; |
| 403 | + |
| 404 | + > textarea { |
| 405 | + border-radius: @border-large-radius; |
| 406 | + } |
| 407 | + } |
340 | 408 | } |
341 | 409 |
|
342 | 410 | &-textarea { |
|
0 commit comments