/*
 * custom-bootstrap-margin-padding.scss
 * -----------------------------------------------
*/
$custom-margin-padding: () !default;
$custom-margin-padding: map-merge(
  (
	"0": 0,
	"10": 10,
	"15": 15,
	"20": 20,
	"25": 25,
	"30": 30,
	"40": 40,
	"50": 50,
	"60": 60,
	"70": 70,
	"80": 80,
	"90": 90,
	"100": 100,
	"-10": -10,
	"-15": -15,
	"-20": -20,
	"-25": -25,
	"-30": -30,
	"-40": -40,
	"-50": -50,
	"-60": -60,
	"-70": -70,
	"-80": -80,
	"-90": -90,
	"-100": -100,
  ),
  $custom-margin-padding
);


/* Margin */
@each $item, $value in $custom-margin-padding {
	.m-#{$item} {
		margin: #{$item}px !important;
	}
}
@each $item, $value in $custom-margin-padding {
	.mt-#{$item} {
		margin-top: #{$item}px !important;
	}
}
@each $item, $value in $custom-margin-padding {
	.mb-#{$item} {
		margin-bottom: #{$item}px !important;
	}
}
@each $item, $value in $custom-margin-padding {
	.mr-#{$item} {
		margin-right: #{$item}px !important;
	}
}
@each $item, $value in $custom-margin-padding {
	.ml-#{$item} {
		margin-left: #{$item}px !important;
	}
}

//lg
@include media-breakpoint-down(lg) {
	@each $item, $value in $custom-margin-padding {
		.m-lg-#{$item} {
			margin: #{$item}px !important;
		}
	}

	@each $item, $value in $custom-margin-padding {
		.mt-lg-#{$item} {
			margin-top: #{$item}px !important;
		}
	}

	@each $item, $value in $custom-margin-padding {
		.mb-lg-#{$item} {
			margin-bottom: #{$item}px !important;
		}
	}

	@each $item, $value in $custom-margin-padding {
		.mr-lg-#{$item} {
			margin-right: #{$item}px !important;
		}
	}

	@each $item, $value in $custom-margin-padding {
		.ml-lg-#{$item} {
			margin-left: #{$item}px !important;
		}
	}
}

//md
@include media-breakpoint-down(md) {
	@each $item, $value in $custom-margin-padding {
		.m-md-#{$item} {
			margin: #{$item}px !important;
		}
	}

	
	@each $item, $value in $custom-margin-padding {
		.mt-md-#{$item} {
			margin-top: #{$item}px !important;
		}
	}

	@each $item, $value in $custom-margin-padding {
		.mb-md-#{$item} {
			margin-bottom: #{$item}px !important;
		}
	}

	@each $item, $value in $custom-margin-padding {
		.mr-md-#{$item} {
			margin-right: #{$item}px !important;
		}
	}

	@each $item, $value in $custom-margin-padding {
		.ml-md-#{$item} {
			margin-left: #{$item}px !important;
		}
	}
}

//sm
@include media-breakpoint-down(sm) {
	@each $item, $value in $custom-margin-padding {
		.m-sm-#{$item} {
			margin: #{$item}px !important;
		}
	}

	
	@each $item, $value in $custom-margin-padding {
		.mt-sm-#{$item} {
			margin-top: #{$item}px !important;
		}
	}

	@each $item, $value in $custom-margin-padding {
		.mb-sm-#{$item} {
			margin-bottom: #{$item}px !important;
		}
	}

	@each $item, $value in $custom-margin-padding {
		.mr-sm-#{$item} {
			margin-right: #{$item}px !important;
		}
	}

	@each $item, $value in $custom-margin-padding {
		.ml-sm-#{$item} {
			margin-left: #{$item}px !important;
		}
	}
}

//xs
@include media-breakpoint-down(xs) {
	@each $item, $value in $custom-margin-padding {
		.m-xs-#{$item} {
			margin: #{$item}px !important;
		}
	}

	
	@each $item, $value in $custom-margin-padding {
		.mt-xs-#{$item} {
			margin-top: #{$item}px !important;
		}
	}

	@each $item, $value in $custom-margin-padding {
		.mb-xs-#{$item} {
			margin-bottom: #{$item}px !important;
		}
	}

	@each $item, $value in $custom-margin-padding {
		.mr-xs-#{$item} {
			margin-right: #{$item}px !important;
		}
	}

	@each $item, $value in $custom-margin-padding {
		.ml-xs-#{$item} {
			margin-left: #{$item}px !important;
		}
	}
}

















/* Padding */
@each $item, $value in $custom-margin-padding {
	.p-#{$item} {
		padding: #{$item}px !important;
	}
}

