UNPKG

5.87 kBCSSView Raw
1/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
2/* stylelint-disable no-duplicate-selectors */
3/* stylelint-disable */
4/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
5.ant-mentions {
6 box-sizing: border-box;
7 margin: 0;
8 font-variant: tabular-nums;
9 list-style: none;
10 font-feature-settings: 'tnum';
11 width: 100%;
12 min-width: 0;
13 padding: 4px 11px;
14 color: rgba(0, 0, 0, 0.85);
15 font-size: 14px;
16 background-color: #fff;
17 background-image: none;
18 border: 1px solid #d9d9d9;
19 border-radius: 2px;
20 transition: all 0.3s;
21 position: relative;
22 display: inline-block;
23 height: auto;
24 padding: 0;
25 overflow: hidden;
26 line-height: 1.5715;
27 white-space: pre-wrap;
28 vertical-align: bottom;
29}
30.ant-mentions::-moz-placeholder {
31 opacity: 1;
32}
33.ant-mentions:-ms-input-placeholder {
34 color: #bfbfbf;
35}
36.ant-mentions::placeholder {
37 color: #bfbfbf;
38}
39.ant-mentions:-moz-placeholder-shown {
40 text-overflow: ellipsis;
41}
42.ant-mentions:-ms-input-placeholder {
43 text-overflow: ellipsis;
44}
45.ant-mentions:placeholder-shown {
46 text-overflow: ellipsis;
47}
48.ant-mentions:hover {
49 border-color: #40a9ff;
50 border-right-width: 1px !important;
51}
52.ant-mentions:focus,
53.ant-mentions-focused {
54 border-color: #40a9ff;
55 border-right-width: 1px !important;
56 outline: 0;
57 box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
58}
59.ant-mentions-disabled {
60 color: rgba(0, 0, 0, 0.25);
61 background-color: #f5f5f5;
62 cursor: not-allowed;
63 opacity: 1;
64}
65.ant-mentions-disabled:hover {
66 border-color: #d9d9d9;
67 border-right-width: 1px !important;
68}
69.ant-mentions[disabled] {
70 color: rgba(0, 0, 0, 0.25);
71 background-color: #f5f5f5;
72 cursor: not-allowed;
73 opacity: 1;
74}
75.ant-mentions[disabled]:hover {
76 border-color: #d9d9d9;
77 border-right-width: 1px !important;
78}
79.ant-mentions-borderless,
80.ant-mentions-borderless:hover,
81.ant-mentions-borderless:focus,
82.ant-mentions-borderless-focused,
83.ant-mentions-borderless-disabled,
84.ant-mentions-borderless[disabled] {
85 background-color: transparent;
86 border: none;
87 box-shadow: none;
88}
89textarea.ant-mentions {
90 max-width: 100%;
91 height: auto;
92 min-height: 32px;
93 line-height: 1.5715;
94 vertical-align: bottom;
95 transition: all 0.3s, height 0s;
96}
97.ant-mentions-lg {
98 padding: 6.5px 11px;
99 font-size: 16px;
100}
101.ant-mentions-sm {
102 padding: 0px 7px;
103}
104.ant-mentions-disabled > textarea {
105 color: rgba(0, 0, 0, 0.25);
106 background-color: #f5f5f5;
107 cursor: not-allowed;
108 opacity: 1;
109}
110.ant-mentions-disabled > textarea:hover {
111 border-color: #d9d9d9;
112 border-right-width: 1px !important;
113}
114.ant-mentions-focused {
115 border-color: #40a9ff;
116 border-right-width: 1px !important;
117 outline: 0;
118 box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
119}
120.ant-mentions > textarea,
121.ant-mentions-measure {
122 min-height: 30px;
123 margin: 0;
124 padding: 4px 11px;
125 overflow: inherit;
126 overflow-x: hidden;
127 overflow-y: auto;
128 font-weight: inherit;
129 font-size: inherit;
130 font-family: inherit;
131 font-style: inherit;
132 font-variant: inherit;
133 font-size-adjust: inherit;
134 font-stretch: inherit;
135 line-height: inherit;
136 direction: inherit;
137 letter-spacing: inherit;
138 white-space: inherit;
139 text-align: inherit;
140 vertical-align: top;
141 word-wrap: break-word;
142 word-break: inherit;
143 -moz-tab-size: inherit;
144 -o-tab-size: inherit;
145 tab-size: inherit;
146}
147.ant-mentions > textarea {
148 width: 100%;
149 border: none;
150 outline: none;
151 resize: none;
152}
153.ant-mentions > textarea::-moz-placeholder {
154 opacity: 1;
155}
156.ant-mentions > textarea:-ms-input-placeholder {
157 color: #bfbfbf;
158}
159.ant-mentions > textarea::placeholder {
160 color: #bfbfbf;
161}
162.ant-mentions > textarea:-moz-placeholder-shown {
163 text-overflow: ellipsis;
164}
165.ant-mentions > textarea:-ms-input-placeholder {
166 text-overflow: ellipsis;
167}
168.ant-mentions > textarea:placeholder-shown {
169 text-overflow: ellipsis;
170}
171.ant-mentions-measure {
172 position: absolute;
173 top: 0;
174 right: 0;
175 bottom: 0;
176 left: 0;
177 z-index: -1;
178 color: transparent;
179 pointer-events: none;
180}
181.ant-mentions-measure > span {
182 display: inline-block;
183 min-height: 1em;
184}
185.ant-mentions-dropdown {
186 margin: 0;
187 padding: 0;
188 color: rgba(0, 0, 0, 0.85);
189 font-variant: tabular-nums;
190 line-height: 1.5715;
191 list-style: none;
192 font-feature-settings: 'tnum';
193 position: absolute;
194 top: -9999px;
195 left: -9999px;
196 z-index: 1050;
197 box-sizing: border-box;
198 font-size: 14px;
199 font-variant: initial;
200 background-color: #fff;
201 border-radius: 2px;
202 outline: none;
203 box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
204}
205.ant-mentions-dropdown-hidden {
206 display: none;
207}
208.ant-mentions-dropdown-menu {
209 max-height: 250px;
210 margin-bottom: 0;
211 padding-left: 0;
212 overflow: auto;
213 list-style: none;
214 outline: none;
215}
216.ant-mentions-dropdown-menu-item {
217 position: relative;
218 display: block;
219 min-width: 100px;
220 padding: 5px 12px;
221 overflow: hidden;
222 color: rgba(0, 0, 0, 0.85);
223 font-weight: normal;
224 line-height: 1.5715;
225 white-space: nowrap;
226 text-overflow: ellipsis;
227 cursor: pointer;
228 transition: background 0.3s ease;
229}
230.ant-mentions-dropdown-menu-item:hover {
231 background-color: #f5f5f5;
232}
233.ant-mentions-dropdown-menu-item:first-child {
234 border-radius: 2px 2px 0 0;
235}
236.ant-mentions-dropdown-menu-item:last-child {
237 border-radius: 0 0 2px 2px;
238}
239.ant-mentions-dropdown-menu-item-disabled {
240 color: rgba(0, 0, 0, 0.25);
241 cursor: not-allowed;
242}
243.ant-mentions-dropdown-menu-item-disabled:hover {
244 color: rgba(0, 0, 0, 0.25);
245 background-color: #fff;
246 cursor: not-allowed;
247}
248.ant-mentions-dropdown-menu-item-selected {
249 color: rgba(0, 0, 0, 0.85);
250 font-weight: 600;
251 background-color: #fafafa;
252}
253.ant-mentions-dropdown-menu-item-active {
254 background-color: #f5f5f5;
255}
256.ant-mentions-rtl {
257 direction: rtl;
258}