
// --------------------------------------------------------------------------------------------
// nanoScroller
// --------------------------------------------------------------------------------------------

// ------------------------------------------
// nanoScrollerJS (Sass)
// ------------------------------------------

// ------------------------------------------
// initial setup
// ------------------------------------------

// $nanoClass: "basel-scroll" !default;
// $paneClass: "basel-scroll-pane" !default;
// $sliderClass: "basel-scroll-slider" !default;
// $contentClass: "basel-scroll-content" !default;

// $hasNanoClass: "has-scrollbar" !default;
// $disableNanoClass: "disabled-nanoscroller" !default;

// .#{$nanoClass} {
//     // width: 100%;
//     // height: 100%;
//     position: absolute;
//     top: 0;
//     right: 0;
//     bottom: 0;
//     left: 0;
//     overflow: hidden;

//     .#{$contentClass} {
//         position: absolute;
//         top: 0;
//         right: 0;
//         bottom: 0;
//         left: 0;
//         overflow: scroll;
//         // overflow: auto;
//         overflow-x: hidden;
//         -webkit-overflow-scrolling: touch;

//         &:focus {
//             outline: none;
//         }

//         &::-webkit-scrollbar {
//             display: none;
//         }
//     }
// }

.basel-scroll {
	position: relative;
	-webkit-box-flex: 1;
	-ms-flex: 1 1 auto;
	flex: 1 1 auto;
	overflow: hidden;
	width: 100%;
	height: 100%;

	.basel-scroll-content {
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		overflow: auto;
		overflow-x: hidden;
		-webkit-overflow-scrolling: touch;

		&:focus {
			outline: none;
		}

		&::-webkit-scrollbar {
			display: none;
		}
	}
}

// .#{$paneClass} {
//     width: 2px;
//     background: rgba(0,0,0,.05);
//     position: absolute;
//     top: 0;
//     right: 0;
//     bottom: 0;
//     -webkit-transition: .2s;
//        -moz-transition: .2s;
//          -o-transition: .2s;
//             transition: .2s;
//     -webkit-border-radius: 5px;
//        -moz-border-radius: 5px;
//             border-radius: 5px;
//     visibility: hidden\9; // Target only IE7 and IE8 with this hack
//     opacity: 0;

//     > .#{$sliderClass} {
//         // background: #444;
//         background: rgba(0,0,0,0.7);
//         position: relative;
//         margin: 0 0px;
//         // -webkit-border-radius: 5px;
//         //    -moz-border-radius: 5px;
//         //         border-radius: 5px;
//     }
// }

.basel-scroll-pane {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	visibility: hidden\9; // NOTE TARGET ONLY IE7 AND IE8 WITH THIS HACK
	width: 2px;
	background: rgba(0,0,0,.05);
	opacity: 0;
	transition: .2s;

	> .basel-scroll-slider {
		position: relative;
		margin: 0;
		background: rgba(0,0,0,0.7);
	}

	.basel-scroll:hover > &,
	.basel-sidebar-scroll:hover > &,
	&.active,
	&.flashed {
		visibility: visible\9; // NOTE TARGET ONLY IE7 AND IE8 WITH THIS HACK
		opacity: .99;
	}
}

// .has-scrollbar > .#{$contentClass}::-webkit-scrollbar {
//     display: block;
// }

.has-scrollbar {

	> .basel-scroll-content {

		&::-webkit-scrollbar {
			display: block;
		}
	}
}

.platform-Mac {

	.basel-scroll {

		.basel-scroll-content {

			&::-webkit-scrollbar {
				display: none;
			}
		}
	}
}

// .#{$paneClass} {
//     .#{$nanoClass}:hover > &,
//     .basel-sidebar-scroll:hover > &,
//     &.active,
//     &.flashed {
//         visibility: visible\9; // Target only IE7 and IE8 with this hack
//         opacity: 0.99;
//     }
// }

.basel-woocommerce-layered-nav {

	.has-scrollbar {

		.swatches-display-list {

			> li {
				padding-right: 17px;
			}
		}
	}
}