Sha256: b0ccf15404cd373f1a617b5933a274482e263fb54c25acfae497612506956946

Contents?: true

Size: 813 Bytes

Versions: 1038

Compression:

Stored size: 813 Bytes

Contents

@mixin global_props_css($props, $class_prefix, $css_attribute, $responsive) {
  @each $propkey, $propvalue in $props {
    .#{$class_prefix}_#{$propkey} {
      #{$css_attribute}: #{$propvalue} !important;
      @content;
    }
  }

  @if $responsive {
    @each $size, $size_value in $breakpoints_grid {
      @each $prop_key, $prop_value in $props {
          $min_size: map-get($size_value, "min");
          $max_size: map-get($size_value, "max");
          .#{$class_prefix}_#{$size}_#{$prop_key} {
            @include break_on($min_size, $max_size) {
              #{$css_attribute}: #{$prop_value} !important;
            }
          }
      }
    }
  }
}

@mixin global_props_responsive_css($props, $class_prefix, $css_attribute) {
  @include global_props_css($props, $class_prefix, $css_attribute, 1)
}

Version data entries

1,038 entries across 1,038 versions & 1 rubygems

Version Path
playbook_ui-11.20.0.pre.alpha.focus1 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-11.20.0 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-11.19.0.pre.alpha.map1 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-11.19.0.pre.alpha.pagpassthrough1 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-11.19.0 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-11.18.0.pre.alpha.pagutility1 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-11.19.0.pre.typeahead1 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-11.18.0 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-11.17.0 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-11.15.0.pre.alpha.dependencies1 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-11.16.0.pre.alpha.paginationrails1 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-11.16.0 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-11.16.0.pre.alpha.reactupgrade1 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-11.15.0.pre.alpha.table1 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-11.16.0.pre.alpha.pagination.rails1 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-11.15.0 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-11.14.0 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-11.13.0.pre.alpha.fontawesome1 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-11.13.0 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-11.12.1.pre.alpha.charts1 app/pb_kits/playbook/utilities/_mixins.scss