From f6c8d8440f3a0b682f24553baa356649ffa4b373 Mon Sep 17 00:00:00 2001 From: Jordan Hatch Date: Mon, 22 Jul 2013 17:08:39 +0100 Subject: [PATCH 1/5] Separate related links into groups --- app/assets/stylesheets/core.scss | 9 +++-- app/views/root/related.raw.html.erb | 45 ++++++++++++++--------- test/integration/related_template_test.rb | 36 ++++++++++++++++-- 3 files changed, 65 insertions(+), 25 deletions(-) diff --git a/app/assets/stylesheets/core.scss b/app/assets/stylesheets/core.scss index 0fffcf508..adb41e879 100644 --- a/app/assets/stylesheets/core.scss +++ b/app/assets/stylesheets/core.scss @@ -168,7 +168,7 @@ h4 { } nav { - margin-bottom: 2.5em; + margin-bottom: 1.25em; } h2 { @@ -201,8 +201,11 @@ h4 { list-style: none outside none; a { - padding: 0; - font-weight: bold; + padding: 0 0.5em; + display: inline; + text-decoration: none; + background-color: $light-blue-25; + font-weight: normal; } } diff --git a/app/views/root/related.raw.html.erb b/app/views/root/related.raw.html.erb index 362772f82..541045ab9 100644 --- a/app/views/root/related.raw.html.erb +++ b/app/views/root/related.raw.html.erb @@ -6,25 +6,34 @@