mirror of https://github.com/twbs/bootstrap.git
				
				
				
			Remove redundant media queries (#21220)
This commit is contained in:
		
							parent
							
								
									b1e8d60348
								
							
						
					
					
						commit
						94be2d2254
					
				| 
						 | 
				
			
			@ -8,7 +8,6 @@
 | 
			
		|||
    $min: breakpoint-min($breakpoint, $grid-breakpoints);
 | 
			
		||||
 | 
			
		||||
    @if $min {
 | 
			
		||||
      @media (min-width: $min) {
 | 
			
		||||
      .d-#{$breakpoint}-none { display: none !important; }
 | 
			
		||||
      .d-#{$breakpoint}-inline { display: inline !important; }
 | 
			
		||||
      .d-#{$breakpoint}-inline-block { display: inline-block !important; }
 | 
			
		||||
| 
						 | 
				
			
			@ -16,7 +15,6 @@
 | 
			
		|||
      .d-#{$breakpoint}-table { display: table !important; }
 | 
			
		||||
      .d-#{$breakpoint}-table-cell { display: table-cell !important; }
 | 
			
		||||
      .d-#{$breakpoint}-flex { display: flex !important; }
 | 
			
		||||
      }
 | 
			
		||||
    } @else {
 | 
			
		||||
      .d-none { display: none !important; }
 | 
			
		||||
      .d-inline { display: inline !important; }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,11 +4,9 @@
 | 
			
		|||
 | 
			
		||||
    @if $min {
 | 
			
		||||
      // everything else
 | 
			
		||||
      @media (min-width: $min) {
 | 
			
		||||
      .float-#{$breakpoint}-left { @include float-left; }
 | 
			
		||||
      .float-#{$breakpoint}-right { @include float-right; }
 | 
			
		||||
      .float-#{$breakpoint}-none { @include float-none; }
 | 
			
		||||
      }
 | 
			
		||||
    } @else {
 | 
			
		||||
      // xs
 | 
			
		||||
      .float-left { @include float-left; }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -21,7 +21,6 @@
 | 
			
		|||
 | 
			
		||||
        @if $min {
 | 
			
		||||
          // everything else
 | 
			
		||||
          @media (min-width: $min) {
 | 
			
		||||
          .#{$abbrev}-#{$breakpoint}-#{$size} { #{$prop}:        $length-y $length-x !important; } // a = All sides
 | 
			
		||||
          .#{$abbrev}t-#{$breakpoint}-#{$size} { #{$prop}-top:    $length-y !important; }
 | 
			
		||||
          .#{$abbrev}r-#{$breakpoint}-#{$size} { #{$prop}-right:  $length-x !important; }
 | 
			
		||||
| 
						 | 
				
			
			@ -35,7 +34,6 @@
 | 
			
		|||
            #{$prop}-top:    $length-y !important;
 | 
			
		||||
            #{$prop}-bottom: $length-y !important;
 | 
			
		||||
          }
 | 
			
		||||
          }
 | 
			
		||||
        } @else {
 | 
			
		||||
          // xs
 | 
			
		||||
          .#{$abbrev}-#{$size} { #{$prop}:        $length-y $length-x !important; } // a = All sides
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue