Permalink
Browse files

Minor formatting of the main table.

  • Loading branch information...
1 parent d17dd66 commit 1db366fbdbd9ec3d4bd108a38dd3d211e38a0d50 @LaurentMazare committed Apr 23, 2012
Showing with 19 additions and 5 deletions.
  1. +14 −0 app/assets/stylesheets/enigmas.css.scss
  2. +5 −5 app/views/enigmas/index.html.erb
@@ -10,3 +10,17 @@
color: #DDDDDD;
background-color: #222222;
}
+
+.enigma_grid {
+ border-collapse: collapse;
+}
+
+.enigma_grid td, .enigma_grid th {
+ padding: 2px;
+ border: 1px solid #bbb;
+}
+
+.header_row {
+ background-color: #bbb;
+}
+
@@ -3,12 +3,12 @@
No enigma can be found.
<% else %>
<div class="enigma_list">
- <table>
+ <table class="enigma_grid">
<tr>
- <th width = "10%"><b>ID</b></th>
- <th width = "50%" align = "left"><b>Description/Title</b></th>
- <th width = "20%" align = "left"><b>Tags</b></th>
- <th width = "15%" align = "left"><b>Author</b></th>
+ <th width = "10%" class = "header_row"><b>ID</b></th>
+ <th width = "50%" align = "left" class = "header_row"><b>Description/Title</b></th>
+ <th width = "20%" align = "left" class = "header_row"><b>Tags</b></th>
+ <th width = "15%" align = "left" class = "header_row"><b>Author</b></th>
</tr>
<% @enigmas.each do |enigma| %>
<tr>

0 comments on commit 1db366f

Please sign in to comment.