|
1 | 1 | @import "./../../base/base.less"; |
2 | 2 | .n-input { |
3 | | - // margin: 4px 0px 0px 0px; |
4 | | - padding: 0 12px; |
5 | | - height: 40px; |
6 | | - color: @TypographyPrimaryColor; |
7 | | - border: 1px solid @BorderColor; |
8 | | - border-radius: 3px; |
9 | | - width: 100%; |
10 | | - background: @WhiteColor; |
11 | | - font-family: @PrimaryFont; |
12 | | - position: relative; |
13 | | - outline: none; |
14 | | - box-sizing: border-box; |
15 | | - font-size: @BaseFontSize + 2; |
16 | | - &:focus { |
17 | | - border: 1px solid @SecondaryColor; |
18 | | - } |
| 3 | + // margin: 4px 0px 0px 0px; |
| 4 | + padding: 0 12px; |
| 5 | + height: 40px; |
| 6 | + color: @TypographyPrimaryColor; |
| 7 | + border: 1px solid @BorderColor; |
| 8 | + border-radius: 3px; |
| 9 | + width: 100%; |
| 10 | + background: @WhiteColor; |
| 11 | + font-family: @PrimaryFont; |
| 12 | + position: relative; |
| 13 | + outline: none; |
| 14 | + box-sizing: border-box; |
| 15 | + font-size: @BaseFontSize + 2; |
| 16 | + &:focus { |
| 17 | + border: 1px solid @SecondaryColor; |
| 18 | + } |
19 | 19 | } |
20 | 20 |
|
21 | 21 | .n-input-textarea { |
22 | | - height: 96px; |
23 | | - line-height: 21px; |
24 | | - padding-top: 6px; |
| 22 | + height: 96px; |
| 23 | + line-height: 21px; |
| 24 | + padding-top: 6px; |
25 | 25 | } |
26 | 26 |
|
27 | 27 | .n-input:disabled { |
28 | | - background: @HoverColor; |
29 | | - pointer-events: none; |
30 | | - cursor: not-allowed; |
31 | | - opacity: 0.5; |
| 28 | + background: @HoverColor; |
| 29 | + pointer-events: none; |
| 30 | + cursor: not-allowed; |
| 31 | + opacity: 0.5; |
32 | 32 | } |
33 | 33 |
|
34 | 34 | .n-input:disabled + .n-input-label { |
35 | | - opacity: 0.5; |
| 35 | + opacity: 0.5; |
36 | 36 | } |
37 | 37 |
|
38 | 38 | .nitrozen-form-input { |
39 | | - outline: none; |
40 | | - // &:focus { |
41 | | - // label{ |
42 | | - // color: @SecondaryColor; |
43 | | - // font-weight: 600; |
44 | | - // } |
45 | | - // } |
| 39 | + outline: none; |
| 40 | + // &:focus { |
| 41 | + // label{ |
| 42 | + // color: @SecondaryColor; |
| 43 | + // font-weight: 600; |
| 44 | + // } |
| 45 | + // } |
46 | 46 | } |
47 | 47 |
|
48 | 48 | .n-input-label { |
49 | | - color: @LabelColor; |
50 | | - font-family: @PrimaryFont; |
51 | | - font-size: 12px; |
52 | | - font-weight: 500; |
53 | | - line-height: 21px; |
54 | | - display: flex; |
55 | | - flex: 1; |
| 49 | + color: @LabelColor; |
| 50 | + font-family: @PrimaryFont; |
| 51 | + font-size: 12px; |
| 52 | + font-weight: 500; |
| 53 | + line-height: 21px; |
| 54 | + display: flex; |
| 55 | + flex: 1; |
56 | 56 | } |
57 | 57 |
|
58 | 58 | .n-input-maxlength { |
59 | | - // display: block; |
60 | | - // float: right; |
61 | | - display: flex; |
62 | | - justify-content: flex-end; |
63 | | - position: relative; |
| 59 | + // display: block; |
| 60 | + // float: right; |
| 61 | + display: flex; |
| 62 | + justify-content: flex-end; |
| 63 | + position: relative; |
64 | 64 | } |
65 | 65 |
|
66 | 66 | .nitrozen-input-grp:focus-within + .n-input-label-container > .n-input-label { |
67 | | - color: @SecondaryColor !important; |
| 67 | + color: @SecondaryColor !important; |
68 | 68 | } |
69 | 69 |
|
70 | 70 | ::-webkit-input-placeholder { |
71 | | - /* Edge */ |
72 | | - color: @PlaceholderColor; |
73 | | - font-size: 12px; |
74 | | - font-family: @PrimaryFont; |
| 71 | + /* Edge */ |
| 72 | + color: @PlaceholderColor; |
| 73 | + font-size: 12px; |
| 74 | + font-family: @PrimaryFont; |
75 | 75 | } |
76 | 76 |
|
77 | 77 | :-ms-input-placeholder { |
78 | | - /* Internet Explorer 10-11 */ |
79 | | - color: @PlaceholderColor; |
80 | | - font-size: 12px; |
81 | | - font-family: @PrimaryFont; |
| 78 | + /* Internet Explorer 10-11 */ |
| 79 | + color: @PlaceholderColor; |
| 80 | + font-size: 12px; |
| 81 | + font-family: @PrimaryFont; |
82 | 82 | } |
83 | 83 |
|
84 | 84 | ::placeholder { |
85 | | - color: @PlaceholderColor; |
86 | | - font-size: 12px; |
87 | | - font-family: @PrimaryFont; |
| 85 | + color: @PlaceholderColor; |
| 86 | + font-size: 12px; |
| 87 | + font-family: @PrimaryFont; |
88 | 88 | } |
89 | 89 |
|
90 | 90 | input[type="search"]::-webkit-search-cancel-button { |
91 | | - position: relative; |
92 | | - right: 10px; |
93 | | - font-size: @BaseFontSize + 4px; |
94 | | - cursor: pointer; |
| 91 | + position: relative; |
| 92 | + right: 10px; |
| 93 | + font-size: @BaseFontSize + 4px; |
| 94 | + cursor: pointer; |
95 | 95 | } |
96 | 96 |
|
97 | 97 | .nitrozen-loader-div { |
98 | | - float: right; |
99 | | - position: relative; |
100 | | - bottom: 52px; |
101 | | - left: 20px; |
102 | | - img { |
103 | | - width: 65px; |
104 | | - } |
| 98 | + float: right; |
| 99 | + position: relative; |
| 100 | + bottom: 52px; |
| 101 | + left: 20px; |
| 102 | + img { |
| 103 | + width: 65px; |
| 104 | + } |
105 | 105 | } |
106 | 106 |
|
107 | 107 | .nitrozen-search-icon { |
108 | | - z-index: 2; |
109 | | - position: absolute; |
110 | | - left: 9px; |
111 | | - top: 9px; |
| 108 | + z-index: 2; |
| 109 | + position: absolute; |
| 110 | + left: 9px; |
| 111 | + top: 9px; |
112 | 112 | } |
113 | 113 |
|
114 | 114 | .nitrozen-tooltip-icon { |
115 | | - margin-left: 5px; |
| 115 | + margin-left: 5px; |
116 | 116 | } |
117 | 117 |
|
118 | 118 | .nitrozen-search-input-padding { |
119 | | - padding-left: 35px; |
| 119 | + padding-left: 35px; |
120 | 120 | } |
121 | 121 |
|
122 | 122 | .nitrozen-input-label-div { |
123 | | - display: flex; |
124 | | - justify-content: space-between; |
| 123 | + display: flex; |
| 124 | + justify-content: space-between; |
125 | 125 | } |
126 | 126 |
|
127 | 127 | .n-input-label-container { |
128 | | - display: flex; |
| 128 | + display: flex; |
129 | 129 | } |
130 | 130 |
|
131 | 131 | .nitrozen-input-prefix, |
132 | 132 | .nitrozen-input-suffix { |
133 | | - height: 40px; |
134 | | - margin: auto; |
135 | | - box-sizing: border-box; |
136 | | - color: @TypographyPrimaryColor; |
137 | | - border-radius: 3px; |
138 | | - background-color: @PrefixSuffixBackground; |
| 133 | + height: 40px; |
| 134 | + margin: auto; |
| 135 | + box-sizing: border-box; |
| 136 | + color: @TypographyPrimaryColor; |
| 137 | + border-radius: 3px; |
| 138 | + background-color: @PrefixSuffixBackground; |
139 | 139 | } |
140 | 140 |
|
141 | 141 | .nitrozen-remove-left-border { |
142 | | - border-top-left-radius: 0; |
143 | | - border-bottom-left-radius: 0; |
144 | | - border-left-color: @WhiteColor; |
| 142 | + border-top-left-radius: 0; |
| 143 | + border-bottom-left-radius: 0; |
| 144 | + border-left-color: @WhiteColor; |
145 | 145 | } |
146 | 146 |
|
147 | 147 | .nitrozen-remove-right-border { |
148 | | - border-top-right-radius: 0; |
149 | | - border-bottom-right-radius: 0; |
150 | | - border-right-color: @WhiteColor; |
| 148 | + border-top-right-radius: 0; |
| 149 | + border-bottom-right-radius: 0; |
| 150 | + border-right-color: @WhiteColor; |
151 | 151 | } |
152 | 152 |
|
153 | 153 | .nitrozen-input-grp { |
154 | | - display: flex; |
155 | | - position: relative; |
| 154 | + display: flex; |
| 155 | + position: relative; |
156 | 156 | } |
157 | 157 |
|
158 | 158 | .nitrozen-prefix-padding, |
159 | 159 | .nitrozen-suffix-padding { |
160 | | - padding: 10px; |
161 | | - border: 1px solid @BorderColor; |
| 160 | + padding: 10px; |
| 161 | + border: 1px solid @BorderColor; |
| 162 | +} |
| 163 | +/* Chrome, Safari, Edge, Opera */ |
| 164 | +input::-webkit-outer-spin-button, |
| 165 | +input::-webkit-inner-spin-button { |
| 166 | + -webkit-appearance: none; |
| 167 | + margin: 0; |
| 168 | +} |
| 169 | + |
| 170 | +/* Firefox */ |
| 171 | +input[type="number"] { |
| 172 | + -moz-appearance: textfield; |
162 | 173 | } |
0 commit comments