Sha256: 275bb6c0cab34896d3cddd3eee2b897c96a4942d5821646db99b2c2d9252a49c

Contents?: true

Size: 1.7 KB

Versions: 518

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

518 entries across 518 versions & 25 rubygems

Version Path
administrate-bootstrap-theme-1.0.6 app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/utilities/_api.scss
administrate-bootstrap-theme-1.0.4 app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/utilities/_api.scss
rails_admin-3.0.0.rc vendor/assets/stylesheets/rails_admin/bootstrap/utilities/_api.scss
headmin-0.3.4 app/assets/stylesheets/headmin/vendor/bootstrap/scss/utilities/_api.scss
headmin-0.3.3 app/assets/stylesheets/headmin/vendor/bootstrap/scss/utilities/_api.scss
headmin-0.3.2 app/assets/stylesheets/headmin/vendor/bootstrap/scss/utilities/_api.scss
headmin-0.3.1 app/assets/stylesheets/headmin/vendor/bootstrap/scss/utilities/_api.scss
bootstrap-scss-0.0.3 vendor/assets/bootstrap/scss/utilities/_api.scss
bootstrap-scss-0.0.2 vendor/assets/bootstrap/scss/utilities/_api.scss
administrate-bootstrap-theme-1.0.1 app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/utilities/_api.scss
administrate-bootstrap-theme-1.0.0 app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/utilities/_api.scss
bootstrap-5.1.3 assets/stylesheets/bootstrap/utilities/_api.scss
bootstrap-5.1.2 assets/stylesheets/bootstrap/utilities/_api.scss
bootstrap-5.1.1 assets/stylesheets/bootstrap/utilities/_api.scss
bootstrap-5.1.0 assets/stylesheets/bootstrap/utilities/_api.scss
bootstrap-5.0.2 assets/stylesheets/bootstrap/utilities/_api.scss
mumuki-styles-3.0.4 app/assets/stylesheets/vendor/bootstrap/utilities/_api.scss
mumuki-styles-3.0.2.2 app/assets/stylesheets/vendor/bootstrap/utilities/_api.scss
mumuki-styles-3.0.2.1 app/assets/stylesheets/vendor/bootstrap/utilities/_api.scss
jekyll-bootstrap-theme-1.1.0 _sass/bootstrap/utilities/_api.scss