Permalink
Browse files

Extra data markup; lists design

  • Loading branch information...
1 parent 7912fb3 commit fed0a7435a0e4bd7b57e9f93fe72018f2dc9008b @kossnocorp kossnocorp committed Jan 2, 2011
Showing with 76 additions and 41 deletions.
  1. +35 −2 app/stylesheets/master.sass
  2. +41 −39 app/views/accounts/_account.html.erb
@@ -3,6 +3,7 @@
body
background: url(/images/ruby_pattern.png)
+ font-family: Sans
h1, h2, h3
font-family: Cuprum, Sans
@@ -26,7 +27,12 @@ h3
color: #8f7375
font-size: 16px
line-height: 20px
- padding-bottom: 15px
+
+a
+ color: #54272a
+ &:hover
+ color: #dda9ad
+ text-decoration: none
table.commiters
width: 100%
@@ -46,6 +52,11 @@ table.commiters
float: left
margin-right: 30px
width: 1px
+ position: relative
+
+ li
+ top: 0
+ position: absolute
.image-wrapper
width: 70px
@@ -59,5 +70,27 @@ table.commiters
.commiter-data
padding-left: 95px
+.commiter-data-extra
+ margin-top: 15px
+
dl
- margin-bottom: 10px
+ margin-bottom: 8px
+
+ &.nicknames
+ dt, dd
+ display: inline-block
+
+ &.sites
+
+ &.services
+
+ dt
+ color: #A3A099
+ margin-bottom: 2px
+
+ ul
+ margin-left: 10px
+ padding: 4px 0
+
+ li
+ margin-bottom: 5px
@@ -19,51 +19,53 @@
</h3>
<% end %>
- <% if account.nicks.length > 0 %>
- <dl class="nicknames">
- <dt>Nicknames:</dt>
- <dl><%= account.nicks.map(&:value).join(', ') %></dl>
- </dl>
- <% end %>
+ <div class="commiter-data-extra">
+ <% if account.nicks.length > 0 %>
+ <dl class="nicknames">
+ <dt>Nicknames:</dt>
+ <dd><%= account.nicks.map(&:value).join(', ') %></dd>
+ </dl>
+ <% end %>
- <% if account.sites.length > 0 %>
- <dl class="sites">
- <dt>Sites:</dt>
- <dl>
- <ul>
- <%= render :partial => 'site', :collection => account.sites %>
- </ul>
+ <% if account.sites.length > 0 %>
+ <dl class="sites">
+ <dt>Sites:</dt>
+ <dd>
+ <ul>
+ <%= render :partial => 'site', :collection => account.sites %>
+ </ul>
+ </dd>
</dl>
- </dl>
- <% end %>
+ <% end %>
- <% if account.services.length > 0 %>
- <dl class="services">
- <dt>Services:</dt>
- <dl>
- <ul>
- <%= render :partial => 'service', :collection => account.services %>
- </ul>
+ <% if account.services.length > 0 %>
+ <dl class="services">
+ <dt>Services:</dt>
+ <dd>
+ <ul>
+ <%= render :partial => 'service', :collection => account.services %>
+ </ul>
+ </dd>
</dl>
- </dl>
- <% end %>
+ <% end %>
- <!-- FIXME: unsure how to link to ISBN. :-( -->
- <!--
- <% if account.books.length > 0 %>
- <tr>
- <td>Books:</td>
- <td>
- <ul>
- <% account.books.each do |book| %>
- <li><%= book.key %></li>
- <% end %>
- </ul>
- </td>
- </tr>
- <% end %>
- -->
+ <!-- FIXME: unsure how to link to ISBN. :-( -->
+ <!--
+ <% if account.books.length > 0 %>
+ <tr>
+ <td>Books:</td>
+ <td>
+ <ul>
+ <% account.books.each do |book| %>
+ <li><%= book.key %></li>
+ <% end %>
+ </ul>
+ </td>
+ </tr>
+ <% end %>
+ -->
+ </div>
</div>
</div>
</td>

0 comments on commit fed0a74

Please sign in to comment.