mirror of https://github.com/twbs/bootstrap.git
				
				
				
			Allow percentages in container widths (#29819)
This commit is contained in:
		
							parent
							
								
									00b0e0a9b7
								
							
						
					
					
						commit
						0d08c74d2f
					
				| 
						 | 
				
			
			@ -25,11 +25,19 @@
 | 
			
		|||
        max-width: $container-max-width;
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      // Extend each breakpoint which is smaller or equal to the current breakpoint
 | 
			
		||||
      $extend-breakpoint: true;
 | 
			
		||||
 | 
			
		||||
      @each $name, $width in $grid-breakpoints {
 | 
			
		||||
        @if ($container-max-width > $width or $breakpoint == $name) {
 | 
			
		||||
        @if ($extend-breakpoint) {
 | 
			
		||||
          .container#{breakpoint-infix($name, $grid-breakpoints)} {
 | 
			
		||||
            @extend %responsive-container-#{$breakpoint};
 | 
			
		||||
          }
 | 
			
		||||
 | 
			
		||||
          // Once the current breakpoint is reached, stop extending
 | 
			
		||||
          @if ($breakpoint == $name) {
 | 
			
		||||
            $extend-breakpoint: false;
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue