Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
fix(tables): improve table headers spacing
Browse files Browse the repository at this point in the history
The separation line in the header of the table that was within `<a>` was removed, the separation line now depends on each `<th>`, so we avoid collecting items that are only decorative.
  • Loading branch information
GusBaamonde committed Jul 26, 2019
1 parent 350fcd0 commit d02e2fc
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions assets/scss/modules/_tables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@
text-transform: uppercase;
text-align: left;
padding: $dp-spaces--lv0 $dp-spaces--lv3 $dp-spaces--lv0;
position: relative;

&:last-child a {
border-right: none;
&:first-child {
border-left: none;
}

a {
border-right: 1px solid $dp-color-lightgrey;
display: flex;
align-items: center;
justify-content: space-between;
Expand All @@ -81,7 +81,15 @@
}
}
}
}
}

th + th:before {
content: "";
height: 10px;
border-right: 1px solid $dp-color-lightgrey;
position: absolute;
left: 0;
}

tbody {
tr {
Expand Down

0 comments on commit d02e2fc

Please sign in to comment.