You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.1 KiB

  1. .colorpicker {
  2. display: flex;
  3. align-items: center;
  4. height: 60px;
  5. &-choice {
  6. width: 40px;
  7. height: 40px;
  8. border: 0 solid #FFF;
  9. transition: all .2s ease;
  10. cursor: pointer;
  11. display: flex;
  12. justify-content: center;
  13. align-items: center;
  14. margin-right: 1px;
  15. &:first-child {
  16. border-top-left-radius: 5px;
  17. border-bottom-left-radius: 5px;
  18. }
  19. &:last-child {
  20. border-top-right-radius: 5px;
  21. border-bottom-right-radius: 5px;
  22. }
  23. &.is-active, &:hover {
  24. border-width: 5px;
  25. border-radius: 5px;
  26. width: 55px;
  27. height: 55px;
  28. }
  29. &.is-active::before {
  30. content: '|';
  31. font-weight: 700;
  32. color: rgba(255,255,255,.5);
  33. margin-bottom: 3px;
  34. }
  35. @each $color, $colorvalue in $material-colors {
  36. &.is-#{$color} {
  37. background-color: mc($color, '500');
  38. background-image: linear-gradient(45deg, mc($color, '400'), mc($color, '700'));
  39. border-color: mc($color,'500');
  40. &.is-active, &:hover {
  41. border-color: mc($color,'300');
  42. }
  43. }
  44. }
  45. }
  46. }