Sha256: 226a6608b7b3866fd3762da2e6303a354ce0002b553ee6f745a14d5566c60308

Contents?: true

Size: 1.32 KB

Versions: 6

Compression:

Stored size: 1.32 KB

Contents

// Example of a more complex table
// ---

@if $table-experimental {
  %with-sort-arrow {
    @include respond-to(small-tablet, true) {
      position: relative;
      margin-right: .4em;

      &:after {
        position: absolute;
        top: 50%;
        right: -1.2em;
        display: none;
        margin-top: -.4em;
        line-height: 1;
        color: $table-c-inactive;
        content: "\025bc";
      }
    }
  }

  .us-table-cell-sorted {
    @include respond-to(small-tablet, true) {
      background: $table-c-sorted-bg;
    }
  }

  %us-table-head-text,
  .us-table-head-text {
    @extend %with-sort-arrow;
    display: inline-block;
    line-height: normal;
    vertical-align: baseline;
  }

  .us-table-sort-button,
  .us-table-sort-button:visited {
    @extend %us-table-head-text;

    @include respond-to(small-tablet, true) {
      color: $table-c-head-text;
      cursor: default;

      .js .js-sortable & {
        cursor: pointer;

        &:after {
          display: block;
        }

        &:hover {
          color: $table-c-head-text;
        }

        &:hover:after {
          color: $table-c-head-text;
        }
      }
    }
  }

  .us-table-head-sorted {
    .us-table-sort-button,
    .us-table-head-text {
      &:after {
        display: block;
        color: $table-c-head-text;
      }
    }
  }
}

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
reustyle-2.0.11 vendor/assets/stylesheets/reustyle/tables/_tables-sortable.scss
reustyle-2.0.10 vendor/assets/stylesheets/ustyle/tables/_tables-sortable.scss
reustyle-2.0.9 vendor/assets/stylesheets/ustyle/tables/_tables-sortable.scss
reustyle-2.0.8 vendor/assets/stylesheets/ustyle/tables/_tables-sortable.scss
reustyle-2.0.7 vendor/assets/stylesheets/ustyle/tables/_tables-sortable.scss
ustyle-1.19.2 vendor/assets/stylesheets/ustyle/tables/_tables-sortable.scss