Sha256: e893a9a3780ed86fb8a0953edea82e7cc6684c36d5810dfed51daa909fa77e9a

Contents?: true

Size: 1.49 KB

Versions: 3

Compression:

Stored size: 1.49 KB

Contents

// ----------------------------------- Tables 

table tr {
  td {
    vertical-align: top;
  }
}

// --------- Index Tables 

table.index_table {
  width: 100%;
  margin-bottom: 10px;
  border: 0;
  border-spacing: 0;

  th { 
    @include section-header;
    text-align: left;
    padding-left: $cell-horizontal-padding;
    padding-right: $cell-horizontal-padding;

    a, a:link, a:visited {
      color: $section-header-text-color;
      text-decoration: none;
      display: block;
    }

    &.sortable a {
      background: url(active_admin_image_path('orderable.png')) no-repeat 0 4px; padding-left: 13px;
    }

    &.sorted-asc a { background-position: 0 -27px; }
    &.sorted-desc a {  background-position: 0 -56px;}

    &.sorted-asc, &.sorted-desc {
      @include gradient(darken($secondary-gradient-start, 5%), darken($secondary-gradient-stop, 5%));
      border-bottom: 1px solid $secondary-gradient-stop;
    }
  }

  tr.even td { background: $table-stripe-color; }

  td {
    padding: 10px $cell-horizontal-padding 8px $cell-horizontal-padding;
    border-bottom: 1px solid #e8e8e8;
    vertical-align: top;
  }
}

// --------- Tables inside Panels

.panel_contents table {
  margin-top: 5px;
  th { 
    padding-top: 10px;
    background: none;
    color: $primary-color;
    @include no-shadow;
    @include text-shadow;
    text-transform: uppercase;
    border-bottom: 1px solid #ccc;
  }
  tr.odd td { background: darken($table-stripe-color, 3%); }
  tr.even td { background: $table-stripe-color; }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
activeadmin-0.3.4 app/assets/stylesheets/active_admin/components/_tables.css.scss
activeadmin-0.3.3 app/assets/stylesheets/active_admin/components/_tables.css.scss
activeadmin-0.3.2 app/assets/stylesheets/active_admin/components/_tables.css.scss