Permalink
Browse files

link color

Account spacing/whitepsace
  • Loading branch information...
1 parent e4db416 commit b409be7ccd69bbfd808a863a8a6aa992d5f92813 @nicinabox nicinabox committed Jan 5, 2011
Showing with 39 additions and 21 deletions.
  1. +20 −18 app/views/accounts/_account.html.erb
  2. +19 −3 public/stylesheets/site.css
@@ -1,25 +1,27 @@
<% full ||= false -%>
<article class="account">
- <%= render :partial => 'portrait', :locals => { :account => account, :full => full } %>
- <h2 class="username">
- <% if full -%>
- <%= account.username %>
- <% else %>
- <%= link_to account.username, account %>
- <% end -%>
- </h2>
- <% if full and (primary_site = account.sites.first) -%>
- <%= link_to primary_site.url, primary_site.url, :class => "primary_site" %>
- <% end -%>
+ <header>
+ <%= render :partial => 'portrait', :locals => { :account => account, :full => full } %>
+ <h2 class="username">
+ <% if full -%>
+ <%= account.username %>
+ <% else %>
+ <%= link_to account.username, account %>
+ <% end -%>
+ </h2>
+ <% if full and (primary_site = account.sites.first) -%>
+ <%= link_to primary_site.url, primary_site.url, :class => "primary_site" %>
+ <% end -%>
- <% unless account.names.empty? %>
- <p><%= account.names.collect {|n| n.value }.reverse.to_sentence %></p>
- <% end %>
-
- <% unless account.nicks.empty? %>
- <p><strong>AKA:</strong> <%= account.nicks.collect {|n| n.value }.to_sentence %></p>
- <% end %>
+ <% unless account.names.empty? %>
+ <p><%= account.names.collect {|n| n.value }.reverse.to_sentence %></p>
+ <% end %>
+ <% unless account.nicks.empty? %>
+ <p><strong>AKA:</strong> <%= account.nicks.collect {|n| n.value }.to_sentence %></p>
+ <% end %>
+ </header>
+
<% if full -%>
<% unless account.books.empty? %>
<p><%= render :partial => 'book', :collection => account.books %></p>
@@ -64,7 +64,9 @@ body{
font:normal 12px "Helvetica Neue", Helvetica, Arial, sans-serif;
background: #ececec;
}
-
+a {
+ color: #0072bc;
+}
.image-wrapper {
max-width: 100px;
float:left;
@@ -186,6 +188,13 @@ p{
min-height: 200px;
position: relative;
}
+#account header {
+ margin-bottom: 10px;
+}
+#account header p {
+ color: gray;
+ margin: 0;
+}
#account .image-wrapper {
position: absolute;
background: white;
@@ -202,10 +211,17 @@ p{
#account h2 {
font-family: Museo;
font-size: 46px;
- margin-top: 0;
line-height: 40px;
}
-
+#account a.primary_site {
+ text-decoration: none;
+}
+#account a.primary_site:hover {
+ text-decoration: underline;
+}
+#account .primary_site + p {
+ margin-top: 10px;
+}

0 comments on commit b409be7

Please sign in to comment.