c827a8b1f18ac11d3477ab46d398d0bf9dfe75c74a77d2b08d94a08b4f6fbc56fb0138ec46defd7042f3310d27c4d078a04ed7a4ecb9ddc6e1e1acd407d2c4 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. @use 'mixins/mixins' as *;
  2. @use 'common/var' as *;
  3. @include b(check-tag) {
  4. background-color: getCssVar('color', 'info', 'light-9');
  5. border-radius: getCssVar('border-radius', 'base');
  6. color: getCssVar('color', 'info');
  7. cursor: pointer;
  8. display: inline-block;
  9. font-size: getCssVar('font-size', 'base');
  10. line-height: getCssVar('font-size', 'base');
  11. padding: 7px 15px;
  12. transition: getCssVar('transition', 'all');
  13. font-weight: bold;
  14. &:hover {
  15. background-color: getCssVar('color', 'info', 'light-7');
  16. }
  17. @each $type in $types {
  18. &.#{bem('check-tag', '', $type)} {
  19. @include when(checked) {
  20. background-color: getCssVar('color', $type, 'light-8');
  21. color: getCssVar('color', $type);
  22. &:hover {
  23. background-color: getCssVar('color', $type, 'light-7');
  24. }
  25. @include when(disabled) {
  26. background-color: getCssVar('color', $type, 'light-8');
  27. color: getCssVar('disabled-text-color');
  28. cursor: not-allowed;
  29. &:hover {
  30. background-color: getCssVar('color', $type, 'light-8');
  31. }
  32. }
  33. }
  34. @include when(disabled) {
  35. @if $type == 'primary' {
  36. background-color: getCssVar('color', 'info', 'light-9');
  37. } @else {
  38. background-color: getCssVar('color', $type, 'light-9');
  39. }
  40. color: getCssVar('disabled-text-color');
  41. cursor: not-allowed;
  42. &:hover {
  43. @if $type == 'primary' {
  44. background-color: getCssVar('color', 'info', 'light-9');
  45. } @else {
  46. background-color: getCssVar('color', $type, 'light-9');
  47. }
  48. }
  49. }
  50. }
  51. }
  52. }