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
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/bootstrap-5.3.3/assets/stylesheets/bootstrap/utilities/_api.scss
cm-admin-1.5.40 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/utilities/_api.scss
cm-admin-1.5.39 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/utilities/_api.scss
jekyll-theme-centos-2.51.1.beta.55 _sass/bootstrap/utilities/_api.scss
cm-admin-1.5.38 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/utilities/_api.scss
cm-admin-1.5.37 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/utilities/_api.scss
cm-admin-1.5.36 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/utilities/_api.scss
jekyll-theme-centos-2.51.1.beta.54 _sass/bootstrap/utilities/_api.scss
rails_admin-3.2.0.beta vendor/assets/stylesheets/rails_admin/bootstrap/utilities/_api.scss
cm-admin-1.5.35 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/utilities/_api.scss
cm-admin-1.5.34 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/utilities/_api.scss
rails_admin-3.1.4 vendor/assets/stylesheets/rails_admin/bootstrap/utilities/_api.scss
cm-admin-1.5.33 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/utilities/_api.scss
jekyll-theme-centos-2.51.1.beta.53 _sass/bootstrap/utilities/_api.scss
rails_admin-3.1.3 vendor/assets/stylesheets/rails_admin/bootstrap/utilities/_api.scss
cm-admin-1.5.32 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/utilities/_api.scss
cm-admin-1.5.31 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/utilities/_api.scss
administrate-bootstrap-theme-1.1.0 app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/utilities/_api.scss
jekyll-theme-centos-2.51.1.beta.52 _sass/bootstrap/utilities/_api.scss
jekyll-theme-centos-2.51.1.beta.51 _sass/bootstrap/utilities/_api.scss