|
@@ -1,74 +1,15 @@
|
|
|
-/*
|
|
|
- * Misc: Colors
|
|
|
- * ------------
|
|
|
- */
|
|
|
+//
|
|
|
+// Misc: Colors
|
|
|
+//
|
|
|
|
|
|
// Background colors (theme colors)
|
|
|
@each $name, $color in $theme-colors {
|
|
|
- .bg-#{$name} {
|
|
|
- &,
|
|
|
- > a {
|
|
|
- color: color-yiq($color) !important;
|
|
|
- }
|
|
|
-
|
|
|
- &.btn {
|
|
|
- &.disabled,
|
|
|
- &:disabled,
|
|
|
- &:not(:disabled):not(.disabled):active,
|
|
|
- &:not(:disabled):not(.disabled).active,
|
|
|
- .show > &.dropdown-toggle {
|
|
|
- background-image: none !important;
|
|
|
- }
|
|
|
-
|
|
|
- &:hover {
|
|
|
- @include bg-gradient-variant('&', darken($color, 7.5%));
|
|
|
- border-color: darken($color, 10%);
|
|
|
- color: color-yiq(darken($color, 7.5%));
|
|
|
- }
|
|
|
-
|
|
|
- &:active,
|
|
|
- &.active {
|
|
|
- @include bg-gradient-variant('&', darken($color, 10%));
|
|
|
- border-color: darken($color, 12.5%);
|
|
|
- color: color-yiq(darken($color, 10%));
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ @include background-variant($name, $color);
|
|
|
}
|
|
|
|
|
|
// Background colors (colors)
|
|
|
@each $name, $color in $colors {
|
|
|
- .bg-#{$name} {
|
|
|
- background-color: #{$color};
|
|
|
-
|
|
|
- &,
|
|
|
- > a {
|
|
|
- color: color-yiq($color) !important;
|
|
|
- }
|
|
|
-
|
|
|
- &.btn {
|
|
|
- &.disabled,
|
|
|
- &:disabled,
|
|
|
- &:not(:disabled):not(.disabled):active,
|
|
|
- &:not(:disabled):not(.disabled).active,
|
|
|
- .show > &.dropdown-toggle {
|
|
|
- background-image: none !important;
|
|
|
- }
|
|
|
-
|
|
|
- &:hover {
|
|
|
- @include bg-gradient-variant('&', darken($color, 7.5%));
|
|
|
- border-color: darken($color, 10%);
|
|
|
- color: color-yiq(darken($color, 7.5%));
|
|
|
- }
|
|
|
-
|
|
|
- &:active,
|
|
|
- &.active {
|
|
|
- @include bg-gradient-variant('&', darken($color, 10%));
|
|
|
- border-color: darken($color, 12.5%);
|
|
|
- color: color-yiq(darken($color, 10%));
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ @include background-variant($name, $color);
|
|
|
}
|
|
|
|
|
|
.bg-gray {
|
|
@@ -93,64 +34,12 @@
|
|
|
|
|
|
// Gradient Background colors (theme colors)
|
|
|
@each $name, $color in $theme-colors {
|
|
|
- .bg-gradient-#{$name} {
|
|
|
- @include bg-gradient-variant('&', $color);
|
|
|
- color: color-yiq($color);
|
|
|
-
|
|
|
- &.btn {
|
|
|
- &.disabled,
|
|
|
- &:disabled,
|
|
|
- &:not(:disabled):not(.disabled):active,
|
|
|
- &:not(:disabled):not(.disabled).active,
|
|
|
- .show > &.dropdown-toggle {
|
|
|
- background-image: none !important;
|
|
|
- }
|
|
|
-
|
|
|
- &:hover {
|
|
|
- @include bg-gradient-variant('&', darken($color, 7.5%));
|
|
|
- border-color: darken($color, 10%);
|
|
|
- color: color-yiq(darken($color, 7.5%));
|
|
|
- }
|
|
|
-
|
|
|
- &:active,
|
|
|
- &.active {
|
|
|
- @include bg-gradient-variant('&', darken($color, 10%));
|
|
|
- border-color: darken($color, 12.5%);
|
|
|
- color: color-yiq(darken($color, 10%));
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ @include background-gradient-variant($name, $color);
|
|
|
}
|
|
|
|
|
|
// Gradient Background colors (colors)
|
|
|
@each $name, $color in $colors {
|
|
|
- .bg-gradient-#{$name} {
|
|
|
- @include bg-gradient-variant('&', $color);
|
|
|
- color: color-yiq($color);
|
|
|
-
|
|
|
- &.btn {
|
|
|
- &.disabled,
|
|
|
- &:disabled,
|
|
|
- &:not(:disabled):not(.disabled):active,
|
|
|
- &:not(:disabled):not(.disabled).active,
|
|
|
- .show > &.dropdown-toggle {
|
|
|
- background-image: none !important;
|
|
|
- }
|
|
|
-
|
|
|
- &:hover {
|
|
|
- @include bg-gradient-variant('&', darken($color, 7.5%));
|
|
|
- border-color: darken($color, 10%);
|
|
|
- color: color-yiq(darken($color, 7.5%));
|
|
|
- }
|
|
|
-
|
|
|
- &:active,
|
|
|
- &.active {
|
|
|
- @include bg-gradient-variant('&', darken($color, 10%));
|
|
|
- border-color: darken($color, 12.5%);
|
|
|
- color: color-yiq(darken($color, 10%));
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ @include background-gradient-variant($name, $color);
|
|
|
}
|
|
|
|
|
|
// Backgrund Color Disabled
|