137 lines
2.4 KiB
SCSS
137 lines
2.4 KiB
SCSS
// Tables
|
|
// ********************************************************************************/
|
|
|
|
@each $color, $value in $table-variants {
|
|
@if $color != primary {
|
|
@include template-table-variant($color, $value);
|
|
}
|
|
}
|
|
|
|
// Firefox fix for table head border bottom
|
|
.table {
|
|
> :not(caption) > * > * {
|
|
background-clip: padding-box;
|
|
}
|
|
&:not(.table-borderless):not(.table-dark) > :not(caption) > *:not(.table-dark) > * {
|
|
border-top-width: 1px;
|
|
}
|
|
.dropdown-item {
|
|
display: flex;
|
|
gap: 0.25rem;
|
|
}
|
|
tr {
|
|
> td {
|
|
.dropdown {
|
|
position: static;
|
|
}
|
|
}
|
|
}
|
|
caption {
|
|
padding: $table-cell-padding-y $table-cell-padding-x;
|
|
}
|
|
&.table-sm {
|
|
thead tr th {
|
|
padding-block: $table-head-padding-y-sm;
|
|
}
|
|
}
|
|
thead tr th {
|
|
padding-block: $table-head-padding-y;
|
|
}
|
|
}
|
|
|
|
// Style for table inside card
|
|
.card {
|
|
.table {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
@supports (-moz-appearance: none) {
|
|
.table {
|
|
.dropdown-menu.show {
|
|
display: inline-table;
|
|
}
|
|
}
|
|
}
|
|
// Table heading style
|
|
.table th {
|
|
text-transform: uppercase;
|
|
font-size: $font-size-sm;
|
|
letter-spacing: 0.2px;
|
|
color: $table-th-color;
|
|
}
|
|
.table-dark th {
|
|
color: var(--#{$prefix}table-color);
|
|
border-top: 1px solid $table-border-color;
|
|
}
|
|
@if $dark-style {
|
|
.table-light th {
|
|
color: var(--#{$prefix}table-color);
|
|
}
|
|
}
|
|
|
|
// Dark Table icon button
|
|
.table.table-dark .btn.btn-icon {
|
|
color: $table-border-color;
|
|
}
|
|
|
|
// class for to remove table border bottom
|
|
.table-border-bottom-0 {
|
|
tr:last-child {
|
|
td,
|
|
th {
|
|
border-bottom-width: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Dark Table icon button color
|
|
.table.table-dark {
|
|
.btn {
|
|
i {
|
|
color: $component-active-color;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Flush spacing of left from first column ans right from last column
|
|
.table.table-flush-spacing {
|
|
thead,
|
|
tbody {
|
|
tr > td:first-child {
|
|
padding-left: 0;
|
|
}
|
|
tr > td:last-child {
|
|
padding-right: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
// * Table inside card
|
|
// *******************************************************************************
|
|
|
|
// .card,
|
|
.nav-align-top,
|
|
.nav-align-right,
|
|
.nav-align-bottom,
|
|
.nav-align-left {
|
|
.table:not(.table-dark),
|
|
.table:not(.table-dark) thead:not(.table-dark) th,
|
|
.table:not(.table-dark) tfoot:not(.table-dark) th,
|
|
.table:not(.table-dark) td {
|
|
border-color: $border-color;
|
|
}
|
|
}
|
|
|
|
// Dark styles
|
|
|
|
// Dark Table icon button color
|
|
@if $dark-style {
|
|
.table.table-dark {
|
|
.btn {
|
|
i {
|
|
color: $card-bg;
|
|
}
|
|
}
|
|
}
|
|
}
|