From bc254bc60d4ea25a9402ab68f0ab1134bc72fca4 Mon Sep 17 00:00:00 2001 From: pixeldesu Date: Sat, 29 Nov 2014 22:56:38 +0100 Subject: [PATCH] changed profile display a bit --- app/assets/stylesheets/base.css.scss | 12 ++++++++++++ app/views/user/show.html.haml | 21 ++++++++------------- 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/app/assets/stylesheets/base.css.scss b/app/assets/stylesheets/base.css.scss index a28b6cde..893df6bd 100644 --- a/app/assets/stylesheets/base.css.scss +++ b/app/assets/stylesheets/base.css.scss @@ -10,4 +10,16 @@ body { .centre { text-align: center; +} + +.entry-subtext { + color: $navbar-inverse-bg; + margin-top: 0px; + text-transform: uppercase; + font-weight: bold; + font-size: 80%; +} + +.entry-text { + margin-bottom: 0px; } \ No newline at end of file diff --git a/app/views/user/show.html.haml b/app/views/user/show.html.haml index afd99348..6e448363 100644 --- a/app/views/user/show.html.haml +++ b/app/views/user/show.html.haml @@ -12,19 +12,14 @@ %h3.text-muted= @user.screen_name - if @user.admin? %span.label.label-danger Admin - %ul.list-group - %li.list-group-item - Followers - %span.badge#follower-count= @user.follower_count - %li.list-group-item - Followings - %span.badge#friend-count= @user.friend_count - %li.list-group-item - Questions - %span.badge#friend-count= @user.asked_count - %li.list-group-item - Answers - %span.badge#friend-count= @user.answered_count + %h4.entry-text= @user.follower_count + %h6.entry-subtext Followers + %h4.entry-text= @user.friend_count + %h6.entry-subtext Followings + %h4.entry-text= @user.asked_count + %h6.entry-subtext Questions + %h4.entry-text= @user.answered_count + %h6.entry-subtext Answers .hidden-xs= render 'shared/links' .col-md-9.col-xs-12.col-sm-9 = render 'shared/questionbox'