overleaf/services/web/frontend/stylesheets/bootstrap-5/components/table.scss

57 lines
834 B
SCSS
Raw Normal View History

.table-container {
flex: 1;
margin-bottom: var(--spacing-06);
background-color: var(--white);
.table {
margin-bottom: initial;
}
}
.table {
tr {
&:last-child {
td {
border-bottom-width: 0;
}
}
}
th,
td {
a {
text-decoration: none;
}
}
}
.table-container-bordered {
padding: var(--spacing-04);
border-color: $table-border-color;
border-radius: var(--border-radius-base);
border-width: var(--bs-border-width);
border-style: solid;
}
.table-hover {
th {
&:hover {
background-color: $table-hover-bg;
}
}
}
.table-striped {
tr,
td {
border-top-width: 0;
border-bottom-width: 0;
}
> tbody > tr:nth-of-type(#{$table-striped-order}) {
&:hover > * {
--#{$prefix}table-hover-bg: var(--bg-light-tertiary);
}
}
}