AdminLTE/build/scss/_table.scss

86 lines
1.3 KiB
SCSS
Raw Normal View History

//
// Component: Table
//
2015-10-31 21:00:16 +00:00
.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;
}
}
}
2015-10-31 21:00:16 +00:00
}
// no border
&.no-border {
&,
td,
th {
border: 0;
}
2015-10-31 21:00:16 +00:00
}
// .text-center in tables
&.text-center {
&,
td,
th {
text-align: center;
}
2015-10-31 21:00:16 +00:00
}
2018-03-17 17:07:55 +00:00
&.table-valign-middle {
thead > tr > th,
thead > tr > td,
tbody > tr > th,
tbody > tr > td {
vertical-align: middle;
2018-03-17 17:07:55 +00:00
}
}
.card-body.p-0 & {
thead > tr > th,
thead > tr > td,
tbody > tr > th,
tbody > tr > td {
&:first-of-type {
padding-left: map-get($spacers, 4);
}
&:last-of-type {
padding-right: map-get($spacers, 4);
}
2018-03-17 17:07:55 +00:00
}
2015-10-31 21:00:16 +00:00
}
}
// Expandable Table
.expandable-body {
td {
padding: 0;
width: 100%;
> div,
> p {
padding: $table-cell-padding;
}
}
}