Sha256: fd70fa650b736b10a74f55aadd5823e4475e3fbf57eeebd56de6f92b3073da7b

Contents?: true

Size: 1.17 KB

Versions: 136

Compression:

Stored size: 1.17 KB

Contents

// Container widths
//
// Set the container width, and override it for fixed navbars in media queries.

@if $enable-grid-classes {
  // Single container class with breakpoint max-widths
  .container,
  // 100% wide container at all breakpoints
  .container-fluid {
    @include make-container();
  }

  // Responsive containers that are 100% wide until a breakpoint
  @each $breakpoint, $container-max-width in $container-max-widths {
    .container-#{$breakpoint} {
      @extend .container-fluid;
    }

    @include media-breakpoint-up($breakpoint, $grid-breakpoints) {
      %responsive-container-#{$breakpoint} {
        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 ($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;
          }
        }
      }
    }
  }
}

Version data entries

136 entries across 136 versions & 14 rubygems

Version Path
card-mod-bootstrap-0.18.1 vendor/bootstrap/scss/_containers.scss
card-mod-bootstrap-0.18.0 vendor/bootstrap/scss/_containers.scss
rails_admin-3.2.1 vendor/assets/stylesheets/rails_admin/bootstrap/_containers.scss
headmin-0.6.3 app/assets/stylesheets/headmin/vendor/bootstrap/scss/_containers.scss
rails_admin-3.2.0 vendor/assets/stylesheets/rails_admin/bootstrap/_containers.scss
rails_admin-3.2.0.rc vendor/assets/stylesheets/rails_admin/bootstrap/_containers.scss
rails_admin-3.2.0.beta vendor/assets/stylesheets/rails_admin/bootstrap/_containers.scss
rails_admin-3.1.4 vendor/assets/stylesheets/rails_admin/bootstrap/_containers.scss
rails_admin-3.1.3 vendor/assets/stylesheets/rails_admin/bootstrap/_containers.scss
card-mod-bootstrap-0.17.0 vendor/bootstrap/scss/_containers.scss
card-mod-bootstrap-0.16.0 vendor/bootstrap/scss/_containers.scss
vitat-css-0.1.3 bootstrap/scss/_containers.scss
vitat-css-0.1.2 bootstrap/scss/_containers.scss
card-mod-bootstrap-0.15.6 vendor/bootstrap/scss/_containers.scss
jekyll-theme-petridish-3.0 _sass/bootstrap/_containers.scss
card-mod-bootstrap-0.15.5 vendor/bootstrap/scss/_containers.scss
mumuki-styles-3.1.0 app/assets/stylesheets/vendor/bootstrap/_containers.scss
card-mod-bootstrap-0.15.4 vendor/bootstrap/scss/_containers.scss
card-mod-bootstrap-0.15.3 vendor/bootstrap/scss/_containers.scss
card-mod-bootstrap-0.15.1.2 vendor/bootstrap/scss/_containers.scss