| |
| |
| |
| |
| |
| |
| .carousel { |
| position: relative; |
| } |
| |
| .carousel-inner { |
| position: relative; |
| overflow: hidden; |
| width: 100%; |
| |
| > .item { |
| display: none; |
| position: relative; |
| @include transition(.6s ease-in-out left); |
| |
| |
| > img, |
| > a > img { |
| @include img-responsive(); |
| line-height: 1; |
| } |
| } |
| |
| > .active, |
| > .next, |
| > .prev { display: block; } |
| |
| > .active { |
| left: 0; |
| } |
| |
| > .next, |
| > .prev { |
| position: absolute; |
| top: 0; |
| width: 100%; |
| } |
| |
| > .next { |
| left: 100%; |
| } |
| > .prev { |
| left: -100%; |
| } |
| > .next.left, |
| > .prev.right { |
| left: 0; |
| } |
| |
| > .active.left { |
| left: -100%; |
| } |
| > .active.right { |
| left: 100%; |
| } |
| |
| } |
| |
| |
| |
| |
| .carousel-control { |
| position: absolute; |
| top: 0; |
| left: 0; |
| bottom: 0; |
| width: $carousel-control-width; |
| @include opacity($carousel-control-opacity); |
| font-size: $carousel-control-font-size; |
| color: $carousel-control-color; |
| text-align: center; |
| text-shadow: $carousel-text-shadow; |
| |
| |
| |
| |
| &.left { |
| @include gradient-horizontal($start-color: rgba(0,0,0,.5), $end-color: rgba(0,0,0,.0001)); |
| } |
| &.right { |
| left: auto; |
| right: 0; |
| @include gradient-horizontal($start-color: rgba(0,0,0,.0001), $end-color: rgba(0,0,0,.5)); |
| } |
| |
| |
| &:hover, |
| &:focus { |
| color: $carousel-control-color; |
| text-decoration: none; |
| @include opacity(.9); |
| } |
| |
| |
| .icon-prev, |
| .icon-next, |
| .glyphicon-chevron-left, |
| .glyphicon-chevron-right { |
| position: absolute; |
| top: 50%; |
| left: 50%; |
| z-index: 5; |
| display: inline-block; |
| } |
| .icon-prev, |
| .icon-next { |
| width: 20px; |
| height: 20px; |
| margin-top: -10px; |
| margin-left: -10px; |
| font-family: serif; |
| } |
| |
| .icon-prev { |
| &:before { |
| content: '\2039'; |
| } |
| } |
| .icon-next { |
| &:before { |
| content: '\203a'; |
| } |
| } |
| } |
| |
| |
| |
| |
| |
| |
| .carousel-indicators { |
| position: absolute; |
| bottom: 10px; |
| left: 50%; |
| z-index: 15; |
| width: 60%; |
| margin-left: -30%; |
| padding-left: 0; |
| list-style: none; |
| text-align: center; |
| |
| li { |
| display: inline-block; |
| width: 10px; |
| height: 10px; |
| margin: 1px; |
| text-indent: -999px; |
| border: 1px solid $carousel-indicator-border-color; |
| border-radius: 10px; |
| cursor: pointer; |
| } |
| .active { |
| margin: 0; |
| width: 12px; |
| height: 12px; |
| background-color: $carousel-indicator-active-bg; |
| } |
| } |
| |
| |
| |
| |
| .carousel-caption { |
| position: absolute; |
| left: 15%; |
| right: 15%; |
| bottom: 20px; |
| z-index: 10; |
| padding-top: 20px; |
| padding-bottom: 20px; |
| color: $carousel-caption-color; |
| text-align: center; |
| text-shadow: $carousel-text-shadow; |
| & .btn { |
| text-shadow: none; |
| } |
| } |
| |
| |
| |
| @media screen and (min-width: $screen-tablet) { |
| |
| |
| .carousel-control .icon-prev, |
| .carousel-control .icon-next { |
| width: 30px; |
| height: 30px; |
| margin-top: -15px; |
| margin-left: -15px; |
| font-size: 30px; |
| } |
| |
| |
| .carousel-caption { |
| left: 20%; |
| right: 20%; |
| padding-bottom: 30px; |
| } |
| |
| |
| .carousel-indicators { |
| bottom: 20px; |
| } |
| } |