Created
March 3, 2014 13:01
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| = 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