Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Extra data markup; lists design

  • Loading branch information...
commit fed0a7435a0e4bd7b57e9f93fe72018f2dc9008b 1 parent 7912fb3
Sasha Koss authored January 03, 2011
37  app/stylesheets/master.sass
@@ -3,6 +3,7 @@
3 3
 
4 4
 body
5 5
   background: url(/images/ruby_pattern.png)
  6
+  font-family: Sans
6 7
 
7 8
 h1, h2, h3
8 9
   font-family: Cuprum, Sans
@@ -26,7 +27,12 @@ h3
26 27
   color: #8f7375
27 28
   font-size: 16px
28 29
   line-height: 20px
29  
-  padding-bottom: 15px
  30
+
  31
+a
  32
+  color: #54272a
  33
+  &:hover
  34
+    color: #dda9ad
  35
+    text-decoration: none
30 36
 
31 37
 table.commiters
32 38
   width: 100%
@@ -46,6 +52,11 @@ table.commiters
46 52
   float: left
47 53
   margin-right: 30px
48 54
   width: 1px
  55
+  position: relative
  56
+
  57
+  li
  58
+    top: 0
  59
+    position: absolute
49 60
 
50 61
   .image-wrapper
51 62
     width: 70px
@@ -59,5 +70,27 @@ table.commiters
59 70
 .commiter-data
60 71
   padding-left: 95px
61 72
 
  73
+.commiter-data-extra
  74
+  margin-top: 15px
  75
+
62 76
 dl
63  
-  margin-bottom: 10px
  77
+  margin-bottom: 8px
  78
+
  79
+  &.nicknames
  80
+    dt, dd
  81
+      display: inline-block
  82
+
  83
+  &.sites
  84
+
  85
+  &.services
  86
+
  87
+  dt
  88
+    color: #A3A099
  89
+    margin-bottom: 2px
  90
+
  91
+  ul
  92
+    margin-left: 10px
  93
+    padding: 4px 0
  94
+
  95
+    li
  96
+      margin-bottom: 5px
80  app/views/accounts/_account.html.erb
@@ -19,51 +19,53 @@
19 19
         </h3>
20 20
       <% end %>
21 21
 
22  
-      <% if account.nicks.length > 0 %>
23  
-        <dl class="nicknames">
24  
-          <dt>Nicknames:</dt>
25  
-          <dl><%= account.nicks.map(&:value).join(', ') %></dl>
26  
-        </dl>
27  
-      <% end %>
  22
+      <div class="commiter-data-extra">
  23
+        <% if account.nicks.length > 0 %>
  24
+          <dl class="nicknames">
  25
+            <dt>Nicknames:</dt>
  26
+            <dd><%= account.nicks.map(&:value).join(', ') %></dd>
  27
+          </dl>
  28
+        <% end %>
28 29
 
29  
-      <% if account.sites.length > 0 %>
30  
-        <dl class="sites">
31  
-          <dt>Sites:</dt>
32  
-          <dl>
33  
-            <ul>
34  
-              <%= render :partial => 'site', :collection => account.sites %>
35  
-            </ul>
  30
+        <% if account.sites.length > 0 %>
  31
+          <dl class="sites">
  32
+            <dt>Sites:</dt>
  33
+            <dd>
  34
+              <ul>
  35
+                <%= render :partial => 'site', :collection => account.sites %>
  36
+              </ul>
  37
+            </dd>
36 38
           </dl>
37  
-        </dl>
38  
-      <% end %>
  39
+        <% end %>
39 40
 
40  
-      <% if account.services.length > 0 %>
41  
-        <dl class="services">
42  
-          <dt>Services:</dt>
43  
-          <dl>
44  
-            <ul>
45  
-              <%= render :partial => 'service', :collection => account.services %>
46  
-            </ul>
  41
+        <% if account.services.length > 0 %>
  42
+          <dl class="services">
  43
+            <dt>Services:</dt>
  44
+            <dd>
  45
+              <ul>
  46
+                <%= render :partial => 'service', :collection => account.services %>
  47
+              </ul>
  48
+            </dd>
47 49
           </dl>
48  
-        </dl>
49  
-      <% end %>
  50
+        <% end %>
50 51
 
51  
-      <!-- FIXME: unsure how to link to ISBN. :-( -->
52  
-      <!--
53  
-      <% if account.books.length > 0 %>
54  
-        <tr>
55  
-          <td>Books:</td>
56  
-          <td>
57  
-            <ul>
58  
-              <% account.books.each do |book| %>
59  
-                <li><%= book.key %></li>
60  
-              <% end %>
61  
-            </ul>
62  
-          </td>
63  
-        </tr>
64  
-      <% end %>
65  
-      -->
  52
+        <!-- FIXME: unsure how to link to ISBN. :-( -->
  53
+        <!--
  54
+        <% if account.books.length > 0 %>
  55
+          <tr>
  56
+            <td>Books:</td>
  57
+            <td>
  58
+              <ul>
  59
+                <% account.books.each do |book| %>
  60
+                  <li><%= book.key %></li>
  61
+                <% end %>
  62
+              </ul>
  63
+            </td>
  64
+          </tr>
  65
+        <% end %>
  66
+        -->
66 67
 
  68
+      </div>
67 69
     </div>
68 70
   </div>
69 71
 </td>

0 notes on commit fed0a74

Please sign in to comment.
Something went wrong with that request. Please try again.