color-picker.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545
  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-color-predefine {
  252. display: -webkit-box;
  253. display: -ms-flexbox;
  254. display: flex;
  255. font-size: 12px;
  256. margin-top: 8px;
  257. width: 280px; }
  258. .el-color-predefine__colors {
  259. display: -webkit-box;
  260. display: -ms-flexbox;
  261. display: flex;
  262. -webkit-box-flex: 1;
  263. -ms-flex: 1;
  264. flex: 1;
  265. -ms-flex-wrap: wrap;
  266. flex-wrap: wrap; }
  267. .el-color-predefine__color-selector {
  268. margin: 0 0 8px 8px;
  269. width: 20px;
  270. height: 20px;
  271. border-radius: 4px;
  272. cursor: pointer; }
  273. .el-color-predefine__color-selector:nth-child(10n + 1) {
  274. margin-left: 0; }
  275. .el-color-predefine__color-selector.selected {
  276. -webkit-box-shadow: 0 0 3px 2px #2D74E7;
  277. box-shadow: 0 0 3px 2px #2D74E7; }
  278. .el-color-predefine__color-selector > div {
  279. display: -webkit-box;
  280. display: -ms-flexbox;
  281. display: flex;
  282. height: 100%;
  283. border-radius: 3px; }
  284. .el-color-predefine__color-selector.is-alpha {
  285. background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==); }
  286. .el-color-hue-slider {
  287. position: relative;
  288. -webkit-box-sizing: border-box;
  289. box-sizing: border-box;
  290. width: 280px;
  291. height: 12px;
  292. background-color: #f00;
  293. padding: 0 2px; }
  294. .el-color-hue-slider__bar {
  295. position: relative;
  296. background: -webkit-gradient(linear, left top, right top, from(#f00), color-stop(17%, #ff0), color-stop(33%, #0f0), color-stop(50%, #0ff), color-stop(67%, #00f), color-stop(83%, #f0f), to(#f00));
  297. background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
  298. height: 100%; }
  299. .el-color-hue-slider__thumb {
  300. position: absolute;
  301. cursor: pointer;
  302. -webkit-box-sizing: border-box;
  303. box-sizing: border-box;
  304. left: 0;
  305. top: 0;
  306. width: 4px;
  307. height: 100%;
  308. border-radius: 1px;
  309. background: #fff;
  310. border: 1px solid #f0f0f0;
  311. -webkit-box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
  312. box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
  313. z-index: 1; }
  314. .el-color-hue-slider.is-vertical {
  315. width: 12px;
  316. height: 180px;
  317. padding: 2px 0; }
  318. .el-color-hue-slider.is-vertical .el-color-hue-slider__bar {
  319. background: -webkit-gradient(linear, left top, left bottom, from(#f00), color-stop(17%, #ff0), color-stop(33%, #0f0), color-stop(50%, #0ff), color-stop(67%, #00f), color-stop(83%, #f0f), to(#f00));
  320. background: linear-gradient(to bottom, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%); }
  321. .el-color-hue-slider.is-vertical .el-color-hue-slider__thumb {
  322. left: 0;
  323. top: 0;
  324. width: 100%;
  325. height: 4px; }
  326. .el-color-svpanel {
  327. position: relative;
  328. width: 280px;
  329. height: 180px; }
  330. .el-color-svpanel__white, .el-color-svpanel__black {
  331. position: absolute;
  332. top: 0;
  333. left: 0;
  334. right: 0;
  335. bottom: 0; }
  336. .el-color-svpanel__white {
  337. background: -webkit-gradient(linear, left top, right top, from(#fff), to(rgba(255, 255, 255, 0)));
  338. background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0)); }
  339. .el-color-svpanel__black {
  340. background: -webkit-gradient(linear, left bottom, left top, from(#000), to(rgba(0, 0, 0, 0)));
  341. background: linear-gradient(to top, #000, rgba(0, 0, 0, 0)); }
  342. .el-color-svpanel__cursor {
  343. position: absolute; }
  344. .el-color-svpanel__cursor > div {
  345. cursor: head;
  346. width: 4px;
  347. height: 4px;
  348. -webkit-box-shadow: 0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0, 0, 0, 0.3), 0 0 1px 2px rgba(0, 0, 0, 0.4);
  349. box-shadow: 0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0, 0, 0, 0.3), 0 0 1px 2px rgba(0, 0, 0, 0.4);
  350. border-radius: 50%;
  351. -webkit-transform: translate(-2px, -2px);
  352. transform: translate(-2px, -2px); }
  353. .el-color-alpha-slider {
  354. position: relative;
  355. -webkit-box-sizing: border-box;
  356. box-sizing: border-box;
  357. width: 280px;
  358. height: 12px;
  359. background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==); }
  360. .el-color-alpha-slider__bar {
  361. position: relative;
  362. background: -webkit-gradient(linear, left top, right top, from(rgba(255, 255, 255, 0)), to(white));
  363. background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, white 100%);
  364. height: 100%; }
  365. .el-color-alpha-slider__thumb {
  366. position: absolute;
  367. cursor: pointer;
  368. -webkit-box-sizing: border-box;
  369. box-sizing: border-box;
  370. left: 0;
  371. top: 0;
  372. width: 4px;
  373. height: 100%;
  374. border-radius: 1px;
  375. background: #fff;
  376. border: 1px solid #f0f0f0;
  377. -webkit-box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
  378. box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
  379. z-index: 1; }
  380. .el-color-alpha-slider.is-vertical {
  381. width: 20px;
  382. height: 180px; }
  383. .el-color-alpha-slider.is-vertical .el-color-alpha-slider__bar {
  384. background: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0)), to(white));
  385. background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, white 100%); }
  386. .el-color-alpha-slider.is-vertical .el-color-alpha-slider__thumb {
  387. left: 0;
  388. top: 0;
  389. width: 100%;
  390. height: 4px; }
  391. .el-color-dropdown {
  392. width: 300px; }
  393. .el-color-dropdown__main-wrapper {
  394. margin-bottom: 6px; }
  395. .el-color-dropdown__main-wrapper::after {
  396. content: "";
  397. display: table;
  398. clear: both; }
  399. .el-color-dropdown__btns {
  400. margin-top: 6px;
  401. text-align: right; }
  402. .el-color-dropdown__value {
  403. float: left;
  404. line-height: 26px;
  405. font-size: 12px;
  406. color: #000000;
  407. width: 160px; }
  408. .el-color-dropdown__btn {
  409. border: 1px solid #dcdcdc;
  410. color: #333;
  411. line-height: 24px;
  412. border-radius: 2px;
  413. padding: 0 20px;
  414. cursor: pointer;
  415. background-color: transparent;
  416. outline: none;
  417. font-size: 12px; }
  418. .el-color-dropdown__btn[disabled] {
  419. color: #cccccc;
  420. cursor: not-allowed; }
  421. .el-color-dropdown__btn:hover {
  422. color: #2D74E7;
  423. border-color: #2D74E7; }
  424. .el-color-dropdown__link-btn {
  425. cursor: pointer;
  426. color: #2D74E7;
  427. text-decoration: none;
  428. padding: 15px;
  429. font-size: 12px; }
  430. .el-color-dropdown__link-btn:hover {
  431. color: tint(#2D74E7, 20%); }
  432. .el-color-picker {
  433. display: inline-block;
  434. position: relative;
  435. line-height: normal;
  436. height: 40px; }
  437. .el-color-picker.is-disabled .el-color-picker__trigger {
  438. cursor: not-allowed; }
  439. .el-color-picker--medium {
  440. height: 36px; }
  441. .el-color-picker--medium .el-color-picker__trigger {
  442. height: 36px;
  443. width: 36px; }
  444. .el-color-picker--medium .el-color-picker__mask {
  445. height: 34px;
  446. width: 34px; }
  447. .el-color-picker--small {
  448. height: 32px; }
  449. .el-color-picker--small .el-color-picker__trigger {
  450. height: 32px;
  451. width: 32px; }
  452. .el-color-picker--small .el-color-picker__mask {
  453. height: 30px;
  454. width: 30px; }
  455. .el-color-picker--small .el-color-picker__icon,
  456. .el-color-picker--small .el-color-picker__empty {
  457. -webkit-transform: translate3d(-50%, -50%, 0) scale(0.8);
  458. transform: translate3d(-50%, -50%, 0) scale(0.8); }
  459. .el-color-picker--mini {
  460. height: 28px; }
  461. .el-color-picker--mini .el-color-picker__trigger {
  462. height: 28px;
  463. width: 28px; }
  464. .el-color-picker--mini .el-color-picker__mask {
  465. height: 26px;
  466. width: 26px; }
  467. .el-color-picker--mini .el-color-picker__icon,
  468. .el-color-picker--mini .el-color-picker__empty {
  469. -webkit-transform: translate3d(-50%, -50%, 0) scale(0.8);
  470. transform: translate3d(-50%, -50%, 0) scale(0.8); }
  471. .el-color-picker__mask {
  472. height: 38px;
  473. width: 38px;
  474. border-radius: 4px;
  475. position: absolute;
  476. top: 1px;
  477. left: 1px;
  478. z-index: 1;
  479. cursor: not-allowed;
  480. background-color: rgba(255, 255, 255, 0.7); }
  481. .el-color-picker__trigger {
  482. display: inline-block;
  483. -webkit-box-sizing: border-box;
  484. box-sizing: border-box;
  485. height: 40px;
  486. width: 40px;
  487. padding: 4px;
  488. border: 1px solid #e6e6e6;
  489. border-radius: 4px;
  490. font-size: 0;
  491. position: relative;
  492. cursor: pointer; }
  493. .el-color-picker__color {
  494. position: relative;
  495. display: block;
  496. -webkit-box-sizing: border-box;
  497. box-sizing: border-box;
  498. border: 1px solid #999;
  499. border-radius: 2px;
  500. width: 100%;
  501. height: 100%;
  502. text-align: center; }
  503. .el-color-picker__color.is-alpha {
  504. background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==); }
  505. .el-color-picker__color-inner {
  506. position: absolute;
  507. left: 0;
  508. top: 0;
  509. right: 0;
  510. bottom: 0; }
  511. .el-color-picker__empty {
  512. font-size: 12px;
  513. color: #999;
  514. position: absolute;
  515. top: 50%;
  516. left: 50%;
  517. -webkit-transform: translate3d(-50%, -50%, 0);
  518. transform: translate3d(-50%, -50%, 0); }
  519. .el-color-picker__icon {
  520. display: inline-block;
  521. position: absolute;
  522. width: 100%;
  523. top: 50%;
  524. left: 50%;
  525. -webkit-transform: translate3d(-50%, -50%, 0);
  526. transform: translate3d(-50%, -50%, 0);
  527. color: #FFFFFF;
  528. text-align: center;
  529. font-size: 12px; }
  530. .el-color-picker__panel {
  531. position: absolute;
  532. z-index: 10;
  533. padding: 6px;
  534. -webkit-box-sizing: content-box;
  535. box-sizing: content-box;
  536. background-color: #FFFFFF;
  537. border: 1px solid #EBEEF5;
  538. border-radius: 4px;
  539. -webkit-box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  540. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1); }