0.46.0
Changelog
Components

Images

Images consist of standard images, bordered images and captioned images. All of these components can be aligned to the left or right of content or on a line of their own.

Note: The minimum width for uploaded image needs to be 2x the desktop display size for retina device support.

Standard images

The below examples show the standard image formatting options with and without captions and/or border. All images with or without borders and captions can be floated to the left or the right with the following modifier classes.

Image
.c-image-content--right
Image floated right
Image
.c-image-content--left
Image floated left
Image
<figure class="c-image-content c-image--small [modifier class]">
  <img alt="Image" src="/kss-assets/images/placeholder/860x524.png" class="c-image-content__image">
</figure>

Image sizes

Image sizes are restricted. Image needs to be 2x the desktop display size for retina device support.

Note: there is no default image style as you MUST use one of the below listed modifier classes, otherwise you will experience cross browser issues due to there being no CSS width applied by default.

Image
.c-image--thumb
Thumbnail image size
Image
.c-image--small
Small image size
Image
.c-image--large
Large image size
Image
.c-image--full-width
Full width image size
Image
<figure class="c-image-content [modifier class]">
  <img alt="Image" src="/kss-assets/images/placeholder/860x524.png" class="c-image-content__image">
</figure>

Linked images

Standard image formatting option with an anchor link.

<figure class="c-image-content c-image--small ">
  <a class="c-image-content__link" href="#0">
    <img alt="Image" src="/kss-assets/images/placeholder/860x524.png" class="c-image-content__image">
  </a>
</figure>

Bordered images

Images with a border. Image sizing is fixed, please use the recommended sizes for images.

Image
<figure class="c-image-content c-image-content--border c-image--small ">
  <img class="c-image-content__image" alt="Image" src="/kss-assets/images/placeholder/860x524.png">
</figure>

Bordered images - Full width

Full width images with a border.

Image
Caption text
<figure class="c-image-content c-image-content--border c-image--full-width">
  <img class="c-image-content__image" alt="Image" src="/kss-assets/images/placeholder/860x524.png">
  <figcaption class="c-image-content__caption">Caption text</figcaption>
</figure>

Captioned images

Image with caption text. Captioned images must have a border.

Image
Caption text
<figure class="c-image-content c-image-content--border c-image--small ">
    <img class="c-image-content__image" alt="Image" src="/kss-assets/images/placeholder/860x524.png">
  <figcaption class="c-image-content__caption">Caption text</figcaption>
</figure>

Responsive images - picture element

Implementation of the <picture> element from the HTML5 spec. This requires picturefill polyfill and Modernizr 3.1 to detect the picture feature (see the JavaScript section).

Note: Please ensure you copy all of the below code (including the IE 9 conditional comment) to ensure all browsers we support will display this element. See: https://scottjehl.github.io/picturefill/ for more details.

a cute kitten
<picture>
  <!--[if IE 9]><video style="display: none;"><![endif]-->
  <source media="(min-width: 980px)" srcset="/kss-assets/images/placeholder/picture/large.png, /kss-assets/images/placeholder/picture/large@2x.png 2x">
  <source media="(min-width: 768px)" srcset="/kss-assets/images/placeholder/picture/medium.png, /kss-assets/images/placeholder/picture/medium@2x.png 2x">
  <!--[if IE 9]></video><![endif]-->
  <img srcset="/kss-assets/images/placeholder/picture/small.png, /kss-assets/images/placeholder/picture/small@2x.png 2x" alt="a cute kitten">
</picture>