//
// Mixins
//
// @version 1.0.0
//
// This file provides some basic mixins for storyposts elements

// Essential breapoints.
@mixin extra-small-max {

	@media screen and (max-width: 576px) {

		@content;
	}
}

@mixin extra-small-min {

	@media screen and (min-width: 576px) {

		@content;
	}
}

@mixin small-max {

	@media screen and (max-width: 768px) {

		@content;
	}
}

@mixin small-min {

	@media screen and (min-width: 768px) {

		@content;
	}
}

@mixin medium-max {

	@media screen and (max-width: 992px) {

		@content;
	}
}

@mixin medium-min {

	@media screen and (min-width: 992px) {

		@content;
	}
}

@mixin large-max {

	@media screen and (max-width: 1200px) {

		@content;
	}
}

@mixin large-min {

	@media screen and (min-width: 1200px) {

		@content;
	}
}

@mixin extra-large-max {

	@media screen and (max-width: 1400px) {

		@content;
	}
}

@mixin extra-large-min {

	@media screen and (min-width: 1400px) {

		@content;
	}
}

// Ellipsis text
@mixin ellipsis($line: 0) {
	
	@if($line != 0) {
		display: -webkit-box;
		-webkit-line-clamp: $line;
		-webkit-box-orient: vertical;		
	} @else {
		white-space: nowrap;
		width: 100%;
		display: block;
	}
	text-overflow: ellipsis;
	overflow: hidden;
}

// Screen reader text
@mixin  screen-reader-text() {
	border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

// Shimmer effect for skeletons
@mixin skeleton-shimmer {
	background: #f6f7f8;
	background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
	background-repeat: no-repeat;
	background-size: 800px 104px;
	position: relative;
	animation: shimmer 1.5s linear infinite forwards;
}
