Sha256: 275bb6c0cab34896d3cddd3eee2b897c96a4942d5821646db99b2c2d9252a49c

Contents?: true

Size: 1.7 KB

Versions: 517

Compression:

Stored size: 1.7 KB

Contents

// Loop over each breakpoint
@each $breakpoint in map-keys($grid-breakpoints) {

  // Generate media query if needed
  @include media-breakpoint-up($breakpoint) {
    $infix: breakpoint-infix($breakpoint, $grid-breakpoints);

    // Loop over each utility property
    @each $key, $utility in $utilities {
      // The utility can be disabled with `false`, thus check if the utility is a map first
      // Only proceed if responsive media queries are enabled or if it's the base media query
      @if type-of($utility) == "map" and (map-get($utility, responsive) or $infix == "") {
        @include generate-utility($utility, $infix);
      }
    }
  }
}

// RFS rescaling
@media (min-width: $rfs-mq-value) {
  @each $breakpoint in map-keys($grid-breakpoints) {
    $infix: breakpoint-infix($breakpoint, $grid-breakpoints);

    @if (map-get($grid-breakpoints, $breakpoint) < $rfs-breakpoint) {
      // Loop over each utility property
      @each $key, $utility in $utilities {
        // The utility can be disabled with `false`, thus check if the utility is a map first
        // Only proceed if responsive media queries are enabled or if it's the base media query
        @if type-of($utility) == "map" and map-get($utility, rfs) and (map-get($utility, responsive) or $infix == "") {
          @include generate-utility($utility, $infix, true);
        }
      }
    }
  }
}


// Print utilities
@media print {
  @each $key, $utility in $utilities {
    // The utility can be disabled with `false`, thus check if the utility is a map first
    // Then check if the utility needs print styles
    @if type-of($utility) == "map" and map-get($utility, print) == true {
      @include generate-utility($utility, "-print");
    }
  }
}

Version data entries

517 entries across 517 versions & 25 rubygems

Version Path
cm-admin-4.4.8 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/utilities/_api.scss
cm-admin-4.4.6 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/utilities/_api.scss
jekyll-theme-petridish-3.1.0 _sass/bootstrap/utilities/_api.scss
cm-admin-4.4.1 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/utilities/_api.scss
cm-admin-4.4.0 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/utilities/_api.scss
cm-admin-4.3.0 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/utilities/_api.scss
elixir-toolkit-theme-4.0.0 _sass/bootstrap/utilities/_api.scss
cm-admin-4.2.1 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/utilities/_api.scss
cm-admin-4.2.0 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/utilities/_api.scss
rails_admin-3.3.0 vendor/assets/stylesheets/rails_admin/bootstrap/utilities/_api.scss
cm-admin-4.1.2 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/utilities/_api.scss
cm-admin-4.1.1 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/utilities/_api.scss
cm-admin-4.1.0 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/utilities/_api.scss
cm-admin-4.0.0 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/utilities/_api.scss
cm-admin-3.0.16 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/utilities/_api.scss
card-mod-bootstrap-0.18.1 vendor/bootstrap/scss/utilities/_api.scss
cm-admin-3.0.15 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/utilities/_api.scss
cm-admin-3.0.14 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/utilities/_api.scss
cm-admin-3.0.13 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/utilities/_api.scss
cm-admin-3.0.12 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/utilities/_api.scss