1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- //
- // RTL Carousel
- // --------------------------------------------------
- // Left/right controls for nav
- // ---------------------------
- .carousel-control {
- right: 0;
- bottom: 0;
- // Set gradients for backgrounds
- &.left {
- right: auto;
- left: 0;
- #gradient > .horizontal(@start-color: rgba(0,0,0,.5); @end-color: rgba(0,0,0,.0001));
- }
- &.right {
- left: auto;
- right: 0;
- #gradient > .horizontal(@start-color: rgba(0,0,0,.0001); @end-color: rgba(0,0,0,.5));
- }
- .icon-prev,
- .glyphicon-chevron-left {
- left: 50%;
- right: auto;
- margin-right: -10px;
- }
- .icon-next,
- .glyphicon-chevron-right {
- right: 50%;
- left: auto;
- margin-left: -10px;
- }
- }
- // Optional indicator pips
- //
- // Add an unordered list with the following class and add a list item for each
- // slide your carousel holds.
- .carousel-indicators {
- right: 50%;
- left: 0;
- margin-right: -30%;
- margin-left: 0;
- padding-left: 0;
- }
- // Scale up controls for tablets and up
- @media screen and (min-width: @screen-sm-min) {
- // Scale up the controls a smidge
- .carousel-control {
- .glyphicon-chevron-left,
- .icon-prev {
- margin-left: 0;
- margin-right: -15px;
- }
- .glyphicon-chevron-right,
- .icon-next {
- margin-left: 0;
- margin-right: -15px;
- }
- }
- // Show and left align the captions
- .carousel-caption {
- left: 20%;
- right: 20%;
- padding-bottom: 30px;
- }
- }
|