Sha256: 7ed0a2c7c34a0f6150c66eef9ed458eee277be5388bdc8526a6dc6886f30003e

Contents?: true

Size: 1.19 KB

Versions: 6

Compression:

Stored size: 1.19 KB

Contents

//
// Tables
//
// stylelint-disable max-nesting-depth, selector-no-type

table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: $sp-5;
  overflow-x: auto;
  border-collapse: separate;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07), 0 4px 14px rgba(0, 0, 0, 0.05);

  @include mq(sm) {
    display: table;
  }
}

th,
td {
  @include fs-3;
  min-width: 120px;
  padding-top: $sp-2;
  padding-right: $sp-3;
  padding-bottom: $sp-2;
  padding-left: $sp-3;
  border-bottom: $border $grey-lt-000;
  border-left: $border $border-color;

  &:first-of-type {
    border-left: 0;
  }
}

thead,
tbody:first-child {
  tr {
    &:first-of-type {
      th,
      td {
        &:first-of-type {
          border-top-left-radius: $border-radius;
        }

        &:last-of-type {
          border-top-right-radius: $border-radius;
        }
      }
    }
  }
}

tbody {
  tr {
    &:last-of-type {
      th,
      td {
        border-bottom: 0;

        &:first-of-type {
          border-bottom-left-radius: $border-radius;
        }

        &:last-of-type {
          border-bottom-right-radius: $border-radius;
        }
      }
    }
  }
}

thead {
  th {
    border-bottom: 1px solid $border-color;
  }
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
just-the-docs-0.1.5 _sass/tables.scss
just-the-docs-0.1.4 _sass/tables.scss
just-the-docs-0.1.3 _sass/tables.scss
just-the-docs-0.1.2 _sass/tables.scss
just-the-docs-0.1.1 _sass/tables.scss
just-the-docs-0.1.0 _sass/tables.scss