by Ivan Garmatenko
Latest version: 0.0.3

Gem contains stylesheets and rails helpers which provides simple way to add useful css snippets to your site, see examples for details.

In Rails 3, add this to your Gemfile and run the bundle command:
Gemfile
gem "css-snippets"
  • Left
  • Nihil cumque beatae veritatis et fuga voluptas quisquam iste.
  • Center
  • Harum quia autem reprehenderit quas est dolores enim.
  • Right
application.scss
.my-list-wrapper {
  @include justify-items;
}
application.html.haml
= render_css_snippet :justified_items, :class => 'my-list-wrapper' do
  = item 'Left'
  = item Faker::Lorem.sentence
  = item 'Center'
  = item do
    = Faker::Lorem.sentence
  = item 'Right'

Left column text

Iste sit ea facere aut consequatur ex. Exercitationem ea sit illum quia voluptatem. Dolor laborum magnam consequatur optio voluptatem est. Recusandae tempora nihil temporibus officiis illum similique numquam. Nesciunt ut enim illo. Debitis ut perferendis laudantium laborum ad consequatur et. Quos repudiandae dignissimos quibusdam laborum ut alias perspiciatis. Natus inventore voluptate cum sit corporis a. Molestiae molestias iste unde et. Consequatur eius et totam reiciendis velit hic.

Right column text

Omnis quia voluptates quod. Sunt culpa quia quae porro. A eaque minus tenetur et id non.

application.scss
.my-layout-wrapper {
  @include right-menu-liquid-layout;
}
application.html.haml
= render_css_snippet :right_menu_liquid_layout, :class => 'my-layout-wrapper' do
  = left_column do
    %p Left column text
    %p= Faker::Lorem.sentences(10).join(' ')
  = right_column do
    %p Right column text
    %p= Faker::Lorem.sentences(3).join(' ')