Move table styling into a component
This commit is contained in:
parent
eaa7959c87
commit
178dc634e9
4 changed files with 29 additions and 10 deletions
18
assets/less/components/table.less
Normal file
18
assets/less/components/table.less
Normal file
|
@ -0,0 +1,18 @@
|
|||
.table {
|
||||
@apply .w-full;
|
||||
@apply .table-collapse;
|
||||
@apply .border;
|
||||
@apply .border-grey-light;
|
||||
}
|
||||
|
||||
.table tr:nth-child(odd) {
|
||||
@apply .bg-grey-lightest;
|
||||
}
|
||||
|
||||
.table tr th {
|
||||
@apply .text-left .p-2 .bg-white;
|
||||
}
|
||||
|
||||
.table td {
|
||||
@apply .p-2 .border-t;
|
||||
}
|
|
@ -64,6 +64,7 @@ svg {
|
|||
|
||||
@import "components/listing";
|
||||
@import "components/post";
|
||||
@import "components/table";
|
||||
@import "components/talk/slides";
|
||||
@import "components/talk/video";
|
||||
@import "components/testimonial";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue