/* ------------------------------------------------------------------------ *\
   mixins.element.table
\* ------------------------------------------------------------------------ */


/**
 * [table description]
 * @return {[type]} [description]
 */
e-table()
  display: flex
  flex-wrap: wrap
  width: 100%
  margin: 0
  padding: 0
  border-collapse: collapse
  border-spacing: 0


/**
 * [table__caption description]
 * @return {[type]} [description]
 */
e-table__caption()
  u-padding--horizontal--sm()
  e-text--quiet()
  display: flex
  flex: 0 0 100%
  max-width: 100%
  font-size: nix.text.font.size * .9
  text-align: left


/**
 * [table__row description]
 * @return {[type]} [description]
 */
e-table__row()
  display: flex
  flex-wrap: wrap
  flex: 0 0 100%
  max-width: 100%


/**
 * [striped description]
 * @return {[type]} [description]
 */
e-table__row--striped()
  background-color: nix.skin.color.grey--light


/**
 * [table__cell description]
 * @return {[type]} [description]
 */
e-table__cell()
  u-padding--all--sm()
  display: flex
  flex: 1
  text-align: left
  overflow: auto


/**
 * [table__heading description]
 * @return {[type]} [description]
 */
e-table__heading()
  e-heading--xs()
  display: flex
  flex: 1
  font-weight: bold
  background-color: nix.skin.color.gray--light
  border-bottom: 1px solid nix.skin.color.gray


/**
 * [striped description]
 * @return {[type]} [description]
 */
e-table__heading--striped()
  background-color: initial


/**
 * [clickable description]
 * @return {[type]} [description]
 */
e-table-clickable()
  color: nix.skin.color.primary
  cursor: pointer


/**
 * [inactive description]
 * @return {[type]} [description]
 */
e-table--inactive()
  e-text--quiet()
  cursor: default


/**
 * [inactive description]
 * @return {[type]} [description]
 */
e-table--clickable--inactive()
  e-text--quiet()
  cursor: not-allowed


/**
 * [condensed description]
 * @return {[type]} [description]
 */
e-table--condensed()
  font-size: nix.text.font.size * .9


/**
 * [condensed description]
 * @return {[type]} [description]
 */
e-table__cell--condensed()
  u-padding--all--xs()
