_global.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. // Globals
  2. // Full palette of colors
  3. @each $color_name, $color in $mdb-colors-1 {
  4. @each $color_type, $color_value in $color {
  5. @if $color_type == "base" {
  6. .#{$color_name} {
  7. background-color: $color_value !important;
  8. }
  9. .#{$color_name}-text {
  10. color: $color-value !important;
  11. }
  12. .rgba-#{$color_name}-slight,
  13. .rgba-#{$color_name}-slight:after {
  14. background-color: rgba($color_value, .1);
  15. }
  16. .rgba-#{$color_name}-light,
  17. .rgba-#{$color_name}-light:after {
  18. background-color: rgba($color_value, .3);
  19. }
  20. .rgba-#{$color_name}-strong,
  21. .rgba-#{$color_name}-strong:after {
  22. background-color: rgba($color_value, .7);
  23. }
  24. }
  25. @else {
  26. @if $enable_full_palette {
  27. .#{$color_name}.#{$color_type} {
  28. background-color: $color_value !important;
  29. }
  30. }
  31. }
  32. }
  33. }
  34. // Stylish color
  35. @each $color_name, $color_value in $stylish-rgba {
  36. .#{$color_name} {
  37. background-color: $color_value;
  38. }
  39. }
  40. // Material colors palette
  41. @each $color_name, $color in $material-colors {
  42. .#{$color_name} {
  43. background-color: $color !important;
  44. }
  45. }
  46. // Basic gradients
  47. @each $name, $val in $gradients {
  48. @include make-gradient($name, $val);
  49. }
  50. @each $name, $val in $gradients-rgba {
  51. @include make-gradient-rgba($name, $val);
  52. }
  53. .dark-grey-text {
  54. color: #4f4f4f !important;
  55. &:hover,
  56. &:focus {
  57. color: #4f4f4f !important;
  58. }
  59. }
  60. // Shadow on hover
  61. .hoverable {
  62. box-shadow: none;
  63. transition: $transition-hoverable;
  64. &:hover {
  65. box-shadow: $z-depth-2;
  66. transition: $transition-hoverable;
  67. }
  68. }
  69. // Shadows
  70. .z-depth-0 {
  71. box-shadow: none !important;
  72. }
  73. .z-depth-1 {
  74. box-shadow: $z-depth-1 !important;
  75. }
  76. .z-depth-1-half {
  77. box-shadow: $z-depth-1-half !important;
  78. }
  79. .z-depth-2 {
  80. box-shadow: $z-depth-2 !important;
  81. }
  82. .z-depth-3 {
  83. box-shadow: $z-depth-3 !important;
  84. }
  85. .z-depth-4 {
  86. box-shadow: $z-depth-4 !important;
  87. }
  88. .z-depth-5 {
  89. box-shadow: $z-depth-5 !important;
  90. }
  91. // Disabled cursor
  92. .disabled,
  93. :disabled {
  94. pointer-events: none !important;
  95. }
  96. // Links
  97. a {
  98. cursor: pointer;
  99. text-decoration: none;
  100. color: $link-color;
  101. transition: $transition-basic;
  102. &:hover {
  103. text-decoration: none;
  104. color: $link-hover-color;
  105. transition: $transition-basic;
  106. }
  107. &.disabled,
  108. &:disabled {
  109. &:hover {
  110. color: $link-color;
  111. }
  112. }
  113. }
  114. a:not([href]):not([tabindex]), a:not([href]):not([tabindex]):focus, a:not([href]):not([tabindex]):hover {
  115. color: inherit;
  116. text-decoration: none;
  117. }