color-picker.scss 773 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. .colorpicker {
  2. display: flex;
  3. align-items: center;
  4. height: 60px;
  5. &-choice {
  6. width: 50px;
  7. height: 50px;
  8. border: 1px solid #FFF;
  9. transition: all .2s ease;
  10. cursor: pointer;
  11. display: flex;
  12. justify-content: center;
  13. align-items: center;
  14. &.is-active, &:hover {
  15. border-width: 5px;
  16. border-radius: 3px;
  17. width: 60px;
  18. height: 60px;
  19. }
  20. &.is-active::before {
  21. content: 'X';
  22. font-weight: 700;
  23. color: rgba(255,255,255,.5);
  24. }
  25. @each $color, $colorvalue in $material-colors {
  26. &.is-#{$color} {
  27. background-color: mc($color, '500');
  28. border-color: mc($color,'500');
  29. &.is-active, &:hover {
  30. border-color: mc($color,'300');
  31. }
  32. }
  33. }
  34. }
  35. }