Newer
Older
vmk-ui-kit / src / scss / components / _step-card.scss
@Eugene Sukhodolskiy Eugene Sukhodolskiy 19 hours ago 2 KB so many changes
/* =========================
   Step Card
   Figma: Card - Step.
   Vertical card with a step badge, title, description and a bottom action.
========================= */

@use "../kit-deps" as *;

.step-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 420px;
  padding: $space-5;
  border: $border-width-base $border-style-base $neutral-200;
  border-radius: $radius-xl;
  background-color: $neutral-0;
  color: $neutral-900;
  text-align: left;

  &__badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    padding: $space-1 $space-3;
    border: 1px solid $lavender-200;
    border-radius: $radius-full;
    background-color: $lavender-50;
    color: $lavender-700;
    font-size: $font-size-sm;
    font-weight: $font-weight-semibold;
    margin-bottom: $space-6;
  }

  &__title {
    margin: -0.2em 0 calc($space-3 - 0.2em);
    padding: 0;
    font-size: $font-size-xl;
    font-weight: $font-weight-bold;
    line-height: 1;
    color: $neutral-900;
  }

  &__description {
    margin: 0 0 $space-6;
    color: $neutral-500;
    font-size: $font-size-md;
    line-height: $line-height-normal;
  }

  &__action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: $space-2;
    width: 100%;
    margin-top: auto;
    padding: $space-3 $space-5;
    border: $border-width-base $border-style-base $neutral-200;
    border-radius: $radius-xl;
    background-color: $neutral-0;
    color: $neutral-900;
    font-family: inherit;
    font-size: $font-size-md;
    font-weight: $font-weight-semibold;
    line-height: $line-height-normal;
    text-decoration: none;
    cursor: pointer;
    transition:
      background-color $motion-base $motion-ease,
      border-color $motion-base $motion-ease;

    &:hover {
      background-color: $neutral-50;
      border-color: $neutral-300;
    }

    &:focus-visible {
      @include focus_ring;
    }

    &--done {
      color: $success-text;
    }

    .ph,
    .vmk-icon {
      width: 20px;
      height: 20px;
    }
  }
}