From cd29f12cf546d3afa883ce8e67eb9d5347875714 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Thu, 6 Feb 2014 23:53:45 +0100 Subject: Make sidebars nicer. - Module headings now go all the way out. - Side body content is included like a module only if not empty. --- app/assets/stylesheets/hmno_sidebars.scss | 16 +++++++++++++++- app/views/common/_right_sidebar.html.erb | 7 ++++++- .../sidebar_modules/_sidebar_blog_category.html.erb | 5 ++++- app/views/sidebar_modules/_sidebar_module.html.erb | 2 +- 4 files changed, 26 insertions(+), 4 deletions(-) (limited to 'app') diff --git a/app/assets/stylesheets/hmno_sidebars.scss b/app/assets/stylesheets/hmno_sidebars.scss index 223f1cf..20d9895 100644 --- a/app/assets/stylesheets/hmno_sidebars.scss +++ b/app/assets/stylesheets/hmno_sidebars.scss @@ -16,7 +16,6 @@ top: 0; bottom: $spacing; border: 1px groove $dark-border-fg; - padding: 5px; background-color: $bg2; h2 { @include sidebar-headers; @@ -37,4 +36,19 @@ font-size: 12pt; @include sidebar-headers; } + + p { + margin-top: 0; + } + + header { + font: { + weight: 600; + size: 110%; + } + } + + .inner { + padding: 5px; + } } diff --git a/app/views/common/_right_sidebar.html.erb b/app/views/common/_right_sidebar.html.erb index 023730d..3b17356 100644 --- a/app/views/common/_right_sidebar.html.erb +++ b/app/views/common/_right_sidebar.html.erb @@ -1,5 +1,10 @@