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.5.0.pre.alpha.fontawesome app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-11.7.0.pre.alpha.pre.guagechart1 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-11.6.0 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-11.5.0.pre.alpha.datepicker1 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-11.6.0.pre.alpha.rubocopperf1 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-11.6.1.pre.alpha.rubocop.pre.performance1 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-11.5.0.pre.alpha.pre.rubocop app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-11.6.0.pre.alpha.momenttz1 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-11.5.0 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-11.4.0.pre.alpha.rubytheme2 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-11.4.0.pre.alpha.rubytheme1 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-11.4.0 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-11.3.0.pre.alpha2 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-11.3.0.pre.alpha1 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-11.3.0 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-11.2.7 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-11.2.6 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-11.2.5 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-11.2.4 app/pb_kits/playbook/utilities/_mixins.scss
playbook_ui-11.2.4.pre.alpha1 app/pb_kits/playbook/utilities/_mixins.scss