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.

67 lines
1.1 KiB

  1. .toggle {
  2. display: inline-flex;
  3. align-items: center;
  4. height: 24px;
  5. cursor: pointer;
  6. margin: 5px 5px 5px 0;
  7. & + & {
  8. margin-left: 15px;
  9. }
  10. &-container {
  11. display: inline-flex;
  12. align-items: center;
  13. height: 24px;
  14. width: 50px;
  15. background-color: mc('blue-grey', '200');
  16. border-radius: 12px;
  17. padding: 2px;
  18. transition: background-color .5s ease;
  19. }
  20. &-pin {
  21. display: flex;
  22. background-color: #FFF;
  23. border-radius:10px;
  24. height: 20px;
  25. width: 20px;
  26. transition: all .5s ease;
  27. }
  28. &-text {
  29. padding-left: 10px;
  30. color: mc('grey', '700');
  31. font-size: 12px;
  32. }
  33. &:hover {
  34. .toggle-container {
  35. background-color: mc('grey', '400');
  36. }
  37. }
  38. &.is-active {
  39. .toggle-container {
  40. background-color: mc('indigo', '500');
  41. }
  42. .toggle-pin {
  43. margin-left: 28px;
  44. }
  45. }
  46. }
  47. /* THEME OVERRIDE - START */
  48. @each $color, $colorvalue in $material-colors {
  49. .is-primary-#{$color} .toggle {
  50. &.is-active {
  51. .toggle-container {
  52. background-color: mc($color, '500');
  53. }
  54. }
  55. }
  56. }
  57. /* THEME OVERRIDE - END */