Give each row in a table a heading

The first columns of our tables are always headings for the
subsequent columns, even though they go horizontally.

HTML has the `<th>` tag, which doesn’t just have to be used for headings
along the top of a table. So this commit changes the first column to be
a `<th>`.

This then allows us to style these elements differently, specifically
making them 50% wide. This makes pages like the dashboard align more
nicely.
This commit is contained in:
Chris Hill-Scott
2016-06-08 13:41:02 +01:00
parent b1852f4b78
commit d213e2cc67
5 changed files with 41 additions and 15 deletions

View File

@@ -1,5 +1,6 @@
.table {
margin-bottom: $gutter;
width: 100%;
}
.table-heading {
@@ -13,6 +14,16 @@
}
}
.table-row {
th {
width: 52.5%;
a {
max-height: 1.25em;
}
}
}
%table-field,
.table-field {
@@ -77,6 +88,10 @@
width: 15px;
}
&-date {
white-space: nowrap;
}
p {
margin: 0 0 5px 0;
}

View File

@@ -3,8 +3,7 @@
table {
th {
@include core-16;
padding-top: 0;
border: 0;
border-bottom: 0;
}
td {