Skip to content
This repository was archived by the owner on Sep 5, 2019. It is now read-only.

Commit e9d45a8

Browse files
committed
Update
1 parent bbe1c70 commit e9d45a8

File tree

3 files changed

+81
-11
lines changed

3 files changed

+81
-11
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/nbproject/private/

src/css/style.tables.css

Lines changed: 76 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,87 @@
22
/*
33
style tables
44
*/
5+
table {
6+
border-collapse: collapse;
7+
}
8+
59
table td,
610
table th {
7-
padding: 5px;
11+
padding: 5px 8px;
812
}
913

10-
table tr:nth-child(even) { background-color: white; }
11-
table tr:nth-child(odd) { background-color: #f4f4f4; }
12-
1314
table th:first-child,
1415
table td:first-child {
15-
padding-left: 20px;
16+
padding-left: 8px;
17+
}
18+
19+
/*
20+
default
21+
*/
22+
table tr.default:nth-child(even) {
23+
background-color: white;
24+
}
25+
26+
table tr.default:nth-child(odd) {
27+
background-color: #f4f4f4;
28+
}
29+
30+
/*
31+
primary
32+
*/
33+
table tr.primary th {
34+
border-color: #7cbae2;
35+
}
36+
37+
table tr.primary td {
38+
border-color: #7cbae2;
39+
color: #1f4259;
40+
}
41+
42+
table tr.primary:nth-child(even) td {
43+
background-color: #a0d3f4;
44+
}
45+
46+
table tr.primary:nth-child(odd) td {
47+
background-color: #89c8f1;
1648
}
1749

18-
table tr.tr.hover:hover { background-color: #e0e0e0; }
19-
table tr.tr.hover span { color: #2976c6; }
50+
/*
51+
success
52+
*/
53+
table tr.success th {
54+
border-color: #80c75f;
55+
}
56+
57+
table tr.success td {
58+
border-color: #80c75f;
59+
color: #315620;
60+
}
61+
62+
table tr.success:nth-child(even) td {
63+
background-color: #aaea8d;
64+
}
65+
66+
table tr.success:nth-child(odd) td {
67+
background-color: #8edc6b;
68+
}
69+
70+
/*
71+
danger
72+
*/
73+
table tr.danger th {
74+
border-color: #d46a6a;
75+
}
76+
77+
table tr.danger td {
78+
border-color: #d46a6a;
79+
color: #542121;
80+
}
81+
82+
table tr.danger:nth-child(even) td {
83+
background-color: #f19f9f;
84+
}
85+
86+
table tr.danger:nth-child(odd) td {
87+
background-color: #e37b7b;
88+
}

src/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@
136136

137137
<!-- content -->
138138
<div class="content">
139-
<h4>Dashboard</h4>
140139
<div class="content-box">
140+
<h4>Dashboard</h4>
141141
<form>
142142
<fieldset>
143143
<legend>Form style</legend>
@@ -167,7 +167,7 @@ <h4>Table style</h4>
167167
<th>Email</th>
168168
<th>Action</th>
169169
</tr>
170-
<tr class="tr hover">
170+
<tr class="default">
171171
<td>1</td>
172172
<td>Root</td>
173173
<td>root@domain.com</td>
@@ -177,7 +177,7 @@ <h4>Table style</h4>
177177
<a href="#root" class="action-button detail"><i class="fa fa-search"></i></a>
178178
</td>
179179
</tr>
180-
<tr class="tr hover">
180+
<tr class="default">
181181
<td>2</td>
182182
<td>Admin</td>
183183
<td>admin@domain.com</td>
@@ -187,7 +187,7 @@ <h4>Table style</h4>
187187
<a href="#admin" class="action-button detail"><i class="fa fa-search"></i></a>
188188
</td>
189189
</tr>
190-
<tr class="tr hover">
190+
<tr class="default">
191191
<td>3</td>
192192
<td>User</td>
193193
<td>user@domain.com</td>

0 commit comments

Comments
 (0)