Sha256: 7d5ca21b6c315c6125cd5f3ce644a39d744ecf1286a8bfdfe328b17161ce2230

Contents?: true

Size: 1.52 KB

Versions: 5

Compression:

Stored size: 1.52 KB

Contents

@import "active_admin/mixins";

// ----------------------------------- 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

5 entries across 5 versions & 1 rubygems

Version Path
andrewroth_activeadmin-0.3.4.4 app/assets/stylesheets/active_admin/components/_tables.css.scss
andrewroth_activeadmin-0.3.4.3 app/assets/stylesheets/active_admin/components/_tables.css.scss
andrewroth_activeadmin-0.3.4.2 app/assets/stylesheets/active_admin/components/_tables.css.scss
andrewroth_activeadmin-0.3.4.1 app/assets/stylesheets/active_admin/components/_tables.css.scss
andrewroth_activeadmin-0.3.4 app/assets/stylesheets/active_admin/components/_tables.css.scss