|
1 | 1 | @inputNumberPrefixCls: rc-input-number; |
2 | 2 |
|
3 | 3 | .@{inputNumberPrefixCls} { |
4 | | - display: inline-block; |
| 4 | + display: inline-flex; |
| 5 | + flex-wrap: nowrap; |
5 | 6 | height: 26px; |
6 | 7 | margin: 0; |
7 | 8 | padding: 0; |
|
22 | 23 | } |
23 | 24 | } |
24 | 25 |
|
25 | | - &-handler { |
| 26 | + &-action { |
26 | 27 | display: block; |
27 | 28 | height: 12px; |
28 | 29 | overflow: hidden; |
|
35 | 36 | } |
36 | 37 | } |
37 | 38 |
|
38 | | - &-handler-up-inner, |
39 | | - &-handler-down-inner { |
| 39 | + &-action-up-inner, |
| 40 | + &-action-down-inner { |
40 | 41 | color: #666666; |
41 | 42 | -webkit-user-select: none; |
42 | 43 | user-select: none; |
|
45 | 46 | &:hover { |
46 | 47 | border-color: #1890ff; |
47 | 48 |
|
48 | | - .@{inputNumberPrefixCls}-handler-up, |
49 | | - .@{inputNumberPrefixCls}-handler-wrap { |
| 49 | + .@{inputNumberPrefixCls}-action-up, |
| 50 | + .@{inputNumberPrefixCls}-actions { |
50 | 51 | border-color: #1890ff; |
51 | 52 | } |
52 | 53 | } |
53 | 54 |
|
54 | 55 | &-disabled:hover { |
55 | 56 | border-color: #d9d9d9; |
56 | 57 |
|
57 | | - .@{inputNumberPrefixCls}-handler-up, |
58 | | - .@{inputNumberPrefixCls}-handler-wrap { |
| 58 | + .@{inputNumberPrefixCls}-action-up, |
| 59 | + .@{inputNumberPrefixCls}-actions { |
59 | 60 | border-color: #d9d9d9; |
60 | 61 | } |
61 | 62 | } |
62 | 63 |
|
63 | | - &-input-wrap { |
64 | | - height: 100%; |
65 | | - overflow: hidden; |
66 | | - } |
67 | | - |
68 | 64 | &-input { |
69 | 65 | width: 100%; |
70 | 66 | height: 100%; |
|
80 | 76 | -moz-appearance: textfield; |
81 | 77 | } |
82 | 78 |
|
83 | | - &-handler-wrap { |
84 | | - float: right; |
| 79 | + &-actions { |
85 | 80 | width: 20px; |
86 | 81 | height: 100%; |
87 | 82 | border-left: 1px solid #d9d9d9; |
88 | 83 | transition: all 0.3s; |
89 | 84 | } |
90 | 85 |
|
91 | | - &-handler-up { |
| 86 | + &-action-up { |
92 | 87 | padding-top: 1px; |
93 | 88 | border-bottom: 1px solid #d9d9d9; |
94 | 89 | transition: all 0.3s; |
|
100 | 95 | } |
101 | 96 | } |
102 | 97 |
|
103 | | - &-handler-down { |
| 98 | + &-action-down { |
104 | 99 | transition: all 0.3s; |
105 | 100 |
|
106 | 101 | &-inner { |
|
118 | 113 | } |
119 | 114 | } |
120 | 115 |
|
121 | | - &-handler-down-disabled, |
122 | | - &-handler-up-disabled { |
| 116 | + &-action-down-disabled, |
| 117 | + &-action-up-disabled { |
123 | 118 | .handler-disabled(); |
124 | 119 | } |
125 | 120 |
|
|
129 | 124 | cursor: not-allowed; |
130 | 125 | opacity: 0.72; |
131 | 126 | } |
132 | | - .@{inputNumberPrefixCls}-handler { |
| 127 | + .@{inputNumberPrefixCls}-action { |
133 | 128 | .handler-disabled(); |
134 | 129 | } |
135 | 130 | } |
|
139 | 134 | align-items: center; |
140 | 135 | } |
141 | 136 |
|
142 | | - &-mode-spinner &-handler { |
| 137 | + &-mode-spinner &-action { |
143 | 138 | flex: 0 0 20px; |
144 | | - line-height: 26px; |
145 | 139 | height: 100%; |
| 140 | + line-height: 26px; |
146 | 141 | } |
147 | 142 |
|
148 | | - &-mode-spinner &-handler-up { |
| 143 | + &-mode-spinner &-action-up { |
149 | 144 | border-bottom: 0; |
150 | 145 | border-left: 1px solid #d9d9d9; |
151 | 146 | } |
152 | | - &-mode-spinner &-handler-down { |
| 147 | + &-mode-spinner &-action-down { |
153 | 148 | border-top: 0; |
154 | 149 | border-right: 1px solid #d9d9d9; |
155 | 150 | } |
|
0 commit comments