Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Login bar now has slightly larger avatars

  • Loading branch information...
commit 06951dac7ad2ceeefe5f3042d9be52c0cf36da9d 1 parent e7c0063
@xjamundx xjamundx authored isaacs committed
Showing with 13 additions and 6 deletions.
  1. +9 −2 stylus/index.styl
  2. +4 −4 templates/login-aside.ejs
View
11 stylus/index.styl
@@ -147,10 +147,10 @@ form {
}
}
.profile {
- margin-top:4px;
+ padding-left: 0;
.profsub {
- margin:0;
+ margin:1em 0 0 0;
font-size:11px;
}
.profsub a:first {
@@ -270,6 +270,13 @@ form {
font-weight: bold;
}
+ .avatar-medium {
+ margin-right: 1em;
+ float: left;
+ width: 50px;
+ height: 50px;
+ }
+
.avatar {
position: absolute;
top: -4px;
View
8 templates/login-aside.ejs
@@ -3,18 +3,18 @@
if (typeof profile === 'undefined' || !profile) {
%>
<div class="user profile">
- <img src="https://secure.gravatar.com/avatar/avatar.jpg?s=50&d=mm" class="avatar"> <a href=/signup>Create Account</a> | <a href=/login>Login</a>
+ <img src="https://secure.gravatar.com/avatar/avatar.jpg?s=100&d=mm" class="avatar-medium"> <a href=/signup>Create Account</a> | <a href=/login>Login</a>
</div>
<%
} else {
%>
<div class="user profile">
- <% if (profile.avatar) { %>
- <img src="<%= profile.avatar %>" class="avatar">
+ <% if (profile.avatarMedium) { %>
+ <img src="<%= profile.avatarMedium %>" class="avatar-medium">
<% } %>
<a class="username" href="/profile"><%= profile.fullname || profile.name %></a>
<p class=profsub>
- <a class=profsub href=/profile-edit>Edit Profile</a>
+ <a class=profsub href=/profile-edit>Edit Profile</a> |
<a class=profsub href=/logout>Log out</a>
</p>
</div>
Please sign in to comment.
Something went wrong with that request. Please try again.