//
// Copyright IBM Corp. 2019
//
// This source code is licensed under the Apache-2.0 license found in the
// LICENSE file in the root directory of this source tree.
//

//
// "Compact" table size variant
//

:host(#{$prefix}-table-head) ::slotted(#{$prefix}-table-header-row[size='compact']),
:host(#{$prefix}-table-body) ::slotted(#{$prefix}-table-row[size='compact']) {
  height: rem(24px);
}

:host(#{$prefix}-table-row[size='compact']) {
  ::slotted(#{$prefix}-table-cell),
  ::slotted(#{$prefix}-table-cell-skeleton) {
    padding-top: rem(2px);
    padding-bottom: rem(2px);
  }
}

//
// "Short" table size variant
//

:host(#{$prefix}-table-head) ::slotted(#{$prefix}-table-header-row[size='short']),
:host(#{$prefix}-table-body) ::slotted(#{$prefix}-table-row[size='short']) {
  height: rem(32px);
}

:host(#{$prefix}-table-row[size='short']) {
  ::slotted(#{$prefix}-table-cell),
  ::slotted(#{$prefix}-table-cell-skeleton) {
    padding-top: rem(7px);
    padding-bottom: rem(6px);
  }
}

//
// "Tall" table size variant
//

:host(#{$prefix}-table-head) ::slotted(#{$prefix}-table-header-row[size='tall']),
:host(#{$prefix}-table-body) ::slotted(#{$prefix}-table-row[size='tall']) {
  height: rem(64px);
}

:host(#{$prefix}-table-row[size='tall']) {
  ::slotted(#{$prefix}-table-cell),
  ::slotted(#{$prefix}-table-cell-skeleton) {
    padding-top: rem(16px);
  }
}
