Skip to content

Commit d34ee94

Browse files
author
Keenan Payne
committed
Add styles for table footers
1 parent 4be43c2 commit d34ee94

4 files changed

Lines changed: 18 additions & 2 deletions

File tree

dist/concise.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -779,6 +779,9 @@ table {
779779
table thead {
780780
background-color: #f5f5f5;
781781
text-align: left; }
782+
table tfoot {
783+
background-color: #fbfbfb;
784+
border-top: 1px solid #e0e0e0; }
782785
table th,
783786
table td {
784787
border-right: 1px solid #e0e0e0;

dist/concise.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/core/layout/_tables.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ table {
2323
text-align: left;
2424
}
2525

26+
tfoot {
27+
background-color: lighten(getColor(background, light), 2.5%);
28+
border-top: 1px solid getColor(base, lines);
29+
}
30+
2631
th,
2732
td {
2833
border-right: 1px solid getColor(base, lines);
@@ -71,7 +76,7 @@ table {
7176
border: 3px solid white;
7277
border-radius: 8px;
7378
}
74-
79+
7580
table { margin-bottom: 0; }
7681
}
7782

test/test.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,14 @@ <h6>Heading 6 <small>Helper text</small></h6>
167167
</tr>
168168
</thead>
169169

170+
<tfoot>
171+
<tr>
172+
<td><strong>Total Users:</strong></td>
173+
<td>2</td>
174+
<td></td>
175+
</tr>
176+
</tfoot>
177+
170178
<tbody>
171179
<tr>
172180
<td>1</td>

0 commit comments

Comments
 (0)