Sha256: 9baa1e25bf99d289b8c5e5cb9aa2e6456a2bba93a522ed8601076c7ea7c8da92

Contents?: true

Size: 1.54 KB

Versions: 19

Compression:

Stored size: 1.54 KB

Contents

.position_relative {
  position: relative;
}

.position_absolute {
  position: absolute;
}

.position_fixed {
  position: fixed;
}

.position_sticky {
  position: sticky;
}

.position_static {
  position: static;
}

.z_index_1 {
  z-index: 100;
}

.z_index_2 {
  z-index: 200;
}

.z_index_3 {
  z-index: 300;
}

.z_index_4 {
  z-index: 400;
}

.z_index_5 {
  z-index: 500;
}

.z_index_6 {
  z-index: 600;
}

.z_index_7 {
  z-index: 700;
}

.z_index_8 {
  z-index: 800;
}

.z_index_9 {
  z-index: 900;
}

.z_index_10 {
  z-index: 1000;
}

$zIndex_values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10;

@each $size, $size_value in $breakpoints_grid {
  @each $zIndex_value in $zIndex_values {
    $min_size: map-get($size_value, "min");
    $max_size: map-get($size_value, "max");

    .z_index_#{$size}_#{$zIndex_value} {
      @include break_on($min_size, $max_size) {
        z-index: #{$zIndex_value * 100} !important;
      }
    }
  }
}

$space_classes: (
  xxs: $space_xxs,
  xs: $space_xs,
  sm: $space_sm,
  md: $space_md,
  lg: $space_lg,
  xl: $space_xl,
  0: 0,
  auto: auto,
  initial: initial,
  inherit: inherit
);

$positions: "top", "right", "bottom", "left";

@each $position in $positions {
  @each $space_name, $space in $space_classes {
    .#{$position}_#{$space_name} {
      @if $space_name == "0" {
        #{$position}: 0 !important;
      }
      @else if $space_name == "auto" or $space_name == "initial" or $space_name == "inherit" {
        #{$position}: #{$space} !important;
      }
      @else {
        #{$position}: #{-$space} !important;
      }
    }
  }
}

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
playbook_ui-13.21.0.pre.alpha.PLAY12582531 app/pb_kits/playbook/utilities/_positioning.scss
playbook_ui-13.21.0.pre.alpha.PLAY12582516 app/pb_kits/playbook/utilities/_positioning.scss
playbook_ui-13.21.0.pre.alpha.PLAY12582515 app/pb_kits/playbook/utilities/_positioning.scss
playbook_ui-13.21.0.pre.alpha.PLAY12582514 app/pb_kits/playbook/utilities/_positioning.scss
playbook_ui-13.22.0 app/pb_kits/playbook/utilities/_positioning.scss
playbook_ui-13.21.0.pre.alpha.PLAY12652489 app/pb_kits/playbook/utilities/_positioning.scss
playbook_ui-13.21.0.pre.alpha.PLAY12582474 app/pb_kits/playbook/utilities/_positioning.scss
playbook_ui-13.21.0.pre.alpha.PBNTR224letuserresetrowexpansion2466 app/pb_kits/playbook/utilities/_positioning.scss
playbook_ui-13.21.0.pre.alpha.PLAY120322465 app/pb_kits/playbook/utilities/_positioning.scss
playbook_ui-13.21.0.pre.alpha.pbntr220improveexpansionspeed2451 app/pb_kits/playbook/utilities/_positioning.scss
playbook_ui-13.21.0.pre.alpha.PBNTR224letuserresetrowexpansion2441 app/pb_kits/playbook/utilities/_positioning.scss
playbook_ui-13.21.0.pre.alpha.PBNTR225advancedtablefeedback2438 app/pb_kits/playbook/utilities/_positioning.scss
playbook_ui-13.21.0.pre.alpha.PBNTR238DatePickerYearBug2436 app/pb_kits/playbook/utilities/_positioning.scss
playbook_ui-13.21.0.pre.alpha.pbntr220improveexpansionspeed2431 app/pb_kits/playbook/utilities/_positioning.scss
playbook_ui-13.21.0.pre.alpha.pbntr220improveexpansionspeed2415 app/pb_kits/playbook/utilities/_positioning.scss
playbook_ui-13.20.0.pre.alpha.play1247htmloptions2404 app/pb_kits/playbook/utilities/_positioning.scss
playbook_ui-13.20.0.pre.alpha.play1247htmloptions2403 app/pb_kits/playbook/utilities/_positioning.scss
playbook_ui-13.20.0.pre.alpha.PLAY12572402 app/pb_kits/playbook/utilities/_positioning.scss
playbook_ui-13.21.0 app/pb_kits/playbook/utilities/_positioning.scss