Add and use sugarss

This commit is contained in:
Oliver Davies 2019-10-06 22:29:11 +01:00
parent 906e4c1938
commit ab6e0d2df5
16 changed files with 81 additions and 111 deletions

View file

@ -1,18 +1,13 @@
.table {
@apply w-full;
.table
@apply w-full
th {
@apply bg-gray-200 text-left;
}
th
@apply bg-gray-200 text-left
th,
td {
@apply px-4 py-2 border border-solid border-gray-300;
}
}
td
@apply px-4 py-2 border border-solid border-gray-300
table.is-striped {
tbody > tr:not(:nth-child(odd)) td {
@apply bg-gray-100;
}
}
table.is-striped
tbody > tr:not(:nth-child(odd)) td
@apply bg-gray-100