@import "../../themes/ionic.globals";

// Card
// --------------------------------------------------

:host {
  /**
   * @prop --background: Background of the card
   * @prop --color: Color of the card
   */

  @include font-smoothing();

  display: block;
  position: relative;

  background: var(--background);
  color: var(--color);

  overflow: hidden;
}

// Card Colors
// ---------------------------------------------

:host(.ion-color) {
  background: current-color(base);
  color: current-color(contrast);
}

:host(.ion-color)::slotted(*) ion-card-title,
:host(.ion-color)::slotted(*) ion-card-subtitle {
  color: currentColor;
}

// Slotted Content
// ---------------------------------------------

::slotted(*) img {
  display: block;

  width: 100%;
}

::slotted(*) ion-list {
  @include margin(0);
}
