Skip to content
Browse files

support a sidebar

  • Loading branch information...
1 parent c54a673 commit b2c971be30dae7caec1e8fc3eca50a7cbb4900ab Chris Moore committed
View
3 app/assets/stylesheets/application.css.sass
@@ -14,3 +14,6 @@ h1, h2, h3, h4, h5, h6
bottom: 1em
background-color: rgba(250, 250, 250, 0.9)
@include border-radius(10px)
+
+#main
+ padding: 2em 0
View
5 app/views/layouts/application.html.haml
@@ -12,8 +12,11 @@
.columns.twelve
%h1 Hi! This is the header.
#main.row
- .columns.twelve
+ .columns{class: content_for?(:sidebar) ? 'eight' : 'twelve'}
= yield
+ - if content_for?(:sidebar)
+ .columns.four
+ = content_for(:sidebar)
%footer.row
.columns.four
%h5 First Column
View
4 app/views/pages/about.html.haml
@@ -1,2 +1,6 @@
%h3 All your base are belong to us.
%p Move along.
+
+- content_for(:sidebar) do
+ %h4 Sidebar
+ %p Sometimes you need more room.

0 comments on commit b2c971b

Please sign in to comment.
Something went wrong with that request. Please try again.