Permalink
Browse files

Cleaned up the appearance of the gravatars on the profile and top use…

…rs pages
  • Loading branch information...
1 parent 258535b commit b390349849dd5ac99d173198e258fc9031fab2cb @darrenaustin committed Oct 2, 2011
Showing with 15 additions and 9 deletions.
  1. +11 −3 resources/public/css/style.css
  2. +4 −6 src/foreclojure/users.clj
@@ -134,12 +134,20 @@ a.novisited {color: #00e;}
color: black;
}
+td a.user-profile-link {
+ display: block;
+ margin-top: 5px;
+}
+
.user-profile-img{
- float:left;
+ float: left;
+ padding-right: 10px;
}
img.gravatar{
- float:right;
+ float: left;
+ display: inline;
+ margin-right: 5px;
}
#user-info{
@@ -225,7 +233,6 @@ img.gravatar{
padding: 15px;
}
-
/*
* By default only show the text label for the "Following" column on
* the users page. If they have javascript turned on (detected
@@ -399,6 +406,7 @@ table.my-table {
table.my-table td {
text-align: left;
font-size: 12px;
+ vertical-align: middle;
}
tr.evenrow {
@@ -121,9 +121,8 @@
[:tr (row-class rownum)
[:td (rank-class position) rank]
[:td
- (when contributor [:span.contributor "* "])
- [:a.user-profile-link {:href (str "/user/" user)} user]
- (gravatar-img {:email email :class "gravatar"})]
+ (gravatar-img {:email email :class "gravatar"})
+ [:a.user-profile-link {:href (str "/user/" user)} user (when contributor [:span.contributor " *"])]]
[:td.centered (count solved)]
[:td (following-checkbox user-id following _id user)]])
user-set)])))
@@ -178,9 +177,8 @@
{:title page-title
:content
(list
- [:div.user-profile-name (gravatar-img {:email email, :size 80
- :class "user-profile-img"})
- page-title]
+ (gravatar-img {:email email, :size 80 :class "user-profile-img"})
+ [:div.user-profile-name page-title]
(if (session/session-get :user)
(with-user [{:keys [_id following]}]
(if (not= _id user-id)

0 comments on commit b390349

Please sign in to comment.