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 quo veniam optio aspernatur possimus.
  • Center
  • Velit corporis quia est consectetur vero.
  • 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

Quia quam qui similique. Aperiam voluptatibus quas placeat corrupti rerum est. Laborum esse molestiae similique quae. Et officiis quae reprehenderit placeat aperiam. Dolor enim et amet itaque. Qui est laborum reiciendis quod amet est inventore. Nemo in cupiditate saepe hic at. Molestias soluta distinctio velit. Omnis sapiente necessitatibus occaecati harum. Cum fugiat nulla sit repellat ipsam recusandae et.

Right column text

Ipsa sequi similique id suscipit impedit aut itaque. Alias deleniti eaque aut. Occaecati repellat totam laboriosam quas.

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(' ')