style table with css
authorDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 12 Apr 2011 20:29:58 +0000 (20:29 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 12 Apr 2011 20:39:38 +0000 (20:39 +0000)
templates/user.html.ep

index 81ebbaf..c75b914 100644 (file)
 #columns:hover ul {
        display: block;
 }
+
+table {
+       border-collapse:collapse;
+}
+
+th {
+       border-bottom: 2px solid gray;
+}
+
+th, td {
+       border-left: 1em solid white;
+       border-right: 1em solid white;
+}
+
+.zebra {
+       background: #eee;
+}
+
 </style>
 
   <div ng:controller="CRM">
     <tr>
        <th ng:repeat="c in columns" ng:click="columns.$remove(c)">{{c}}</th>
     </tr>
-    <tr ng:repeat="u in response" ng:click="select(u)">
+    <tr ng:repeat="u in response" ng:click="select(u)" ng:class-even="'zebra'">
        <td ng:repeat="c in columns" ng:show="! selected_username || selected_username == u.USERNAME">{{u[c]}}</td>
     </tr>
     </table>