/* stylelint-disable declaration-no-important */

////
/// @author Mark Otto
////

/// These utility classes float an element to the left or right, or disable floating, based on the current viewport size using the CSS float property. !important is included to avoid specificity issues. These use the same viewport breakpoints as our grid system.
/// @name .pull-{size}-left, .pull-{size}-right, .pull-{size}-none
/// @since 0.1.0 - The O.G.
/// @example html
/// <div class="pull-xs-left">Float left on all viewport sizes</div><br>
/// <div class="pull-xs-right">Float right on all viewport sizes</div><br>
/// <div class="pull-xs-none">Don't float on all viewport sizes</div>
@mixin pull($breakpoints) {
	.pull {
		@each $breakpoint in map-keys($breakpoints) {
			@include media-breakpoint-up($breakpoint, $breakpoints) {
				&-#{$breakpoint}-left {
					float: left !important;
				}

				&-#{$breakpoint}-right {
					float: right !important;
				}

				&-#{$breakpoint}-none {
					float: none !important;
				}
			}
		}
	}
}
