input.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564
  1. /* BEM support Func
  2. -------------------------- */
  3. /* Element Chalk Variables */
  4. /* Transition
  5. -------------------------- */
  6. /* Color
  7. -------------------------- */
  8. /* 53a8ff */
  9. /* 66b1ff */
  10. /* 79bbff */
  11. /* 8cc5ff */
  12. /* a0cfff */
  13. /* b3d8ff */
  14. /* c6e2ff */
  15. /* d9ecff */
  16. /* ecf5ff */
  17. /* Link
  18. -------------------------- */
  19. /* Border
  20. -------------------------- */
  21. /* Fill
  22. -------------------------- */
  23. /* Typography
  24. -------------------------- */
  25. /* Size
  26. -------------------------- */
  27. /* z-index
  28. -------------------------- */
  29. /* Disable base
  30. -------------------------- */
  31. /* Icon
  32. -------------------------- */
  33. /* Checkbox
  34. -------------------------- */
  35. /* Radio
  36. -------------------------- */
  37. /* Select
  38. -------------------------- */
  39. /* Alert
  40. -------------------------- */
  41. /* MessageBox
  42. -------------------------- */
  43. /* Message
  44. -------------------------- */
  45. /* Notification
  46. -------------------------- */
  47. /* Input
  48. -------------------------- */
  49. /* Cascader
  50. -------------------------- */
  51. /* Group
  52. -------------------------- */
  53. /* Tab
  54. -------------------------- */
  55. /* Button
  56. -------------------------- */
  57. /* cascader
  58. -------------------------- */
  59. /* Switch
  60. -------------------------- */
  61. /* Dialog
  62. -------------------------- */
  63. /* Table
  64. -------------------------- */
  65. /* Pagination
  66. -------------------------- */
  67. /* Popup
  68. -------------------------- */
  69. /* Popover
  70. -------------------------- */
  71. /* Tooltip
  72. -------------------------- */
  73. /* Tag
  74. -------------------------- */
  75. /* Tree
  76. -------------------------- */
  77. /* Dropdown
  78. -------------------------- */
  79. /* Badge
  80. -------------------------- */
  81. /* Card
  82. --------------------------*/
  83. /* Slider
  84. --------------------------*/
  85. /* Steps
  86. --------------------------*/
  87. /* Menu
  88. --------------------------*/
  89. /* Rate
  90. --------------------------*/
  91. /* DatePicker
  92. --------------------------*/
  93. /* Loading
  94. --------------------------*/
  95. /* Scrollbar
  96. --------------------------*/
  97. /* Carousel
  98. --------------------------*/
  99. /* Collapse
  100. --------------------------*/
  101. /* Transfer
  102. --------------------------*/
  103. /* Header
  104. --------------------------*/
  105. /* Footer
  106. --------------------------*/
  107. /* Main
  108. --------------------------*/
  109. /* Timeline
  110. --------------------------*/
  111. /* Backtop
  112. --------------------------*/
  113. /* Link
  114. --------------------------*/
  115. /* Calendar
  116. --------------------------*/
  117. /* Form
  118. -------------------------- */
  119. /* Avatar
  120. --------------------------*/
  121. /* Empty
  122. -------------------------- */
  123. /* Descriptions
  124. -------------------------- */
  125. /* Skeleton
  126. --------------------------*/
  127. /* Svg
  128. --------------- */
  129. /* Result
  130. -------------------------- */
  131. /* Break-point
  132. --------------------------*/
  133. /* Break-points
  134. -------------------------- */
  135. /* Scrollbar
  136. -------------------------- */
  137. /* Placeholder
  138. -------------------------- */
  139. /* BEM
  140. -------------------------- */
  141. /* Element Chalk Variables */
  142. /* Transition
  143. -------------------------- */
  144. /* Color
  145. -------------------------- */
  146. /* 53a8ff */
  147. /* 66b1ff */
  148. /* 79bbff */
  149. /* 8cc5ff */
  150. /* a0cfff */
  151. /* b3d8ff */
  152. /* c6e2ff */
  153. /* d9ecff */
  154. /* ecf5ff */
  155. /* Link
  156. -------------------------- */
  157. /* Border
  158. -------------------------- */
  159. /* Fill
  160. -------------------------- */
  161. /* Typography
  162. -------------------------- */
  163. /* Size
  164. -------------------------- */
  165. /* z-index
  166. -------------------------- */
  167. /* Disable base
  168. -------------------------- */
  169. /* Icon
  170. -------------------------- */
  171. /* Checkbox
  172. -------------------------- */
  173. /* Radio
  174. -------------------------- */
  175. /* Select
  176. -------------------------- */
  177. /* Alert
  178. -------------------------- */
  179. /* MessageBox
  180. -------------------------- */
  181. /* Message
  182. -------------------------- */
  183. /* Notification
  184. -------------------------- */
  185. /* Input
  186. -------------------------- */
  187. /* Cascader
  188. -------------------------- */
  189. /* Group
  190. -------------------------- */
  191. /* Tab
  192. -------------------------- */
  193. /* Button
  194. -------------------------- */
  195. /* cascader
  196. -------------------------- */
  197. /* Switch
  198. -------------------------- */
  199. /* Dialog
  200. -------------------------- */
  201. /* Table
  202. -------------------------- */
  203. /* Pagination
  204. -------------------------- */
  205. /* Popup
  206. -------------------------- */
  207. /* Popover
  208. -------------------------- */
  209. /* Tooltip
  210. -------------------------- */
  211. /* Tag
  212. -------------------------- */
  213. /* Tree
  214. -------------------------- */
  215. /* Dropdown
  216. -------------------------- */
  217. /* Badge
  218. -------------------------- */
  219. /* Card
  220. --------------------------*/
  221. /* Slider
  222. --------------------------*/
  223. /* Steps
  224. --------------------------*/
  225. /* Menu
  226. --------------------------*/
  227. /* Rate
  228. --------------------------*/
  229. /* DatePicker
  230. --------------------------*/
  231. /* Loading
  232. --------------------------*/
  233. /* Scrollbar
  234. --------------------------*/
  235. /* Carousel
  236. --------------------------*/
  237. /* Collapse
  238. --------------------------*/
  239. /* Transfer
  240. --------------------------*/
  241. /* Header
  242. --------------------------*/
  243. /* Footer
  244. --------------------------*/
  245. /* Main
  246. --------------------------*/
  247. /* Timeline
  248. --------------------------*/
  249. /* Backtop
  250. --------------------------*/
  251. /* Link
  252. --------------------------*/
  253. /* Calendar
  254. --------------------------*/
  255. /* Form
  256. -------------------------- */
  257. /* Avatar
  258. --------------------------*/
  259. /* Empty
  260. -------------------------- */
  261. /* Descriptions
  262. -------------------------- */
  263. /* Skeleton
  264. --------------------------*/
  265. /* Svg
  266. --------------- */
  267. /* Result
  268. -------------------------- */
  269. /* Break-point
  270. --------------------------*/
  271. .el-textarea {
  272. position: relative;
  273. display: inline-block;
  274. width: 100%;
  275. vertical-align: bottom;
  276. font-size: 14px; }
  277. .el-textarea__inner {
  278. display: block;
  279. resize: vertical;
  280. padding: 5px 15px;
  281. line-height: 1.5;
  282. -webkit-box-sizing: border-box;
  283. box-sizing: border-box;
  284. width: 100%;
  285. font-size: inherit;
  286. color: #606266;
  287. background-color: #FFFFFF;
  288. background-image: none;
  289. border: 1px solid #DCDFE6;
  290. border-radius: 4px;
  291. -webkit-transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  292. transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1); }
  293. .el-textarea__inner::-webkit-input-placeholder {
  294. color: #C0C4CC; }
  295. .el-textarea__inner::-moz-placeholder {
  296. color: #C0C4CC; }
  297. .el-textarea__inner:-ms-input-placeholder {
  298. color: #C0C4CC; }
  299. .el-textarea__inner::-ms-input-placeholder {
  300. color: #C0C4CC; }
  301. .el-textarea__inner::placeholder {
  302. color: #C0C4CC; }
  303. .el-textarea__inner:hover {
  304. border-color: #C0C4CC; }
  305. .el-textarea__inner:focus {
  306. outline: none;
  307. border-color: #5075FC; }
  308. .el-textarea .el-input__count {
  309. color: #909399;
  310. background: #FFFFFF;
  311. position: absolute;
  312. font-size: 12px;
  313. bottom: 5px;
  314. right: 10px; }
  315. .el-textarea.is-disabled .el-textarea__inner {
  316. background-color: #F5F7FA;
  317. border-color: #E4E7ED;
  318. color: #C0C4CC;
  319. cursor: not-allowed; }
  320. .el-textarea.is-disabled .el-textarea__inner::-webkit-input-placeholder {
  321. color: #C0C4CC; }
  322. .el-textarea.is-disabled .el-textarea__inner::-moz-placeholder {
  323. color: #C0C4CC; }
  324. .el-textarea.is-disabled .el-textarea__inner:-ms-input-placeholder {
  325. color: #C0C4CC; }
  326. .el-textarea.is-disabled .el-textarea__inner::-ms-input-placeholder {
  327. color: #C0C4CC; }
  328. .el-textarea.is-disabled .el-textarea__inner::placeholder {
  329. color: #C0C4CC; }
  330. .el-textarea.is-exceed .el-textarea__inner {
  331. border-color: #F56C6C; }
  332. .el-textarea.is-exceed .el-input__count {
  333. color: #F56C6C; }
  334. .el-input {
  335. position: relative;
  336. font-size: 14px;
  337. display: inline-block;
  338. width: 100%; }
  339. .el-input::-webkit-scrollbar {
  340. z-index: 11;
  341. width: 6px; }
  342. .el-input::-webkit-scrollbar:horizontal {
  343. height: 6px; }
  344. .el-input::-webkit-scrollbar-thumb {
  345. border-radius: 5px;
  346. width: 6px;
  347. background: #b4bccc; }
  348. .el-input::-webkit-scrollbar-corner {
  349. background: #fff; }
  350. .el-input::-webkit-scrollbar-track {
  351. background: #fff; }
  352. .el-input::-webkit-scrollbar-track-piece {
  353. background: #fff;
  354. width: 6px; }
  355. .el-input .el-input__clear {
  356. color: #C0C4CC;
  357. font-size: 14px;
  358. cursor: pointer;
  359. -webkit-transition: color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  360. transition: color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1); }
  361. .el-input .el-input__clear:hover {
  362. color: #909399; }
  363. .el-input .el-input__count {
  364. height: 100%;
  365. display: -webkit-inline-box;
  366. display: -ms-inline-flexbox;
  367. display: inline-flex;
  368. -webkit-box-align: center;
  369. -ms-flex-align: center;
  370. align-items: center;
  371. color: #909399;
  372. font-size: 12px; }
  373. .el-input .el-input__count .el-input__count-inner {
  374. background: #FFFFFF;
  375. line-height: initial;
  376. display: inline-block;
  377. padding: 0 5px; }
  378. .el-input__inner {
  379. -webkit-appearance: none;
  380. background-color: #FFFFFF;
  381. background-image: none;
  382. border-radius: 4px;
  383. border: 1px solid #DCDFE6;
  384. -webkit-box-sizing: border-box;
  385. box-sizing: border-box;
  386. color: #606266;
  387. display: inline-block;
  388. font-size: inherit;
  389. height: 40px;
  390. line-height: 40px;
  391. outline: none;
  392. padding: 0 15px;
  393. -webkit-transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  394. transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  395. width: 100%; }
  396. .el-input__inner::-ms-reveal {
  397. display: none; }
  398. .el-input__inner::-webkit-input-placeholder {
  399. color: #C0C4CC; }
  400. .el-input__inner::-moz-placeholder {
  401. color: #C0C4CC; }
  402. .el-input__inner:-ms-input-placeholder {
  403. color: #C0C4CC; }
  404. .el-input__inner::-ms-input-placeholder {
  405. color: #C0C4CC; }
  406. .el-input__inner::placeholder {
  407. color: #C0C4CC; }
  408. .el-input__inner:hover {
  409. border-color: #C0C4CC; }
  410. .el-input__inner:focus {
  411. outline: none;
  412. border-color: #5075FC; }
  413. .el-input__suffix {
  414. position: absolute;
  415. height: 100%;
  416. right: 5px;
  417. top: 0;
  418. text-align: center;
  419. color: #C0C4CC;
  420. -webkit-transition: all .3s;
  421. transition: all .3s;
  422. pointer-events: none; }
  423. .el-input__suffix-inner {
  424. pointer-events: all; }
  425. .el-input__prefix {
  426. position: absolute;
  427. height: 100%;
  428. left: 5px;
  429. top: 0;
  430. text-align: center;
  431. color: #C0C4CC;
  432. -webkit-transition: all .3s;
  433. transition: all .3s; }
  434. .el-input__icon {
  435. height: 100%;
  436. width: 25px;
  437. text-align: center;
  438. -webkit-transition: all .3s;
  439. transition: all .3s;
  440. line-height: 40px; }
  441. .el-input__icon:after {
  442. content: '';
  443. height: 100%;
  444. width: 0;
  445. display: inline-block;
  446. vertical-align: middle; }
  447. .el-input__validateIcon {
  448. pointer-events: none; }
  449. .el-input.is-active .el-input__inner {
  450. outline: none;
  451. border-color: #5075FC; }
  452. .el-input.is-disabled .el-input__inner {
  453. background-color: #F5F7FA;
  454. border-color: #E4E7ED;
  455. color: #C0C4CC;
  456. cursor: not-allowed; }
  457. .el-input.is-disabled .el-input__inner::-webkit-input-placeholder {
  458. color: #C0C4CC; }
  459. .el-input.is-disabled .el-input__inner::-moz-placeholder {
  460. color: #C0C4CC; }
  461. .el-input.is-disabled .el-input__inner:-ms-input-placeholder {
  462. color: #C0C4CC; }
  463. .el-input.is-disabled .el-input__inner::-ms-input-placeholder {
  464. color: #C0C4CC; }
  465. .el-input.is-disabled .el-input__inner::placeholder {
  466. color: #C0C4CC; }
  467. .el-input.is-disabled .el-input__icon {
  468. cursor: not-allowed; }
  469. .el-input.is-exceed .el-input__inner {
  470. border-color: #F56C6C; }
  471. .el-input.is-exceed .el-input__suffix .el-input__count {
  472. color: #F56C6C; }
  473. .el-input--suffix .el-input__inner {
  474. padding-right: 30px; }
  475. .el-input--prefix .el-input__inner {
  476. padding-left: 30px; }
  477. .el-input--medium {
  478. font-size: 14px; }
  479. .el-input--medium .el-input__inner {
  480. height: 36px;
  481. line-height: 36px; }
  482. .el-input--medium .el-input__icon {
  483. line-height: 36px; }
  484. .el-input--small {
  485. font-size: 13px; }
  486. .el-input--small .el-input__inner {
  487. height: 32px;
  488. line-height: 32px; }
  489. .el-input--small .el-input__icon {
  490. line-height: 32px; }
  491. .el-input--mini {
  492. font-size: 12px; }
  493. .el-input--mini .el-input__inner {
  494. height: 28px;
  495. line-height: 28px; }
  496. .el-input--mini .el-input__icon {
  497. line-height: 28px; }
  498. .el-input-group {
  499. line-height: normal;
  500. display: inline-table;
  501. width: 100%;
  502. border-collapse: separate;
  503. border-spacing: 0; }
  504. .el-input-group > .el-input__inner {
  505. vertical-align: middle;
  506. display: table-cell; }
  507. .el-input-group__append, .el-input-group__prepend {
  508. background-color: #F5F7FA;
  509. color: #909399;
  510. vertical-align: middle;
  511. display: table-cell;
  512. position: relative;
  513. border: 1px solid #DCDFE6;
  514. border-radius: 4px;
  515. padding: 0 20px;
  516. width: 1px;
  517. white-space: nowrap; }
  518. .el-input-group__append:focus, .el-input-group__prepend:focus {
  519. outline: none; }
  520. .el-input-group__append .el-select,
  521. .el-input-group__append .el-button, .el-input-group__prepend .el-select,
  522. .el-input-group__prepend .el-button {
  523. display: inline-block;
  524. margin: -10px -20px; }
  525. .el-input-group__append button.el-button,
  526. .el-input-group__append div.el-select .el-input__inner,
  527. .el-input-group__append div.el-select:hover .el-input__inner, .el-input-group__prepend button.el-button,
  528. .el-input-group__prepend div.el-select .el-input__inner,
  529. .el-input-group__prepend div.el-select:hover .el-input__inner {
  530. border-color: transparent;
  531. background-color: transparent;
  532. color: inherit;
  533. border-top: 0;
  534. border-bottom: 0; }
  535. .el-input-group__append .el-button,
  536. .el-input-group__append .el-input, .el-input-group__prepend .el-button,
  537. .el-input-group__prepend .el-input {
  538. font-size: inherit; }
  539. .el-input-group__prepend {
  540. border-right: 0;
  541. border-top-right-radius: 0;
  542. border-bottom-right-radius: 0; }
  543. .el-input-group__append {
  544. border-left: 0;
  545. border-top-left-radius: 0;
  546. border-bottom-left-radius: 0; }
  547. .el-input-group--prepend .el-input__inner {
  548. border-top-left-radius: 0;
  549. border-bottom-left-radius: 0; }
  550. .el-input-group--prepend .el-select .el-input.is-focus .el-input__inner {
  551. border-color: transparent; }
  552. .el-input-group--append .el-input__inner {
  553. border-top-right-radius: 0;
  554. border-bottom-right-radius: 0; }
  555. .el-input-group--append .el-select .el-input.is-focus .el-input__inner {
  556. border-color: transparent; }
  557. /** disalbe default clear on IE */
  558. .el-input__inner::-ms-clear {
  559. display: none;
  560. width: 0;
  561. height: 0; }