Sha256: 4ac85297e622b25e11e3fc7ee28d4731911a6bbcce95a6e0219817106ebf0291

Contents?: true

Size: 2 KB

Versions: 1

Compression:

Stored size: 2 KB

Contents

/*

Sliders

For modals is used the excellent [**BxSlider**](http://bxslider.com/) jQuery plugin,
see full documentation for more in depth examples.

Markup:
<ul class="slider">
  <li><img src="http://placehold.it/800x300/c7e843/fff.jpg" /></li>
  <li><img src="http://placehold.it/800x300/f6ab48/fff.jpg" /></li>
  <li><img src="http://placehold.it/800x300/3dced4/fff.jpg" /></li>
</ul>
<script type="text/javascript">
  $(document).ready(function() {
    $('.slider').bxSlider({
      nextText: '<i></i><span>Next</span>', // replace text with icon-font
      prevText: '<i></i><span>Prev</span>', // replace text with icon-font
    });
  });
</script>

Styleguide 16

*/


@if $slider {

    .bx-wrapper {
        position: relative;
        padding: 0;
        *zoom: 1;
        z-index: $zindex-slider;
        margin-bottom: rhythm();

        img {
            max-width: 100%;
            display: block;
        }

        ul {@extend .list_style_none;}
    }

    .bx-viewport { }

// Directions

    .bx-controls-direction {
        a {
            @extend %slider__btn !optional;
            @include position(absolute, 50% 0 0 0);

            z-index: 200;

            i {font-style: normal;}
            span {@include hide-text;}
        }

        .disabled { display: none; }

    }

    .bx-prev { left: 0; }
    .bx-next { right: 0; }

// Pager

    .bx-pager {
        width: 100%;
        text-align: center;
        @extend %slider__pager !optional;

    }

    .bx-pager-item {
        display: inline-block;
        a {
            display: inline-block;
            // @include hide-text;
        }
    }

// Loading

    .bx-loading {
        @include square(100%);
        @include position(absolute, 0px 0 0 0px);
        @extend %slider__loading-style  !optional;
        z-index: 2000;
    }


// Captions

    .bx-caption {
        @include position(absolute, 0 0 0px 0px);
        width: 100%;

        span {
            display: inline-block;
            @extend %slider__caption !optional;
        }
    }

}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rapido-css-0.1.2 stylesheets/components/_sliders.scss