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-14.10.0.pre.rc.23 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-14.10.0.pre.rc.22 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-14.10.0.pre.rc.21 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-14.9.0.pre.alpha.play1703errorstatealignment5060 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-14.10.0.pre.rc.20 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-14.10.0.pre.rc.19 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-14.10.0.pre.rc.18 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-14.9.0.pre.alpha.PLAY1660reactdropzone5020 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-14.10.0.pre.rc.17 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-14.10.0.pre.rc.16 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-14.9.0.pre.alpha.play17004992 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-14.9.0.pre.alpha.play1703errorstatealignment4991 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-14.10.0.pre.rc.15 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-14.9.0.pre.alpha.PLAY16264952 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-14.9.0.pre.alpha.PLAY1731inputmasking4927 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-14.9.0.pre.alpha.play1742globalheightfixes4926 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-14.9.0.pre.alpha.play1742globalheightfixes4925 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-14.10.0.pre.rc.14 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-14.10.0.pre.rc.13 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-14.9.0.pre.alpha.PBNTR746datepickerdefaultbug4903 app/pb_kits/playbook/utilities/_mixins.scss