ColorPicker.less 591 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. @import "~assets/less/variable";
  2. :global {
  3. .sketch-picker {
  4. user-select: none;
  5. }
  6. }
  7. .picker {
  8. height: 28px;
  9. border: 1px solid @border-color-base;
  10. border-radius: 4px;
  11. display: flex;
  12. justify-content: center;
  13. align-items: center;
  14. cursor: pointer;
  15. &:global(-sm) {
  16. height: 24px;
  17. width: 24px;
  18. .colorIndicator {
  19. height: 12px;
  20. width: 12px;
  21. }
  22. }
  23. &:global(-lg) {
  24. height: 40px;
  25. width: 40px;
  26. .colorIndicator {
  27. height: 20px;
  28. width: 20px;
  29. }
  30. }
  31. }
  32. .colorIndicator {
  33. width: 14px;
  34. height: 14px;
  35. display: block;
  36. }