Sha256: 894f22cc2909ab6835aae12a8e198dbf325d46b8bff5612699f67d8413112e89

Contents?: true

Size: 1.95 KB

Versions: 10

Compression:

Stored size: 1.95 KB

Contents

// Tables

// Borderless

table {
  max-width: 100%;
  width: 100%;
  border-spacing: 0;         /* 1 */
  border-collapse: collapse; /* 1 */
  empty-cells: show;
  font-size: 0.9rem;
  word-break: break-word;
  th,
  tfoot td {
    color: $black;
    text-align: left;
    font-weight: bold;
  }
  thead th,
  tfoot td  {
    background-color: $lighterGray;
  }
  thead th {
    color: $darkestGray;
    font-size: 0.9rem;
    font-weight: 600;
    word-break: normal;
  }
  th,
  td {
    overflow: visible;
    padding: 1rem;
    vertical-align: top;
  }
  &.condensed {
    th, td {
      padding: 0.5rem;
    }
  }

  &.vertical_middle {
    th, td {
      vertical-align: middle;
    }
  }
  th.sortable a {
    color: $darkestGray;
    i {
      color: $darkerGray;
      margin-left: 0.25rem;
      font-size: 1rem;
    }
      &:hover {
      text-decoration: none;
    }
  }

  /* Outer border only */
  &.border {
    border: 1px solid $lightGray;
  }

  /* Borders for rows & columns */
  &.border_all {
    th, td {
      border-top: 1px solid $lightGray;
      border-left: 1px solid $lightGray;
    }
  }

  /* Border for rows only */
  &.border_rows {
    th, td {
      border-top: 1px solid $lightGray;
    }
    /* Add bottom border to last row in the table */
    tr:last-child td {
      border-bottom: 1px solid $lightGray;
    }
  }

  /* Border for columns only */
  &.border_cols {
    th, td {
      border-left: 1px solid $lightGray;
    }
    tr th,
    tr td {
      &:first-child {
        border-left: 0;
      }
    }
  }
  /* Remove top border to avoid double border on .border tables */
  &.border {
    &.border-all,
    &.border-rows {
      thead:first-child tr:first-child {
        th, td {
          border-top: 0;
        }
      }
    }
  }
  &.border-all {
    tr th,
    tr td {
      &:first-child {
        border-left: 0;
      }
    }
    tr:first-child,
    thead:first-child tr:first-child {
      th {
        border-left: 0;
      }
    }
  }
}

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
dvl-core-0.1.0 vendor/assets/stylesheets/dvl/core/tables.scss
dvl-core-0.0.12 vendor/assets/stylesheets/dvl/core/tables.scss
dvl-core-0.0.11 vendor/assets/stylesheets/dvl/core/tables.scss
dvl-core-0.0.10 vendor/assets/stylesheets/dvl/core/tables.scss
dvl-core-0.0.9 vendor/assets/stylesheets/dvl/core/tables.scss
dvl-core-0.0.8 vendor/assets/stylesheets/dvl/core/tables.scss
dvl-core-0.0.7 vendor/assets/stylesheets/dvl/core/tables.scss
dvl-core-0.0.6 vendor/assets/stylesheets/dvl/core/tables.scss
dvl-core-0.0.5 vendor/assets/stylesheets/dvl/core/tables.scss
dvl-core-0.0.4 vendor/assets/stylesheets/dvl/core/tables.scss