input.css 13 KB

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