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
elixir-toolkit-theme-1.13.0 _sass/bootstrap/utilities/_api.scss
vuexy-0.1.1 app/assets/stylesheets/bootstrap/scss/utilities/_api.scss
elixir-toolkit-theme-1.12.0 _sass/bootstrap/utilities/_api.scss
elixir-toolkit-theme-1.11.0 _sass/bootstrap/utilities/_api.scss
elixir-toolkit-theme-1.9.0 _sass/bootstrap/utilities/_api.scss
rails_admin-3.0.0 vendor/assets/stylesheets/rails_admin/bootstrap/utilities/_api.scss
elixir-toolkit-theme-1.8.0 _sass/bootstrap/utilities/_api.scss
vuexy-0.1.0 app/assets/stylesheets/bootstrap/scss/utilities/_api.scss
elixir-toolkit-theme-1.7.2 _sass/bootstrap/utilities/_api.scss
rails_admin-3.0.0.rc4 vendor/assets/stylesheets/rails_admin/bootstrap/utilities/_api.scss
elixir-toolkit-theme-1.7.1 _sass/bootstrap/utilities/_api.scss
elixir-toolkit-theme-1.7.0 _sass/bootstrap/utilities/_api.scss
elixir-toolkit-theme-1.6.1 _sass/bootstrap/utilities/_api.scss
elixir-toolkit-theme-1.6.0 _sass/bootstrap/utilities/_api.scss
elixir-toolkit-theme-1.5.3 _sass/bootstrap/utilities/_api.scss
elixir-toolkit-theme-1.5.2 _sass/bootstrap/utilities/_api.scss
elixir-toolkit-theme-1.5.1 _sass/bootstrap/utilities/_api.scss
elixir-toolkit-theme-1.5.0 _sass/bootstrap/utilities/_api.scss
rails_admin-3.0.0.rc3 vendor/assets/stylesheets/rails_admin/bootstrap/utilities/_api.scss
rails_admin-3.0.0.rc2 vendor/assets/stylesheets/rails_admin/bootstrap/utilities/_api.scss