Plat Admin

color-picker.css 14KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526
  1. /* BEM support Func
  2. -------------------------- */
  3. /* Element Chalk Variables */
  4. /* Transition
  5. -------------------------- */
  6. /* Colors
  7. -------------------------- */
  8. /* 53a8ff */
  9. /* 66b1ff */
  10. /* 79bbff */
  11. /* 8cc5ff */
  12. /* a0cfff */
  13. /* b3d8ff */
  14. /* c6e2ff */
  15. /* d9ecff */
  16. /* ecf5ff */
  17. /* Link
  18. -------------------------- */
  19. /* Background
  20. -------------------------- */
  21. /* Border
  22. -------------------------- */
  23. /* Box-shadow
  24. -------------------------- */
  25. /* Fill
  26. -------------------------- */
  27. /* Font
  28. -------------------------- */
  29. /* Size
  30. -------------------------- */
  31. /* z-index
  32. -------------------------- */
  33. /* Disable base
  34. -------------------------- */
  35. /* Icon
  36. -------------------------- */
  37. /* Checkbox
  38. -------------------------- */
  39. /* Radio
  40. -------------------------- */
  41. /* Select
  42. -------------------------- */
  43. /* Alert
  44. -------------------------- */
  45. /* Message Box
  46. -------------------------- */
  47. /* Message
  48. -------------------------- */
  49. /* Notification
  50. -------------------------- */
  51. /* Input
  52. -------------------------- */
  53. /* Cascader
  54. -------------------------- */
  55. /* Group
  56. -------------------------- */
  57. /* Tab
  58. -------------------------- */
  59. /* Button
  60. -------------------------- */
  61. /* cascader
  62. -------------------------- */
  63. /* Switch
  64. -------------------------- */
  65. /* Dialog
  66. -------------------------- */
  67. /* Table
  68. -------------------------- */
  69. /* Pagination
  70. -------------------------- */
  71. /* Popover
  72. -------------------------- */
  73. /* Tooltip
  74. -------------------------- */
  75. /* Tag
  76. -------------------------- */
  77. /* Tree
  78. -------------------------- */
  79. /* Dropdown
  80. -------------------------- */
  81. /* Badge
  82. -------------------------- */
  83. /* Card
  84. --------------------------*/
  85. /* Slider
  86. --------------------------*/
  87. /* Steps
  88. --------------------------*/
  89. /* Menu
  90. --------------------------*/
  91. /* Rate
  92. --------------------------*/
  93. /* DatePicker
  94. --------------------------*/
  95. /* Loading
  96. --------------------------*/
  97. /* Scrollbar
  98. --------------------------*/
  99. /* Carousel
  100. --------------------------*/
  101. /* Collapse
  102. --------------------------*/
  103. /* Transfer
  104. --------------------------*/
  105. /* Header
  106. --------------------------*/
  107. /* Footer
  108. --------------------------*/
  109. /* Main
  110. --------------------------*/
  111. /* Break-point
  112. --------------------------*/
  113. /* Break-points
  114. -------------------------- */
  115. /* Scrollbar
  116. -------------------------- */
  117. /* Placeholder
  118. -------------------------- */
  119. /* BEM
  120. -------------------------- */
  121. /* Element Chalk Variables */
  122. /* Transition
  123. -------------------------- */
  124. /* Colors
  125. -------------------------- */
  126. /* 53a8ff */
  127. /* 66b1ff */
  128. /* 79bbff */
  129. /* 8cc5ff */
  130. /* a0cfff */
  131. /* b3d8ff */
  132. /* c6e2ff */
  133. /* d9ecff */
  134. /* ecf5ff */
  135. /* Link
  136. -------------------------- */
  137. /* Background
  138. -------------------------- */
  139. /* Border
  140. -------------------------- */
  141. /* Box-shadow
  142. -------------------------- */
  143. /* Fill
  144. -------------------------- */
  145. /* Font
  146. -------------------------- */
  147. /* Size
  148. -------------------------- */
  149. /* z-index
  150. -------------------------- */
  151. /* Disable base
  152. -------------------------- */
  153. /* Icon
  154. -------------------------- */
  155. /* Checkbox
  156. -------------------------- */
  157. /* Radio
  158. -------------------------- */
  159. /* Select
  160. -------------------------- */
  161. /* Alert
  162. -------------------------- */
  163. /* Message Box
  164. -------------------------- */
  165. /* Message
  166. -------------------------- */
  167. /* Notification
  168. -------------------------- */
  169. /* Input
  170. -------------------------- */
  171. /* Cascader
  172. -------------------------- */
  173. /* Group
  174. -------------------------- */
  175. /* Tab
  176. -------------------------- */
  177. /* Button
  178. -------------------------- */
  179. /* cascader
  180. -------------------------- */
  181. /* Switch
  182. -------------------------- */
  183. /* Dialog
  184. -------------------------- */
  185. /* Table
  186. -------------------------- */
  187. /* Pagination
  188. -------------------------- */
  189. /* Popover
  190. -------------------------- */
  191. /* Tooltip
  192. -------------------------- */
  193. /* Tag
  194. -------------------------- */
  195. /* Tree
  196. -------------------------- */
  197. /* Dropdown
  198. -------------------------- */
  199. /* Badge
  200. -------------------------- */
  201. /* Card
  202. --------------------------*/
  203. /* Slider
  204. --------------------------*/
  205. /* Steps
  206. --------------------------*/
  207. /* Menu
  208. --------------------------*/
  209. /* Rate
  210. --------------------------*/
  211. /* DatePicker
  212. --------------------------*/
  213. /* Loading
  214. --------------------------*/
  215. /* Scrollbar
  216. --------------------------*/
  217. /* Carousel
  218. --------------------------*/
  219. /* Collapse
  220. --------------------------*/
  221. /* Transfer
  222. --------------------------*/
  223. /* Header
  224. --------------------------*/
  225. /* Footer
  226. --------------------------*/
  227. /* Main
  228. --------------------------*/
  229. /* Break-point
  230. --------------------------*/
  231. .el-color-predefine {
  232. display: -webkit-box;
  233. display: -ms-flexbox;
  234. display: flex;
  235. font-size: 12px;
  236. margin-top: 8px;
  237. width: 280px; }
  238. .el-color-predefine__colors {
  239. display: -webkit-box;
  240. display: -ms-flexbox;
  241. display: flex;
  242. -webkit-box-flex: 1;
  243. -ms-flex: 1;
  244. flex: 1;
  245. -ms-flex-wrap: wrap;
  246. flex-wrap: wrap; }
  247. .el-color-predefine__color-selector {
  248. margin: 0 0 8px 8px;
  249. width: 20px;
  250. height: 20px;
  251. border-radius: 4px;
  252. cursor: pointer; }
  253. .el-color-predefine__color-selector:nth-child(10n + 1) {
  254. margin-left: 0; }
  255. .el-color-predefine__color-selector.selected {
  256. -webkit-box-shadow: 0 0 3px 2px #1b73a5;
  257. box-shadow: 0 0 3px 2px #1b73a5; }
  258. .el-color-predefine__color-selector > div {
  259. display: -webkit-box;
  260. display: -ms-flexbox;
  261. display: flex;
  262. height: 100%;
  263. border-radius: 3px; }
  264. .el-color-predefine__color-selector.is-alpha {
  265. background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==); }
  266. .el-color-hue-slider {
  267. position: relative;
  268. -webkit-box-sizing: border-box;
  269. box-sizing: border-box;
  270. width: 280px;
  271. height: 12px;
  272. background-color: #f00;
  273. padding: 0 2px; }
  274. .el-color-hue-slider__bar {
  275. position: relative;
  276. 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));
  277. background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
  278. height: 100%; }
  279. .el-color-hue-slider__thumb {
  280. position: absolute;
  281. cursor: pointer;
  282. -webkit-box-sizing: border-box;
  283. box-sizing: border-box;
  284. left: 0;
  285. top: 0;
  286. width: 4px;
  287. height: 100%;
  288. border-radius: 1px;
  289. background: #fff;
  290. border: 1px solid #f0f0f0;
  291. -webkit-box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
  292. box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
  293. z-index: 1; }
  294. .el-color-hue-slider.is-vertical {
  295. width: 12px;
  296. height: 180px;
  297. padding: 2px 0; }
  298. .el-color-hue-slider.is-vertical .el-color-hue-slider__bar {
  299. 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));
  300. background: linear-gradient(to bottom, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%); }
  301. .el-color-hue-slider.is-vertical .el-color-hue-slider__thumb {
  302. left: 0;
  303. top: 0;
  304. width: 100%;
  305. height: 4px; }
  306. .el-color-svpanel {
  307. position: relative;
  308. width: 280px;
  309. height: 180px; }
  310. .el-color-svpanel__white, .el-color-svpanel__black {
  311. position: absolute;
  312. top: 0;
  313. left: 0;
  314. right: 0;
  315. bottom: 0; }
  316. .el-color-svpanel__white {
  317. background: -webkit-gradient(linear, left top, right top, from(#fff), to(rgba(255, 255, 255, 0)));
  318. background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0)); }
  319. .el-color-svpanel__black {
  320. background: -webkit-gradient(linear, left bottom, left top, from(#000), to(rgba(0, 0, 0, 0)));
  321. background: linear-gradient(to top, #000, rgba(0, 0, 0, 0)); }
  322. .el-color-svpanel__cursor {
  323. position: absolute; }
  324. .el-color-svpanel__cursor > div {
  325. cursor: head;
  326. width: 4px;
  327. height: 4px;
  328. -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);
  329. 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);
  330. border-radius: 50%;
  331. -webkit-transform: translate(-2px, -2px);
  332. transform: translate(-2px, -2px); }
  333. .el-color-alpha-slider {
  334. position: relative;
  335. -webkit-box-sizing: border-box;
  336. box-sizing: border-box;
  337. width: 280px;
  338. height: 12px;
  339. background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==); }
  340. .el-color-alpha-slider__bar {
  341. position: relative;
  342. background: -webkit-gradient(linear, left top, right top, from(rgba(255, 255, 255, 0)), to(white));
  343. background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, white 100%);
  344. height: 100%; }
  345. .el-color-alpha-slider__thumb {
  346. position: absolute;
  347. cursor: pointer;
  348. -webkit-box-sizing: border-box;
  349. box-sizing: border-box;
  350. left: 0;
  351. top: 0;
  352. width: 4px;
  353. height: 100%;
  354. border-radius: 1px;
  355. background: #fff;
  356. border: 1px solid #f0f0f0;
  357. -webkit-box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
  358. box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
  359. z-index: 1; }
  360. .el-color-alpha-slider.is-vertical {
  361. width: 20px;
  362. height: 180px; }
  363. .el-color-alpha-slider.is-vertical .el-color-alpha-slider__bar {
  364. background: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0)), to(white));
  365. background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, white 100%); }
  366. .el-color-alpha-slider.is-vertical .el-color-alpha-slider__thumb {
  367. left: 0;
  368. top: 0;
  369. width: 100%;
  370. height: 4px; }
  371. .el-color-dropdown {
  372. width: 300px; }
  373. .el-color-dropdown__main-wrapper {
  374. margin-bottom: 6px; }
  375. .el-color-dropdown__main-wrapper::after {
  376. content: "";
  377. display: table;
  378. clear: both; }
  379. .el-color-dropdown__btns {
  380. margin-top: 6px;
  381. text-align: right; }
  382. .el-color-dropdown__value {
  383. float: left;
  384. line-height: 26px;
  385. font-size: 12px;
  386. color: #000;
  387. width: 160px; }
  388. .el-color-dropdown__btn {
  389. border: 1px solid #dcdcdc;
  390. color: #333;
  391. line-height: 24px;
  392. border-radius: 2px;
  393. padding: 0 20px;
  394. cursor: pointer;
  395. background-color: transparent;
  396. outline: none;
  397. font-size: 12px; }
  398. .el-color-dropdown__btn[disabled] {
  399. color: #cccccc;
  400. cursor: not-allowed; }
  401. .el-color-dropdown__btn:hover {
  402. color: #1b73a5;
  403. border-color: #1b73a5; }
  404. .el-color-dropdown__link-btn {
  405. cursor: pointer;
  406. color: #1b73a5;
  407. text-decoration: none;
  408. padding: 15px;
  409. font-size: 12px; }
  410. .el-color-dropdown__link-btn:hover {
  411. color: tint(#1b73a5, 20%); }
  412. .el-color-picker {
  413. display: inline-block;
  414. position: relative;
  415. line-height: normal;
  416. height: 40px; }
  417. .el-color-picker.is-disabled .el-color-picker__trigger {
  418. cursor: not-allowed; }
  419. .el-color-picker--medium {
  420. height: 36px; }
  421. .el-color-picker--medium .el-color-picker__trigger {
  422. height: 36px;
  423. width: 36px; }
  424. .el-color-picker--medium .el-color-picker__mask {
  425. height: 34px;
  426. width: 34px; }
  427. .el-color-picker--small {
  428. height: 32px; }
  429. .el-color-picker--small .el-color-picker__trigger {
  430. height: 32px;
  431. width: 32px; }
  432. .el-color-picker--small .el-color-picker__mask {
  433. height: 30px;
  434. width: 30px; }
  435. .el-color-picker--small .el-color-picker__icon,
  436. .el-color-picker--small .el-color-picker__empty {
  437. -webkit-transform: translate3d(-50%, -50%, 0) scale(0.8);
  438. transform: translate3d(-50%, -50%, 0) scale(0.8); }
  439. .el-color-picker--mini {
  440. height: 28px; }
  441. .el-color-picker--mini .el-color-picker__trigger {
  442. height: 28px;
  443. width: 28px; }
  444. .el-color-picker--mini .el-color-picker__mask {
  445. height: 26px;
  446. width: 26px; }
  447. .el-color-picker--mini .el-color-picker__icon,
  448. .el-color-picker--mini .el-color-picker__empty {
  449. -webkit-transform: translate3d(-50%, -50%, 0) scale(0.8);
  450. transform: translate3d(-50%, -50%, 0) scale(0.8); }
  451. .el-color-picker__mask {
  452. height: 38px;
  453. width: 38px;
  454. border-radius: 4px;
  455. position: absolute;
  456. top: 1px;
  457. left: 1px;
  458. z-index: 1;
  459. cursor: not-allowed;
  460. background-color: rgba(255, 255, 255, 0.7); }
  461. .el-color-picker__trigger {
  462. display: inline-block;
  463. -webkit-box-sizing: border-box;
  464. box-sizing: border-box;
  465. height: 40px;
  466. width: 40px;
  467. padding: 4px;
  468. border: 1px solid #e6e6e6;
  469. border-radius: 4px;
  470. font-size: 0;
  471. position: relative;
  472. cursor: pointer; }
  473. .el-color-picker__color {
  474. position: relative;
  475. display: block;
  476. -webkit-box-sizing: border-box;
  477. box-sizing: border-box;
  478. border: 1px solid #999;
  479. border-radius: 2px;
  480. width: 100%;
  481. height: 100%;
  482. text-align: center; }
  483. .el-color-picker__color.is-alpha {
  484. background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==); }
  485. .el-color-picker__color-inner {
  486. position: absolute;
  487. left: 0;
  488. top: 0;
  489. right: 0;
  490. bottom: 0; }
  491. .el-color-picker__empty {
  492. font-size: 12px;
  493. color: #999;
  494. position: absolute;
  495. top: 50%;
  496. left: 50%;
  497. -webkit-transform: translate3d(-50%, -50%, 0);
  498. transform: translate3d(-50%, -50%, 0); }
  499. .el-color-picker__icon {
  500. display: inline-block;
  501. position: absolute;
  502. width: 100%;
  503. top: 50%;
  504. left: 50%;
  505. -webkit-transform: translate3d(-50%, -50%, 0);
  506. transform: translate3d(-50%, -50%, 0);
  507. color: #fff;
  508. text-align: center;
  509. font-size: 12px; }
  510. .el-color-picker__panel {
  511. position: absolute;
  512. z-index: 10;
  513. padding: 6px;
  514. -webkit-box-sizing: content-box;
  515. box-sizing: content-box;
  516. background-color: #fff;
  517. border: 1px solid #ebeef5;
  518. border-radius: 4px;
  519. -webkit-box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  520. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1); }