
@mixin flex  {
	display: -webkit-box;
    display: -ms-flexbox;
    display: flex; 
    -webkit-box-align: center; 
        -ms-flex-align: center; 
            align-items: center;
    -ms-flex-wrap:wrap;
        flex-wrap:wrap;
}

@mixin border ($radius) {
	border-radius: $radius;
	-webkit-border-radius: $radius;
	-moz-border-radius: $radius;
	-o-border-radius: $radius;
}

@mixin transition($transition) {
    -moz-transition:    $transition;
    -o-transition:      $transition;
    -webkit-transition: $transition;
    transition:         $transition;
}

@mixin media( $res ) {
	@if mobile == $res {
		@media only screen and (min-width: $mobile_width) {
			@content;
		}
	}

	@if mobile-portrait == $res {
		@media only screen and (min-width: $mobile_portrait) {
			@content;
		}
	}

	@if mobile-admin-bar == $res {
		@media only screen and (min-width: $mobile_admin_bar) {
			@content;
		}
	}

	@if mobile-landscape == $res {
		@media only screen and (min-width: $mobile_landscape) {
			@content;
		}
	}

	@if tablet == $res {
		@media only screen and (min-width: $tablet_width) {
			@content;
		}
	}

	@if tablet-admin-bar == $res {
		@media only screen and (min-width: $tablet_admin_bar) {
			@content;
		}
	}

	@if desktop == $res {
		@media only screen and (min-width: $desktop_width) {
			@content;
		}
	}

	@if large == $res {
		@media only screen and (min-width: $large_screen) {
			@content;
		}
	}

	@if wide == $res {
		@media only screen and (min-width: $wide_width) {
			@content;
		}
	}

	@if diagonal == $res {
		@media only screen and (min-width: $diagonal_screen) {
			@content;
		}
	}

	@if ultra-wide == $res {
		@media only screen and (min-width: $ultra_wide_screen) {
			@content;
		}
	}
}