@each $item, $value in $custom-margin-padding {
	.pt-#{$item} {
		padding-top: #{$item}px !important;
	}
}

@each $item, $value in $custom-margin-padding {
	.pb-#{$item} {
		padding-bottom: #{$item}px !important;
	}
}

@each $item, $value in $custom-margin-padding {
	.pr-#{$item} {
		padding-right: #{$item}px !important;
	}
}

@each $item, $value in $custom-margin-padding {
	.pl-#{$item} {
		padding-left: #{$item}px !important;
	}
}

//lg
@include media-breakpoint-down(lg) {
	@each $item, $value in $custom-margin-padding {
		.p-lg-#{$item} {
			padding: #{$item}px !important;
		}
	}

	
	@each $item, $value in $custom-margin-padding {
		.pt-lg-#{$item} {
			padding-top: #{$item}px !important;
		}
	}

	@each $item, $value in $custom-margin-padding {
		.pb-lg-#{$item} {
			padding-bottom: #{$item}px !important;
		}
	}

	@each $item, $value in $custom-margin-padding {
		.pr-lg-#{$item} {
			padding-right: #{$item}px !important;
		}
	}

	@each $item, $value in $custom-margin-padding {
		.pl-lg-#{$item} {
			padding-left: #{$item}px !important;
		}
	}
}

//md
@include media-breakpoint-down(md) {
	@each $item, $value in $custom-margin-padding {
		.p-md-#{$item} {
			padding: #{$item}px !important;
		}
	}

	
	@each $item, $value in $custom-margin-padding {
		.pt-md-#{$item} {
			padding-top: #{$item}px !important;
		}
	}

	@each $item, $value in $custom-margin-padding {
		.pb-md-#{$item} {
			padding-bottom: #{$item}px !important;
		}
	}

	@each $item, $value in $custom-margin-padding {
		.pr-md-#{$item} {
			padding-right: #{$item}px !important;
		}
	}

	@each $item, $value in $custom-margin-padding {
		.pl-md-#{$item} {
			padding-left: #{$item}px !important;
		}
	}
}

//sm
@include media-breakpoint-down(sm) {
	@each $item, $value in $custom-margin-padding {
		.p-sm-#{$item} {
			padding: #{$item}px !important;
		}
	}

	
	@each $item, $value in $custom-margin-padding {
		.pt-sm-#{$item} {
			padding-top: #{$item}px !important;
		}
	}

	@each $item, $value in $custom-margin-padding {
		.pb-sm-#{$item} {
			padding-bottom: #{$item}px !important;
		}
	}

	@each $item, $value in $custom-margin-padding {
		.pr-sm-#{$item} {
			padding-right: #{$item}px !important;
		}
	}

	@each $item, $value in $custom-margin-padding {
		.pl-sm-#{$item} {
			padding-left: #{$item}px !important;
		}
	}
}

//xs
@include media-breakpoint-down(xs) {
	@each $item, $value in $custom-margin-padding {
		.p-xs-#{$item} {
			padding: #{$item}px !important;
		}
	}

	
	@each $item, $value in $custom-margin-padding {
		.pt-xs-#{$item} {
			padding-top: #{$item}px !important;
		}
	}

	@each $item, $value in $custom-margin-padding {
		.pb-xs-#{$item} {
			padding-bottom: #{$item}px !important;
		}
	}

	@each $item, $value in $custom-margin-padding {
		.pr-xs-#{$item} {
			padding-right: #{$item}px !important;
		}
	}

	@each $item, $value in $custom-margin-padding {
		.pl-xs-#{$item} {
			padding-left: #{$item}px !important;
		}
	}
}

//custom-responsive-position
$custom-pos: () !default;
$custom-pos: map-merge(
  (
	"0": 0,
	"10": 10,
	"15": 15,
	"20": 20,
	"25": 25,
	"30": 30,
	"40": 40,
	"50": 50,
	"60": 60,
	"70": 70,
	"80": 80,
	"90": 90,
	"100": 100,
  ),
  $custom-pos
);

//top
@each $item, $value in $custom-pos {
	.tm-responsive-pos-top-#{$item} {
		top: #{$item}px;
	}
}
@include media-breakpoint-down(md) {
	[class^="tm-responsive-pos-top-"], [class*=" tm-responsive-pos-top-"] {
		top: 0;
	}
}

//bottom
@each $item, $value in $custom-pos {
	.tm-responsive-pos-bottom-#{$item} {
		bottom: #{$item}px;
	}
}
@include media-breakpoint-down(md) {
	[class^="tm-responsive-pos-bottom-"], [class*=" tm-responsive-pos-bottom-"] {
		bottom: 0;
	}
}