| 
									
										
										
										
											2013-12-08 12:52:51 +08:00
										 |  |  | // Container widths
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | // Set the container width, and override it for fixed navbars in media queries.
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-12-27 07:14:01 +08:00
										 |  |  | @if $enable-grid-classes { | 
					
						
							| 
									
										
										
										
											2019-07-22 08:38:36 +08:00
										 |  |  |   // Single container class with breakpoint max-widths
 | 
					
						
							| 
									
										
										
										
											2015-12-27 07:14:01 +08:00
										 |  |  |   .container { | 
					
						
							|  |  |  |     @include make-container(); | 
					
						
							|  |  |  |     @include make-container-max-widths(); | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2013-12-08 12:52:51 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-07-22 08:38:36 +08:00
										 |  |  |   // 100% wide container at all breakpoints
 | 
					
						
							| 
									
										
										
										
											2015-12-27 07:14:01 +08:00
										 |  |  |   .container-fluid { | 
					
						
							|  |  |  |     @include make-container(); | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2019-07-22 08:38:36 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   // Responsive containers that are 100% wide until a breakpoint
 | 
					
						
							|  |  |  |   @each $breakpoint, $container-max-width in $container-max-widths { | 
					
						
							|  |  |  |     .container-#{$breakpoint} { | 
					
						
							| 
									
										
										
										
											2019-07-23 14:50:24 +08:00
										 |  |  |       @extend .container-fluid; | 
					
						
							| 
									
										
										
										
											2019-07-22 08:38:36 +08:00
										 |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     @include media-breakpoint-up($breakpoint, $grid-breakpoints) { | 
					
						
							| 
									
										
										
										
											2019-08-06 03:12:16 +08:00
										 |  |  |       %responsive-container-#{$breakpoint} { | 
					
						
							| 
									
										
										
										
											2019-07-22 08:38:36 +08:00
										 |  |  |         max-width: $container-max-width; | 
					
						
							|  |  |  |       } | 
					
						
							| 
									
										
										
										
											2019-08-06 03:12:16 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |       @each $name, $width in $grid-breakpoints { | 
					
						
							|  |  |  |         @if ($container-max-width > $width or $breakpoint == $name) { | 
					
						
							|  |  |  |           .container#{breakpoint-infix($name, $grid-breakpoints)} { | 
					
						
							|  |  |  |             @extend %responsive-container-#{$breakpoint}; | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |       } | 
					
						
							| 
									
										
										
										
											2019-07-22 08:38:36 +08:00
										 |  |  |     } | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2013-12-08 12:52:51 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-07-22 08:38:36 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-12-08 12:52:51 +08:00
										 |  |  | // Row
 | 
					
						
							|  |  |  | //
 | 
					
						
							| 
									
										
										
										
											2019-07-27 14:30:39 +08:00
										 |  |  | // Rows contain your columns.
 | 
					
						
							| 
									
										
										
										
											2013-12-08 12:52:51 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-24 13:13:58 +08:00
										 |  |  | @if $enable-grid-classes { | 
					
						
							|  |  |  |   .row { | 
					
						
							|  |  |  |     @include make-row(); | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2016-11-27 04:13:15 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-07-24 14:00:29 +08:00
										 |  |  |   @each $breakpoint in map-keys($grid-breakpoints) { | 
					
						
							|  |  |  |     $infix: breakpoint-infix($breakpoint, $grid-breakpoints); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     @for $i from 1 through $grid-row-columns { | 
					
						
							|  |  |  |       .row-cols#{$infix}-#{$i} { | 
					
						
							|  |  |  |         @include row-cols($i); | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-11-27 04:13:15 +08:00
										 |  |  |   // Remove the negative margin from default .row, then the horizontal padding
 | 
					
						
							|  |  |  |   // from all immediate children columns (to prevent runaway style inheritance).
 | 
					
						
							|  |  |  |   .no-gutters { | 
					
						
							|  |  |  |     margin-right: 0; | 
					
						
							|  |  |  |     margin-left: 0; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-11-28 14:47:00 +08:00
										 |  |  |     > .col, | 
					
						
							| 
									
										
										
										
											2016-11-27 04:13:15 +08:00
										 |  |  |     > [class*="col-"] { | 
					
						
							|  |  |  |       padding-right: 0; | 
					
						
							|  |  |  |       padding-left: 0; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2013-01-16 09:55:14 +08:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2013-04-27 14:59:51 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-12-08 12:52:51 +08:00
										 |  |  | // Columns
 | 
					
						
							|  |  |  | //
 | 
					
						
							| 
									
										
										
										
											2013-04-27 14:59:51 +08:00
										 |  |  | // Common styles for small and large grid columns
 | 
					
						
							| 
									
										
										
										
											2013-12-08 12:52:51 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-24 13:13:58 +08:00
										 |  |  | @if $enable-grid-classes { | 
					
						
							|  |  |  |   @include make-grid-columns(); | 
					
						
							|  |  |  | } |