6773bd1772
- changed /* comments to // (to avoid displaying in compiled css file) - added .alert-primary - removed _label.scss (due renamed to badge with BS4) - reworked bg-*, bg-gradient-*, custom-switch-*, custom-range-* as mixin - changed control-sidebar-light border color to main-header border - renamed `.direct-chat-info` to `.direct-chat-infos` (not theme color, its a extra block inside direct-chat & updated demo files - enhanced direct-chat with all colors - added `.dropdown-menu-xl` - reworked color-palette in pages/UI/general - changed `Block Quotes Pulled Right` to `Secondary Block Quotes` in pages/UI/general - removed `@-webkit-keyframes flipInX` due autoprefixer - enhanced demo.js with additional colors for sidebar & renamed `Navbar border` to `No Navbar border`
75 lines
1.2 KiB
SCSS
75 lines
1.2 KiB
SCSS
//
|
|
// Component: Table
|
|
//
|
|
|
|
.table {
|
|
&:not(.table-dark) {
|
|
color: inherit;
|
|
}
|
|
|
|
// fixed table head
|
|
&.table-head-fixed {
|
|
thead tr:nth-child(1) th {
|
|
background-color: $white;
|
|
border-bottom: 0;
|
|
box-shadow: inset 0 1px 0 $table-border-color,
|
|
inset 0 -1px 0 $table-border-color;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 10;
|
|
}
|
|
|
|
&.table-dark {
|
|
thead tr {
|
|
&:nth-child(1) th {
|
|
background-color: $table-dark-bg;
|
|
box-shadow: inset 0 1px 0 $table-dark-border-color,
|
|
inset 0 -1px 0 $table-dark-border-color;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// no border
|
|
&.no-border {
|
|
&,
|
|
td,
|
|
th {
|
|
border: 0;
|
|
}
|
|
}
|
|
|
|
// .text-center in tables
|
|
&.text-center {
|
|
&,
|
|
td,
|
|
th {
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
.table-valign-middle {
|
|
thead > tr > th,
|
|
thead > tr > td,
|
|
tbody > tr > th,
|
|
tbody > tr > td {
|
|
vertical-align: middle;
|
|
}
|
|
}
|
|
|
|
.card-body.p-0 & {
|
|
thead > tr > th,
|
|
thead > tr > td,
|
|
tbody > tr > th,
|
|
tbody > tr > td {
|
|
&:first-of-type {
|
|
@extend .pl-4;
|
|
}
|
|
|
|
&:last-of-type {
|
|
@extend .pr-4;
|
|
}
|
|
}
|
|
}
|
|
}
|