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-13.3.0 app/pb_kits/playbook/utilities/_spacing.scss
playbook_ui-13.2.0.pre.alpha.PLAY986dateTimeRounding1150 app/pb_kits/playbook/utilities/_spacing.scss
playbook_ui-13.2.0 app/pb_kits/playbook/utilities/_spacing.scss
playbook_ui-13.1.0 app/pb_kits/playbook/utilities/_spacing.scss
playbook_ui-13.0.0.pre.alpha.PLAY966collapsiblenav41129 app/pb_kits/playbook/utilities/_spacing.scss
playbook_ui-13.0.0.pre.alpha.PLAY966collapsiblenav41128 app/pb_kits/playbook/utilities/_spacing.scss
playbook_ui-13.0.0.pre.alpha.PLAY966collapsiblenav41126 app/pb_kits/playbook/utilities/_spacing.scss
playbook_ui-13.0.0.pre.alpha.salesbookmismatchingdate1120 app/pb_kits/playbook/utilities/_spacing.scss
playbook_ui-12.39.0.pre.alpha.salesbookmismatchingdate1117 app/pb_kits/playbook/utilities/_spacing.scss
playbook_ui-13.0.0 app/pb_kits/playbook/utilities/_spacing.scss
playbook_ui-12.39.0.pre.alpha.PLAY966collapsiblenav41115 app/pb_kits/playbook/utilities/_spacing.scss
playbook_ui-12.39.0.pre.alpha.salesbookmismatchingdate1114 app/pb_kits/playbook/utilities/_spacing.scss
playbook_ui-12.39.0 app/pb_kits/playbook/utilities/_spacing.scss
playbook_ui-12.38.0.pre.alpha.PBNTR78selectkitmultipleprop1094 app/pb_kits/playbook/utilities/_spacing.scss
playbook_ui-12.38.0.pre.alpha.PLAY932removemomentqp1088 app/pb_kits/playbook/utilities/_spacing.scss
playbook_ui-12.38.0.pre.alpha.PLAY966collapsiblenav41086 app/pb_kits/playbook/utilities/_spacing.scss
playbook_ui-12.38.0.pre.alpha.audiencesalpha1083 app/pb_kits/playbook/utilities/_spacing.scss
playbook_ui-12.38.0.pre.alpha.PLAY966collapsiblenav41082 app/pb_kits/playbook/utilities/_spacing.scss
playbook_ui-12.38.0.pre.alpha.PLAYaddingdatapropselectkit1080 app/pb_kits/playbook/utilities/_spacing.scss
playbook_ui-12.37.0.pre.alpha.PLAY951collapsiblenav31078 app/pb_kits/playbook/utilities/_spacing.scss