_colors.scss 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. //
  2. // Misc: Colors
  3. //
  4. // Background colors (theme colors)
  5. @each $name, $color in $theme-colors {
  6. @include background-variant($name, $color);
  7. }
  8. // Background colors (colors)
  9. @each $name, $color in $colors {
  10. @include background-variant($name, $color);
  11. }
  12. .bg-gray {
  13. background-color: $gray-500;
  14. color: color-yiq($gray-500);
  15. }
  16. .bg-gray-light {
  17. background-color: lighten($gray-200, 3%);
  18. color: color-yiq(lighten($gray-200, 3%)) !important;
  19. }
  20. .bg-black {
  21. background-color: $black;
  22. color: color-yiq($black) !important;
  23. }
  24. .bg-white {
  25. background-color: $white;
  26. color: color-yiq($white) !important;
  27. }
  28. // Gradient Background colors (theme colors)
  29. @each $name, $color in $theme-colors {
  30. @include background-gradient-variant($name, $color);
  31. }
  32. // Gradient Background colors (colors)
  33. @each $name, $color in $colors {
  34. @include background-gradient-variant($name, $color);
  35. }
  36. // Backgrund Color Disabled
  37. [class^='bg-'].disabled {
  38. opacity: .65;
  39. }
  40. // Text muted hover
  41. a.text-muted:hover {
  42. color: theme-color(primary) !important;
  43. }
  44. // Link Styles
  45. .link-muted {
  46. color: darken($gray-500, 30%);
  47. &:hover,
  48. &:focus {
  49. color: darken($gray-500, 40%);
  50. }
  51. }
  52. .link-black {
  53. color: $gray-600;
  54. &:hover,
  55. &:focus {
  56. color: lighten($gray-500, 20%);
  57. }
  58. }