style: tables

This commit is contained in:
Ben Goldsworthy 2025-02-20 23:44:25 +01:00
parent fa7a39502a
commit 548125f9aa
Signed by: Rumperuu
SSH key fingerprint: SHA256:v3uompaUiPqV2w1/AIRWBSQOxr2dntH9Xs/y8fDnUPU
2 changed files with 15 additions and 7 deletions

View file

@ -12,18 +12,16 @@ table {
& thead {
background-color: #808080;
border: 1px solid $dark;
color: $light;
z-index: 1;
position: sticky;
vertical-align: middle;
inset-block-start: 0;
max-block-size: 1.8em;
& th {
font-weight: bold;
text-align: start;
padding: 1em;
font-size: 1.4em;
text-align: center;
padding: 0.3em 0.25em 0 0.25em;
border: 1px solid $dark;
}
}
@ -31,7 +29,7 @@ table {
& tbody {
& tr {
&:nth-child(2n) {
background-color: #DDDDD0;
background-color: #ddddd0;
}
& td {
@ -39,6 +37,5 @@ table {
border: 1px solid $dark;
}
}
}
}

View file

@ -1,7 +1,18 @@
.organisations-table {
inline-size: 80% !important;
& thead {
position: sticky;
& th {
padding: 1em;
text-align: start;
font-size: 1.4em;
}
}
&__items-icon {
padding: 1em;
font-size: 1.4em;
text-align: center;
float: inline-start;
padding-inline-end: 1em;