Sha256: f40641689167ae07ba8bf8152e01855b831268c4a6ecfe8e2aca76bd3bc5a3ba

Contents?: true

Size: 718 Bytes

Versions: 196

Compression:

Stored size: 718 Bytes

Contents

// z_index variables
$z_1: 100;
$z_2: 200;
$z_3: 300;
$z_4: 400;
$z_5: 500;
$z_6: 600;
$z_7: 700;
$z_8: 800;
$z_9: 900;
$z_10: 1000;
$z_index: (
  zindex_1: $z_1,
  zindex_2: $z_1,
  zindex_3: $z_1,
  zindex_4: $z_1,
  zindex_5: $z_1,
  zindex_6: $z_1,
  zindex_7: $z_1,
  zindex_8: $z_1,
  zindex_9: $z_1,
);

$z_layers: (
  "header": $z_10,
  "default": 0
);

@function z_index_for($layer) {
  @if not map-has-key($z_layers, $layer) {
    @error "No layer found for `#{$layer}` in $z_layers map.";
  }
  @return map-get($z_layers, $layer);
}

:export {
  @mixin export_z_index($z_index_list) {
    @each $name, $settings in $z_index_list {
      #{$name}: $settings;
    }
  }
  @include export_z_index($z_index);
}

Version data entries

196 entries across 196 versions & 1 rubygems

Version Path
playbook_ui-7.14.0.pre.alpha1 app/pb_kits/playbook/tokens/_positioning.scss
playbook_ui-7.16.0 app/pb_kits/playbook/tokens/_positioning.scss
playbook_ui-7.15.1 app/pb_kits/playbook/tokens/_positioning.scss
playbook_ui-7.15.0 app/pb_kits/playbook/tokens/_positioning.scss
playbook_ui-7.14.0 app/pb_kits/playbook/tokens/_positioning.scss
playbook_ui-7.13.0.pre.alpha1 app/pb_kits/playbook/tokens/_positioning.scss
playbook_ui-7.13.0 app/pb_kits/playbook/tokens/_positioning.scss
playbook_ui-7.12.1 app/pb_kits/playbook/tokens/_positioning.scss
playbook_ui-7.12.0 app/pb_kits/playbook/tokens/_positioning.scss
playbook_ui-7.11.1 app/pb_kits/playbook/tokens/_positioning.scss
playbook_ui-7.11.0 app/pb_kits/playbook/tokens/_positioning.scss
playbook_ui-7.11.0.pre.alpha1 app/pb_kits/playbook/tokens/_positioning.scss
playbook_ui-7.10.0 app/pb_kits/playbook/tokens/_positioning.scss
playbook_ui-7.9.0 app/pb_kits/playbook/tokens/_positioning.scss
playbook_ui-7.8.4 app/pb_kits/playbook/tokens/_positioning.scss
playbook_ui-7.8.3 app/pb_kits/playbook/tokens/_positioning.scss
playbook_ui-7.8.2 app/pb_kits/playbook/tokens/_positioning.scss
playbook_ui-7.8.1 app/pb_kits/playbook/tokens/_positioning.scss
playbook_ui-7.8.0 app/pb_kits/playbook/tokens/_positioning.scss
playbook_ui-7.7.0.pre.alpha1 app/pb_kits/playbook/tokens/_positioning.scss