IceGroupWeb CSS Guide

  • Pattern Library
  • Examples & Tests
  • Release Notes

Styles

  • 0Introduction
  • 1Page Layout
  • 2True Grid
  • 3Navs
  • 4Headings
  • 5Typography
  • 6Arrangement
  • 7Sections
  • 8Lists
  • 9Images
  • 10Forms
  • 11Buttons
  • 12Alerts
  • 13Sprites
  • 14Tiles
  • 15Media
  • 16Modals
  • 17Tables
  • 18Carousel
    • 18.1Slides
    • 18.1.1Inline slides
    • 18.1.2Layouts
    • 18.1.3Media Slides
    • 18.1.4Search
  • 19Callouts
  • 20Panels
  • 20Panels
  • 21Graphs
  • 22Transitions
  • 23Misc. Components
  • 24CMS Styles

18 #Carousel Carousel extended

carousel, carousel-indicators, carousel-inner, carousel-caption, carousel-control

These styles are designed to work in conjunction with the Carousel JavaScript library from Bootstrap and React-Bootstrap.

Add the class is-below-nav to add a bit of extra padding to the top of the carousel. Use this when the carousel immediately follows a Nav Flyout menu. This compensates for the way the nav flyout overlaps the content beneath it, and allows it to overlay any background images in the carousel without covering the text.

Example
  1. Carousel example
<div class="carousel">
  <ol class="carousel-indicators">
    <li class="is-active"></li>
    <li></li>
    <li></li>
  </ol>
  <ol class="carousel-inner">
    <li class="item is-active">
      <img src="https://www.google.com/images/srpr/logo11w.png">
      <div class="carousel-caption">Carousel example</div>
    </li>
    <li class="item">
      <img src="https://www.google.com/images/srpr/logo11w.png">
    </li>
    <li class="item">
      <img src="https://www.google.com/images/srpr/logo11w.png">
    </li>
  </ol>
  <a class="carousel-control left" href="#prev">
    <span class="icon-prev"></span>
  </a>
  <a class="carousel-control right" href="#next">
    <span class="icon-next"></span>
  </a>
</div>

18.1 #Carousel.Slides Slides extended

slide, slide-title, slide-title-parent

Provides layouts that are common inside carousel slides, though they can also stand alone if you want a single static "slide" on a page.

Note there are two <div> elements wrapping the slide. Slides require two nested elements wrapping all slide content: the outer slide and the inner wrapper (slide-hero-left in this example). Apply one of the slide layout classes (below) to this inner wrapper to control they layout of the slide contents.

Examples
Default styling

Liquidity in Index futures is on the rise

Some slide content

slide-padded
Add extra padding to the top and bottom of the slide

Liquidity in Index futures is on the rise

Some slide content

slide-centered
Vertically center the contents of the slide. Use this in conjunction with carousels or other components that dynamically specify a height for the slide.

Liquidity in Index futures is on the rise

Some slide content

<div class="slide [modifier class]">
  <div class="slide-hero-left">
    <h2 class="slide-title">Liquidity in Index futures is on the rise</h2>
    <p>Some slide content</p>
    <button class="btn">Button</button>
  </div>
</div>
Example
Liquid, transparent markets

Liquidity in Index futures is on the rise

Show Markup
<div class="slide" style="background-image: url(http://placehold.it/800x200)">
  <div class="slide-hero-left">
    <div class="slide-title-parent">Liquid, transparent markets</div>
    <h2 class="slide-title">Liquidity in Index futures is on the rise</h2>
  </div>
</div>

18.1.1 #Carousel.Slides.inline Inline slides extended

Example

Liquidity in Index futures is on the rise

Some content goes here

<div class="slide-inline">
  <h2 class="slide-title">Liquidity in Index futures is on the rise</h2>
  <p>Some content goes here</p>
  <button class="btn">Button</button>
</div>

18.1.2 #Carousel.Slides.Layouts Layouts extended

slide-hero-left, slide-hero-right, slide-hero-center, slide-inline

Change the class on the inner wrapper to control the layout of the slide contents.

Examples
Default styling

Liquidity in Index futures is on the rise

Some slide content

slide-hero-left
contents on left

Liquidity in Index futures is on the rise

Some slide content

slide-hero-right
contents on right

Liquidity in Index futures is on the rise

Some slide content

slide-hero-center
contents centered

Liquidity in Index futures is on the rise

Some slide content

slide-inline
more subdued look; useful for slides that are standalone (not in a carousel)

Liquidity in Index futures is on the rise

Some slide content

<div class="slide">
  <div class="[modifier class]">
    <h2 class="slide-title">Liquidity in Index futures is on the rise</h2>
    <p>Some slide content</p>
  </div>
</div>

18.1.3 #Carousel.Slides.Media Media Slides extended

media-slide, media-slide-left, media-slide-right

Splits the slide content into a left and right side.

Example

Liquidity in Index futures is on the rise

Some slide content

<div class="slide">
  <div class="media-slide">
    <div class="media-slide-left">
      <img src="//placehold.it/400x400"/>
    </div>
    <div class="media-slide-right">
      <h2 class="slide-title">Liquidity in Index futures is on the rise</h2>
      <p>Some slide content</p>
    </div>
  </div>
</div>

18.1.4 #Carousel.Slides.Search Search extended

slide-search,, slide-search__inner

Example

Search Results

<div class="slide">
  <div class="slide-search">
    <div class="slide-search__inner">
      <h1 class="slide__title">Search Results</h2>
      <div class="form-group">
        <label htmlFor="search-main-input" class="sr-only">
          Search
        </label>
        <input
          id="search-main-input"
          class="form-control form-control--mega"
          type="search"
        />
      </div>
    </div>
  </div>
</div>