/* ============================= */
/* CSS for control sap.m/Slider  */
/* Base theme                    */
/* ============================= */

/* ------------------------------ */
/* Slider commons styles          */
/* ------------------------------ */

.sapMSlider {
	display: inline-block;
	vertical-align: top;
	box-sizing: border-box;
	position: relative;
	height: 3.3125rem;
	padding: 1.406rem 1.0625rem;
	z-index: 0;
}

.sapMSliderInner {
	width: 100%;
	position: relative;
	background-repeat: no-repeat;
	z-index: 1;
	min-width: 4rem;
}

.sapUiLocalBusy .sapMSliderInner {
	z-index: 0;
}

.sapMSliderInner,
.sapMSliderProgress {
	height: 0.25rem;
	border-radius: 0.25rem;
}

.sapMSliderProgress,
.sapMSliderHandle {
	position: absolute;
}

.sapMSliderHandle {
	box-sizing: border-box;
	display: block;
	outline: none;
}

.sapMSliderInput {
	display: none;
}

.sapMSliderTickmarks {
	margin: 0;
	padding: 0;
	list-style: none;
	position: absolute;
	top: 0.625rem;
	left: 1.0625rem;
	right: 1.0625rem;;
	display: block;
	height: 1.75rem;
	z-index: 0;
}

.sapMSliderTick {
	display: inline-block;
	height: 1rem;
	border-left: 0.0625rem solid @sapUiFieldBorderColor;
	margin: 0.4375rem 0 0 -0.0625rem;
}


.sapMSliderTickLabel {
	display: inline-block;
	position: absolute;
	width: 0.0625rem;
	background-color: @sapUiFieldBorderColor;
	margin: 0 0 0 -0.0625rem;

	&:last-child {
		right: 0;
	}
}

.sapMSliderLabel {
	font-size: 0.75rem;
	padding-top: 0.5rem;
	display: block;
	width: 5rem;
	text-align: center;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	position: absolute;
	top: 1.75rem;
	left: -2.5rem;
	direction: ltr;
}

/* slider progress bar */
.sapMSliderProgress {
	background: @sapUiFieldActiveBorderColor;

	&:before{
		content: '';
		position: absolute;
		width: 100%;
		height: 500%;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
	}
}

/* slider handle */
.sapMSliderHandle {
	margin-left: -1rem;
	top: -0.875rem;
	height: 2rem;
	width: 2rem;
	direction: ltr;
	cursor: pointer;

	/* some browsers like Samsung Galaxy S4 with Android 4.2 does not support the "border-radius" shorthand property
	but does support the long-hand properties for each corner like "border-top-left-radius" */
	border-top-left-radius: 1rem;
	border-top-right-radius: 1rem;
	border-bottom-right-radius: 1rem;
	border-bottom-left-radius: 1rem;

	&:focus:before {
		content: '';
		position: absolute;
		border: @sapUiContentFocusWidth @sapUiContentFocusStyle @sapUiContentFocusColor;
		border-radius: 50%;
		pointer-events: none;
		top: -4px;
		bottom: -4px;
		left: -4px;
		right: -4px;
	}
}

/* ============ */
/* compact size */
/* ============ */

/* slider */
.sapUiSizeCompact {
	.sapMSlider {
		height: 2rem;
		padding-top: 1rem;
		padding-bottom: 1rem;
	}

	/* slider handle */
	.sapMSliderHandle {
		height: 1.625rem;
		width: 1.625rem;
		margin-left: -0.8125rem;
		top: -0.75rem;
	}

	.sapMSliderTickmarks {
		height: 1rem;
	}

	.sapMSliderLabel {
		padding-top: 0.3125rem;
		top: 1rem;
	}

	.sapMSliderTick {
		margin-top: 0.125rem;
		height: 0.75rem;
	}
}