index.css 7.5 KB

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