feat: add table styles
This commit is contained in:
parent
a3f3e099b3
commit
8c0fb89a54
1 changed files with 30 additions and 0 deletions
|
@ -184,6 +184,36 @@ mark {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
table {
|
||||||
|
border: 1px solid var(--color-border);
|
||||||
|
border-radius: var(--spacing-0\.5);
|
||||||
|
border-spacing: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
table thead {
|
||||||
|
background-color: var(--color-surface);
|
||||||
|
}
|
||||||
|
|
||||||
|
table thead th {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
table th,
|
||||||
|
table td {
|
||||||
|
padding-block: var(--spacing-0\.5);
|
||||||
|
padding-inline: var(--spacing-1);
|
||||||
|
}
|
||||||
|
|
||||||
|
table tbody tr:first-child td {
|
||||||
|
border-top: 1px solid var(--color-border);
|
||||||
|
}
|
||||||
|
|
||||||
|
table tbody tr:not(:last-child) td {
|
||||||
|
border-bottom: 1px solid var(--color-border);
|
||||||
|
}
|
||||||
|
|
||||||
@media (prefers-reduced-motion: reduce) {
|
@media (prefers-reduced-motion: reduce) {
|
||||||
html:focus-within {
|
html:focus-within {
|
||||||
scroll-behavior: auto;
|
scroll-behavior: auto;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue