Sha256: 661a2db515adefa96921271d29e8ba3a24dc5dc3b36a554c47b4ec43c4ee69fd

Contents?: true

Size: 1.55 KB

Versions: 3

Compression:

Stored size: 1.55 KB

Contents

.table-container {
  overflow-x: auto;

  // Momentum scrolling (touch) causes rendering issues on iOS with the
  // scrolling background hints. Must be disabled explicitly.
  -webkit-overflow-scrolling: auto;

  background-image: linear-gradient(to right, white 30%, rgba(white, 0)),
                    linear-gradient(to left, white 30%, rgba(white, 0)),
                    radial-gradient(at 0 50%, rgba(black, 0.2), rgba(black, 0) 70%),
                    radial-gradient(at 100% 50%, rgba(black, 0.2), rgba(black, 0) 70%);
  background-position: 0 0, 100% 0, 0 0, 100% 0;
  background-repeat: no-repeat;
  background-color: white;
  background-size: 50px 100%, 50px 100%, 15px 100%, 15px 100%;
  background-attachment: local, local, scroll, scroll;
}

.trestle-table {
  @extend .table;
  @extend .table-striped;
  @extend .table-hover;

  margin-bottom: 0;

  > thead, > tbody, > tfoot {
    > tr > td, > tr > td {
      vertical-align: middle;
    }
  }

  tr[data-url] {
    cursor: pointer;
  }

  th, a {
    white-space: nowrap;

    &.wrap {
      white-space: normal;
    }
  }

  tbody a {
    font-weight: normal;
  }

  .select-row {
    width: 2.5em;
    text-align: center;
  }

  .actions {
    text-align: right;
    white-space: nowrap;

    .btn {
      @extend .btn-sm;
      padding: 5px 7px;
      line-height: 1;

      i {
        font-size: 14px;

        width: (18em / 14);
        text-align: center;
      }

      & + .btn {
        margin-left: 4px;
      }
    }
  }

  .avatar {
    width: 32px;
    height: 32px;
    vertical-align: middle;
  }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
trestle-0.8.3 app/assets/stylesheets/trestle/components/_table.scss
trestle-0.8.2 app/assets/stylesheets/trestle/components/_table.scss
trestle-0.8.0 app/assets/stylesheets/trestle/components/_table.scss