Sha256: 249535f406dd5a60649fe9e68631b7197bce69aaae24817551435507c43d734f

Contents?: true

Size: 1.42 KB

Versions: 8

Compression:

Stored size: 1.42 KB

Contents

@import 'tao/ui/globals';
@import 'tao/ui/shared/tables';

table.table {
  tbody tr:hover {
    background-color: $table-row-hover-color;
  }
}

.tao-table {
  .table {
    table-layout: fixed;
  }

  .th-checkbox,
  .td-checkbox {
    display: none;
    width: 2.5rem;
    padding: 0;
    text-align: center;
  }

  &[selectable] {
    .th-checkbox,
    .td-checkbox {
      display: table-cell;
    }
  }

  .th-expand-icon,
  .td-expand-icon {
    display: none;
    width: 2.5rem;
    padding: 0;
    text-align: center;
  }

  &[expandable] {

    .th-expand-icon,
    .td-expand-icon {
      display: table-cell;

      .icon {
        width: 1rem;
        height: 1rem;
        transition: transform 200ms;
      }
    }

    tr.expandable {
      .td-expand-icon .icon {
        fill: $lighter-grey-color;
      }

      &:hover .td-expand-icon .icon {
        fill: $grey-color;
      }
    }

    tr.expanded {
      border-bottom-color: transparent;

      .th-expand-icon,
      .td-expand-icon {
        .icon {
          transform: rotate(90deg);
        }
      }
    }

    tr.expandable-panel {
      display: none;
      background: $grey-bg-color;

      & > td  {
        padding: 0;
        box-shadow: inset 0 8px 10px -8px rgba(184, 184, 184, 0.8);

        & > div:first-child {
          padding: 1.5rem 2rem;
          height: 0;
          transition: height 200ms linear;
          overflow-y: hidden;
        }
      }
    }
  }
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
tao_ui-0.3.4 lib/assets/stylesheets/tao/ui/tables.scss
tao_ui-0.3.3 lib/assets/stylesheets/tao/ui/tables.scss
tao_ui-0.3.2 lib/assets/stylesheets/tao/ui/tables.scss
tao_ui-0.3.1 lib/assets/stylesheets/tao/ui/tables.scss
tao_ui-0.3.0 lib/assets/stylesheets/tao/ui/tables.scss
tao_ui-0.2.10 lib/assets/stylesheets/tao/ui/tables.scss
tao_ui-0.2.9 lib/assets/stylesheets/tao/ui/tables.scss
tao_ui-0.2.8 lib/assets/stylesheets/tao/ui/tables.scss