Skip to content

Instantly share code, notes, and snippets.

@jhammann
Created March 3, 2014 13:01
Show Gist options
  • Select an option

  • Save jhammann/9324470 to your computer and use it in GitHub Desktop.

Select an option

Save jhammann/9324470 to your computer and use it in GitHub Desktop.
I had to create a container with repeatable border-backgrounds. I made a separate partial with some locals (for additional classes and IDs) which is rendered by Rails.
.container{class: "#{classes}", id: "#{ids}"}
.container_top
.container_top_left_corner
.container_top_border
.container_top_right_corner
.container_left
.container_content
= yield
.container_right
.container_bottom
.container_bottom_left_corner
.container_bottom_border
.container_bottom_right_corner
= render :layout => "container", locals: {classes: "red", ids: "blog"} do
Content here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment