Skip to content

Commit

Permalink
table styling
Browse files Browse the repository at this point in the history
  • Loading branch information
pdaoust committed Nov 28, 2024
1 parent cd3451c commit 6ae6740
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/scss/_base-element-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,34 @@ img {
max-width: $p * 10%;
}
}
}

table {
width: 100%;
border-collapse: collapse;
}

th {
background: $cl-light-gray;
color: white;
border-right-color: rgba(white, 0.5);
}

th, td {
text-align: left;
vertical-align: top;
border-right: 1px solid;
padding: 0, 0.5em;

&:last-child {
border-right: none;
}
}

td {
border-right-color: rgba(black, 0.5);
}

tr:nth-child(even) {
background: rgba($cl-gray, 0.5);
}

0 comments on commit 6ae6740

Please sign in to comment.