From 9b24af717f30bf9c3d26a6b70cc2f9a8499f3930 Mon Sep 17 00:00:00 2001 From: danielgrippi Date: Wed, 3 Aug 2011 18:22:44 -0700 Subject: [PATCH] fix styling on featured users on getting started; added hovercards --- app/views/users/getting_started.html.haml | 7 ++++--- public/stylesheets/sass/application.sass | 9 +++++---- public/stylesheets/sass/hovercard.scss | 4 ++-- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/app/views/users/getting_started.html.haml b/app/views/users/getting_started.html.haml index d8fed4f6b..9242512d5 100644 --- a/app/views/users/getting_started.html.haml +++ b/app/views/users/getting_started.html.haml @@ -93,9 +93,10 @@ - Person.featured_users[0..5].each do |person| .featured_user_card_small = person_image_link(person) - = link_to person.name, person_path(person) - - person.profile.tags[0..2].each do |tg| - = "##{tg}" + = person_link(person, :class => "hovercardable") + .tags + - person.profile.tags[0..2].each do |tg| + = link_to "##{tg}", tags_path(tg) = link_to "#{t('.see_all_featured_users')} ->", featured_users_path diff --git a/public/stylesheets/sass/application.sass b/public/stylesheets/sass/application.sass index b931f741c..60b7fb965 100644 --- a/public/stylesheets/sass/application.sass +++ b/public/stylesheets/sass/application.sass @@ -3304,9 +3304,6 @@ ul#getting_started :padding 10px 0 .featured_user_card_small - :display inline-block - - :width 140px :height 30px :vertical-align top @@ -3314,12 +3311,16 @@ ul#getting_started :padding 5px :margin - :bottom 10px + :bottom 5px a :font :weight bold + .tags + a + :color #999 + .avatar :height 30px :width 30px diff --git a/public/stylesheets/sass/hovercard.scss b/public/stylesheets/sass/hovercard.scss index b5a6f7949..68a7fe1e4 100644 --- a/public/stylesheets/sass/hovercard.scss +++ b/public/stylesheets/sass/hovercard.scss @@ -11,8 +11,8 @@ .avatar { position: relative; - height: 70px; - width: 70px; + height: 70px !important; + width: 70px !important; top: 0 !important; margin: {