Sha256: 361a0a80811bb5b8f2ac3f9ef14d2838f4b234cb58f31ad4284660ad2ac081e4

Contents?: true

Size: 1.94 KB

Versions: 1

Compression:

Stored size: 1.94 KB

Contents

//Override Foundation defaults
.table-scroll table{
  border-collapse: unset;
  width: 100%;
}

//Table list
.table-list{
  border-collapse: collapse;
  border-spacing: 0;

  th{
    text-transform: uppercase;
  }

  th,
  td{
    border-bottom: 1px solid rgba(black, .05);
  }

  th:not(:first-child),
  td:not(:first-child){
    text-align: center;
  }

  th:first-child,
  td:first-child{
    padding-left: $global-padding;
  }

  th:last-child,
  td:last-child{
    padding-right: $global-padding;
    text-align: right;
  }

  th [type="checkbox"]:only-child,
  td [type="checkbox"]:only-child{
    margin-bottom: .5rem;
  }

  &.table-list--lastcenter{
    th:last-child,
    td:last-child{
      text-align: center;
    }
  }

  &.table-list--lastleft{
    th:last-child,
    td:last-child{
      text-align: left;
    }
  }

  &.table-list--selectable{
    th:nth-child(2),
    td:nth-child(2){
      text-align: left;
    }
  }

  tr.selected{
    background-color: rgba($brand, .05);
  }

  a:not(.button){
    color: $body-font-color;

    &:hover{
      color: $primary-color;
    }
  }

  td > .button{
    margin-bottom: 0;
  }

  td{
    @include modifiers(color, (muted: $muted));
  }

  .switch.tiny{
    margin: 0 auto;
    width: 48px;
  }
}

.table-list__actions{
  text-align: center;
  white-space: nowrap;

  &:last-child{
    text-align: right;
  }

  .action-icon,
  a.action-icon{
    color: $muted;
  }

  .action-icon,
  a.action-icon.highlighted{
    color: $body-font-color;

    &:hover{
      color: $primary-color;
    }
  }

  .action-icon.action-icon--remove{
    color: $alert-color;
  }
}

.table-list__state{
  text-align: center;
}

.table-list__type-icon{
  position: relative;
  top: 1px;
  cursor: pointer;
}

.table-list__type-label{
  display: none;
  position: relative;
  top: -1px;
  margin-left: -1.5 * $global-padding;
  font-size: 80%;
  font-weight: 600;
  text-transform: uppercase;

  &.expanded{
    display: inline-block;
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
decidim-admin-0.21.0 app/assets/stylesheets/decidim/admin/modules/_table-list.scss