forked from NG-ZORRO/ng-zorro-antd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
patch.less
64 lines (56 loc) · 1.44 KB
/
patch.less
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
textarea.nz-textarea-autosize-measuring {
height: auto !important;
overflow: hidden !important;
// Having 2px top and bottom padding seems to fix a bug where Chrome gets an incorrect
// measurement. We just have to account for it later and subtract it off the final result.
padding: 2px 0 !important;
}
.@{search-prefix} {
&-enter-button {
& + .@{ant-prefix}-input-group-addon,
input + .@{ant-prefix}-input-group-addon {
.@{search-rtl-cls}& {
.@{search-prefix}-button.@{ant-prefix}-btn-icon-only {
.square(@btn-height-base);
&.@{ant-prefix}-btn-sm{
.square(@btn-height-sm);
}
&.@{ant-prefix}-btn-lg{
.square(@btn-height-lg);
}
}
}
}
}
}
.ant-input-affix-wrapper-textarea-with-clear-btn .ant-input-suffix {
margin-left: 0;
}
nz-form-item-feedback-icon.@{ant-prefix}-input {
&-suffix {
display: flex;
flex: none;
align-items: center;
pointer-events: none;
}
&-suffix {
position: absolute;
top: 0;
right: 0;
z-index: 1;
height: 100%;
margin-right: @padding-sm;
margin-left: @input-affix-margin;
}
}
.@{ant-prefix}-input {
&-status-error, &-status-warning, &-status-validating, &-status-success {
&.@{ant-prefix}-input-has-feedback {
padding-right: @padding-lg + @padding-xss;
}
}
}
.@{ant-prefix}-input-textarea-show-count {
display: block;
position: relative;
}