3528579 Feb 17, 2015
@i-like-robots @Ianfeather @remybach @chee
15 lines (12 sloc) 749 Bytes
= render 'styleguide/partials/shared'
%h1.copy--h1 Cards
Cards should be included as components where possible, and always in rails apps. You can include the ui_component includes as detailed below. Cards can either be fixed or flexible width.
Flexible cards will expand to fit their container. The
%a{ href: '/styleguide/css-utilities/responsive-grid' } responsive grid
is well suited for this. When used as an engine Rizzo also provides a helper function to generate the responsive grid classes for you.
- cards = styleguide_stubs('cards')
- cards.each_with_index do |card, i|
= styleguide_component("cards/card", properties: card.merge(fixed?: true), count: i)