From 3aa06ee1e4ed50379b177d5121ab554546ddfa9e Mon Sep 17 00:00:00 2001 From: summerscope Date: Fri, 20 Feb 2015 16:14:50 +1100 Subject: [PATCH] Tabs styling for groups page - making it pretty. --- app/assets/stylesheets/darkswarm/groups.css.sass | 15 +++++++++++---- app/views/groups/show.html.haml | 6 +++--- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/app/assets/stylesheets/darkswarm/groups.css.sass b/app/assets/stylesheets/darkswarm/groups.css.sass index 4b8e9f0540..6b5361c500 100644 --- a/app/assets/stylesheets/darkswarm/groups.css.sass +++ b/app/assets/stylesheets/darkswarm/groups.css.sass @@ -40,25 +40,32 @@ // Tabs .tabs dd a // Mobile first - padding: 0.35rem 0.5rem + padding: 0.25rem 0.45rem 0rem font-size: 0.75rem border: none margin-bottom: -2px margin-right: 2px + text-transform: capitalize + @include avenir + @include border-radius(1em 0.25em 0 0) + @include gradient($disabled-light, $disabled-bright) @media screen and (min-width: 768px) .tabs dd a - padding: 0.45rem 0.75rem + padding: 0.5rem 1rem 0.25em font-size: 0.875rem + @include border-radius(1.5em 0.25em 0 0) @media screen and (min-width: 1024px) .tabs dd a - padding: 1rem 2rem + padding: 0.75rem 1.5rem 0.5em font-size: 1rem + @include border-radius(2em 0.25em 0 0) .tabs dd.active a + @include gradient(white, white) margin-bottom: -1px border-top: 1px solid $light-grey border-left: 1px solid $light-grey border-right: 1px solid $light-grey - border-bottom: 1px solid white + border-bottom: 0 .tabs-content border-top: 1px solid $light-grey border-left: 1px solid $light-grey diff --git a/app/views/groups/show.html.haml b/app/views/groups/show.html.haml index 98de889532..94a54d59df 100644 --- a/app/views/groups/show.html.haml +++ b/app/views/groups/show.html.haml @@ -14,8 +14,8 @@ %h2.group-name= @group.name %p= @group.description - .small-12.columns.pad-top - .row.pad-top + .small-12.columns + .row .small-12.medium-12.large-9.columns %div{"ng-controller" => "TabsCtrl"} %tabset @@ -32,7 +32,7 @@ %tab{heading: 'About us', active: "active(\'about\')", select: "select(\'about\')"} - %h3.pad-top About us + %h1 About Us %p= @group.long_description %tab{heading: 'Our producers',