@import "../../themes/mixins";

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

:host {
  /**
   * @prop --background: Background of the card
   * @prop --color: Color of the card
   * @prop --border-radius: Border radius of the card
   */
  --ion-safe-area-left: 0px;
  --ion-safe-area-right: 0px;

  @include border-radius(var(--border-radius));
  @include font-smoothing();

  display: block;
  position: relative;

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

  contain: content;

  overflow: hidden;
}

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

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

button,
a {
  cursor: pointer;
  user-select: none;

  -webkit-user-drag: none;
}

// Card Button Ripple effect
// --------------------------------------------------

ion-ripple-effect {
  color: var(--ripple-color);
}
