/* Table of Contents ================================================== # Carousel # Colors # Media Queries */ /* # Carousel ================================================== */ .carousel { border-color: $color-white; color: $color-white; position: relative; } .carousel-inner { overflow: hidden; position: relative; width: 100%; } .carousel-inner > .item { display: none; position: relative; @include transition(0.6s ease-in-out left); } .carousel-inner > .item > img, .carousel-inner > .item > a > img { display: block; height: auto; line-height: 1; max-width: 100%; } .carousel-inner > .active, .carousel-inner > .next, .carousel-inner > .prev { display: block; } .carousel-inner > .active { left: 0; } .carousel-inner > .next, .carousel-inner > .prev { position: absolute; top: 0; width: 100%; } .carousel-inner > .next.left, .carousel-inner > .prev.right { left: 0; } .carousel-inner > .prev, .carousel-inner > .active.left { left: -100%; } .carousel-inner > .next, .carousel-inner > .active.right { left: 100%; } .carousel-control { bottom: 0; filter: alpha(opacity=50); left: 0; opacity: 0.5; position: absolute; text-align: center; top: 0; width: 70px; } .carousel-control.right { left: auto; right: 0; } .carousel-control:hover, .carousel-control:active, .carousel-control:focus { filter: alpha(opacity=90); opacity: 0.9; outline: none; } .carousel-control > .icon-prev, .carousel-control > .icon-next, .carousel-control > .icon-carousel-left, .carousel-control > .icon-carousel-right { display: inline-block; font-size: 42px; height: 60px; line-height: 60px; position: absolute; text-align: center; top: 45%; vertical-align: middle; width: 60px; z-index: 5; } .carousel-control > .icon-prev, .carousel-control > .icon-carousel-left { left: 10px; } .carousel-control > .icon-next, .carousel-control > .icon-carousel-right { right: 10px; } .carousel-control > .icon-prev, .carousel-control > .icon-next { font-family: serif; height: 48px; width: 48px; } .carousel-control > .icon-prev:before { content: '\2039'; } .carousel-control > .icon-next:before { content: '\203a'; } .carousel-indicators { border-color: inherit !important; bottom: 10px; left: 50%; list-style: none; margin-left: -30%; padding-left: 0; position: absolute; text-align: center; width: 60%; z-index: 15; } .carousel-indicators > li { border-radius: 10px; border: 1px solid; border-color: inherit; cursor: pointer; display: inline-block; height: 4px; margin: 2px 6px; text-indent: -999px; width: 4px; } .carousel-indicators > .active { height: 8px; margin: 0 4px; width: 8px; } .carousel-caption { bottom: 20px; left: 15%; padding-bottom: 20px; padding-top: 20px; position: absolute; right: 15%; text-align: center; z-index: 10; } /* # Colors ================================================== */ .carousel-dark { border-color: $color-light-black; color: $color-light-black; } .carousel-light { border-color: $color-light-haze; color: $color-light-haze; } /* # Media Queries ================================================== */ @media only screen and (max-width: 767px) { .carousel-control > .icon-carousel-left, .carousel-control > .icon-carousel-right, .carousel-control > .icon-prev, .carousel-control > .icon-next { font-size:20px; height: 20px; width: 20px; } .carousel-caption { display: none !important; } .carousel-indicators { bottom: 20px; } }