feat(core): add styles for vanilla tables

#1
This commit is contained in:
Alexander Navarro 2024-09-17 16:08:07 -03:00
parent e754e40622
commit cf0b4011d1
5 changed files with 76 additions and 2 deletions

View file

@ -0,0 +1,37 @@
table {
caption-side: bottom;
border-collapse: collapse;
width: 100%;
tbody,
td,
tfoot,
th,
thead,
tr {
border-color: inherit;
border-style: solid;
border-width: 0;
}
thead {
vertical-align: bottom;
th {
text-align: start;
}
}
& > :not(caption) > * > * {
padding: var(--msp-spacing-2);
color: var(--msp-color-table-text);
background-color: var(--msp-color-bg-table);
border-bottom-width: var(--msp-border-width);
border-color: var(--msp-color-text-transparent);
box-shadow: inset 0 0 0 9999px
var(
--bs-table-bg-state,
var(--bs-table-bg-type, var(--bs-table-accent-bg))
);
}
}