/* Table of Contents ================================================== # Carousel # Colors # Media Queries */ /* # Carousel ================================================== */ .carousel { position: relative; } .carousel-inner { overflow: hidden; position: relative; width: 100%; } .carousel-inner > .item { display: none; position: relative; -webkit-transition: 0.6s ease-in-out left; 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: 100%; } .carousel-inner > .prev { left: -100%; } .carousel-inner > .next.left, .carousel-inner > .prev.right { left: 0; } .carousel-inner > .active.left { left: -100%; } .carousel-inner > .active.right { left: 100%; } .carousel-control { bottom: 0; color: $color-white; 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 { color: $color-white; filter: alpha(opacity=90); opacity: 0.9; outline: none; text-decoration: 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 { 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 { display: inline-block; background: $color-white; border-radius: 10px; border: 1px solid $color-white; cursor: pointer; height: 4px; margin: 2px 6px; text-indent: -999px; width: 4px; } .carousel-indicators > .active { background: $color-transparent; height: 8px; margin: 0 4px; width: 8px; } .carousel-caption { bottom: 20px; color: $color-white; left: 15%; padding-bottom: 20px; padding-top: 20px; position: absolute; right: 15%; text-align: center; z-index: 10; } .carousel-caption > h1, .carousel-caption > h2, .carousel-caption > h3, .carousel-caption > h4, .carousel-caption > h5, .carousel-caption > h6 { color: $color-white; } /* # Colors ================================================== */ .carousel-dark .carousel-indicators > li, .carousel-primary .carousel-indicators > li { background: $color-black-light; border-color: $color-black-light; } .carousel-dark .carousel-indicators > .active, .carousel-primary .carousel-indicators > .active { background: $color-transparent; } .carousel-dark .carousel-indicators > .active { border-color: $color-primary; } .carousel-primary .carousel-indicators > .active { border-color: $color-primary; } /* # 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; } }