_tables.scss 3.59 KiB
//
// Basic Bootstrap table
//
.table {
  width: 100%;
  margin-bottom: $spacer;
  color: $table-color;
  background-color: $table-bg; // Reset for nesting within parents with `background-color`.
  th,
  td {
    padding: $table-cell-padding;
    vertical-align: top;
    border-top: $table-border-width solid $table-border-color;
  thead th {
    vertical-align: bottom;
    border-bottom: (2 * $table-border-width) solid $table-border-color;
  tbody + tbody {
    border-top: (2 * $table-border-width) solid $table-border-color;
  .table {
    background-color: $body-bg;
// Condensed table w/ half padding
.table-sm {
  th,
  td {
    padding: $table-cell-padding-sm;
// Border versions
// Add or remove borders all around the table and between all the columns.
.table-bordered {
  border: $table-border-width solid $table-border-color;
  th,
  td {
    border: $table-border-width solid $table-border-color;
  thead {
    th,
    td {
      border-bottom-width: 2 * $table-border-width;
.table-borderless {
  th,
  td,
  thead th,
  tbody + tbody {
    border: 0;