mirror of
				https://github.com/twbs/bootstrap.git
				synced 2025-11-04 00:03:15 -05:00 
			
		
		
		
	- Rather than mix multiple properties in our color utilities, this splits all color and all background utils into separate classes. - Adds new .text-white class to help lighten text color for darker backgrounds
		
			
				
	
	
		
			13 lines
		
	
	
		
			235 B
		
	
	
	
		
			SCSS
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			235 B
		
	
	
	
		
			SCSS
		
	
	
	
	
	
// Contextual backgrounds
 | 
						|
 | 
						|
@mixin bg-variant($parent, $color) {
 | 
						|
  #{$parent} {
 | 
						|
    background-color: $color !important;
 | 
						|
  }
 | 
						|
  a#{$parent} {
 | 
						|
    @include hover-focus {
 | 
						|
      background-color: darken($color, 10%) !important;
 | 
						|
    }
 | 
						|
  }
 | 
						|
}
 |