Sha256: d7d895f966c8ae90c462d759a5e5f186c10a544e1d5261a5b71d66ad4f967095

Contents?: true

Size: 1.56 KB

Versions: 129

Compression:

Stored size: 1.56 KB

Contents

@import "../tokens/spacing";

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

$positions: (
	m: "margin",
	mr: "margin-right",
	ml: "margin-left",
	mt: "margin-top",
	mb: "margin-bottom",
	mx: ("margin-left", "margin-right"),
	my: ("margin-top", "margin-bottom"),
	p: "padding",
	pr: "padding-right",
	pl: "padding-left",
	pt: "padding-top",
	pb: "padding-bottom",
	px: ("padding-left", "padding-right"),
	py: ("padding-top", "padding-bottom")
);

@each $position_name, $position in $positions {
	@each $space_name, $space in $space_classes {
		.#{$position_name}_#{$space_name} {
			@if type-of($position)=="list" {
				@each $coordinate in $position {
					#{$coordinate}: #{$space} !important;
				}
			}
			@else {
				#{$position}: #{$space} !important;
			}
		}
	}
}

@each $size, $size_value in $breakpoints_max_only {
  @each $position_name, $position in $positions {
    @each $space_name, $space in $space_classes {
        $min_size: map-get($size_value, "min");
        $max_size: map-get($size_value, "max");
        .#{$position_name}_#{$size}_#{$space_name} {
          @if type-of($position)=="list" {
            @each $coordinate in $position {
              @include break_at( $max_size) {
              #{$coordinate}: #{$space} !important;
              }
            }
          }
          @else {
            @include break_at( $max_size) {
              #{$position}: #{$space} !important;
            }
          }
        }
    }
  }
}

Version data entries

129 entries across 129 versions & 1 rubygems

Version Path
playbook_ui-12.26.1.pre.alpha.railsmultilevelimprovements835 app/pb_kits/playbook/utilities/_spacing.scss
playbook_ui-12.26.1.pre.alpha.play716popoverkitcloseonclickissue833 app/pb_kits/playbook/utilities/_spacing.scss
playbook_ui-12.26.1.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown831 app/pb_kits/playbook/utilities/_spacing.scss
playbook_ui-12.26.1 app/pb_kits/playbook/utilities/_spacing.scss
playbook_ui-12.26.0.pre.alpha.multiselectfixes825 app/pb_kits/playbook/utilities/_spacing.scss
playbook_ui-12.26.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown822 app/pb_kits/playbook/utilities/_spacing.scss
playbook_ui-12.26.0.pre.alpha.multiselectfixes821 app/pb_kits/playbook/utilities/_spacing.scss
playbook_ui-12.26.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown818 app/pb_kits/playbook/utilities/_spacing.scss
playbook_ui-12.26.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown817 app/pb_kits/playbook/utilities/_spacing.scss
playbook_ui-12.26.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown815 app/pb_kits/playbook/utilities/_spacing.scss
playbook_ui-12.26.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown813 app/pb_kits/playbook/utilities/_spacing.scss
playbook_ui-12.26.0.pre.alpha.alphafix812 app/pb_kits/playbook/utilities/_spacing.scss
playbook_ui-12.26.0.pre.alpha.alphafix810 app/pb_kits/playbook/utilities/_spacing.scss
playbook_ui-12.26.0.pre.alpha.railsmultilevelimprovements805 app/pb_kits/playbook/utilities/_spacing.scss
playbook_ui-12.26.0.pre.alpha.multiselectfixes798 app/pb_kits/playbook/utilities/_spacing.scss
playbook_ui-12.26.0.pre.alpha.multiselectfixes797 app/pb_kits/playbook/utilities/_spacing.scss
playbook_ui-12.26.0.pre.alpha.multiselectfixes796 app/pb_kits/playbook/utilities/_spacing.scss
playbook_ui-12.26.0.pre.alpha.multiselectfixes795 app/pb_kits/playbook/utilities/_spacing.scss
playbook_ui-12.26.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown794 app/pb_kits/playbook/utilities/_spacing.scss
playbook_ui-12.25.0.pre.alpha.play824786 app/pb_kits/playbook/utilities/_spacing.scss