From c63eac0fd9519627bc09b2433505fddede6daf51 Mon Sep 17 00:00:00 2001 From: danielvincent Date: Tue, 15 Jun 2010 22:34:08 -0700 Subject: [PATCH] added line delimiters for post stream on dashboard --- app/views/dashboard/index.html.haml | 4 +--- public/stylesheets/application.css | 13 +++++++++++++ public/stylesheets/sass/application.sass | 17 +++++++++++++++++ 3 files changed, 31 insertions(+), 3 deletions(-) diff --git a/app/views/dashboard/index.html.haml b/app/views/dashboard/index.html.haml index 0b4a5224d..5a63f6b9f 100644 --- a/app/views/dashboard/index.html.haml +++ b/app/views/dashboard/index.html.haml @@ -1,9 +1,7 @@ - title "Dashboard" -%ul +%ul#stream - for post in @posts %li = render "shared/post", :post =>post - %br - %br diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index a704c4be8..cafb31d14 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -63,3 +63,16 @@ h4 { #header ul.nav li { display: inline; margin-right: 1em; } + +ul#stream { + margin: 0; + padding: 0; + list-style: none; } + ul#stream li { + list-style: none; } + ul#stream > li { + padding: 2em 0; + border-bottom: 1px solid #666666; } + ul#stream > li > ul { + padding: 0; + margin: 0; } diff --git a/public/stylesheets/sass/application.sass b/public/stylesheets/sass/application.sass index 0ebd465f8..bdac89c04 100644 --- a/public/stylesheets/sass/application.sass +++ b/public/stylesheets/sass/application.sass @@ -77,3 +77,20 @@ h4 :margin :right 1em +ul#stream + :margin 0 + :padding 0 + :list-style none + + li + :list-style none + + > li + :padding 2em 0 + :border + :bottom 1px solid #666 + + > ul + :padding 0 + :margin 0 +