Skip to content
Snippets Groups Projects
process-flow-box.scss 3.63 KiB
Newer Older
:host {
  display: block;
}

.hy-process-flow-box {
  height: calc(100% - 32px);
  position: relative;

  .step {
    top: -35px;
    bottom: unset;
    display: grid;
    height: 82px;
    place-items: center;
    position: absolute;
    width: 138px;
    z-index: 1;

    @include breakpoint($medium) {
      top: unset;
      bottom: -68px;
      display: grid;
      height: 72px;
      width: 200px;
    }

    svg polygon {
      fill: white;
      stroke: var(--brand-main);
      stroke-width: 1;
    }
    svg.mobile {
      display: block;
      @include breakpoint($medium) {
        display: none;
      }
    }
    svg.desktop {
      display: none;
      @include breakpoint($medium) {
        display: block;
      }
    }
  }

  /*
  .first.step {
    left: calc(50% - 69px + 16px);
    @include breakpoint($medium) {
      left: unset;
    }
    @include breakpoint($wide) {
      left: 0;
    }
  }

  :not(.first).step {
    left: calc(50% - 69px + 16px);
    @include breakpoint($medium) {
      left: unset;
    }
    @include breakpoint($wide) {
      left: -90px;
    }
  }
  */


  .first.even.step {
    left: calc(50% - 69px + 16px);
    @include breakpoint($medium) {
      left: -90px;
    }
    @include breakpoint($wide) {
      left: 0;
    }
  }
  .first.odd.step {
    left: calc(50% - 69px + 16px);
    @include breakpoint($medium) {
      left: 0;
    }
    @include breakpoint($wide) {
      left: 0;
    }
  }

  :not(.first).even.step {
    left: calc(50% - 69px + 16px);
    @include breakpoint($medium) {
      left: -90px;
    }
    @include breakpoint($wide) {
      left: -90px;
    }
  }
  :not(.first).odd.step {
    left: calc(50% - 69px + 16px);
    @include breakpoint($medium) {
      left: 0;
    }
    @include breakpoint($wide) {
      left: -90px;
    }
  }

  &__step {
    background-color: transparent;
    color: var(--grayscale-black);
    font-family: "Open Sans";
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 22px;
    padding: 19px 17px;
    position: absolute;
    text-align: center;
    z-index: 11;
    @include breakpoint($medium) {
      padding: 13px 40px 13px 23px;
      text-align: left;
    }
  }

  .number {
    display: grid;
    height: 64px;
    place-items: center;
    position: relative;
    width: 64px;
    z-index: 2;
  }
  &__number {
    margin: 0;
    padding: 0;
    background-color: white;
    border: 3px solid var(--brand-main);
    border-radius: 50%;
    color: var(--brand-main);
    display: grid;
    height: 54px;
    font-family: "Open Sans";
    font-size: 36px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 49px;
    place-items: center;
    position: relative;
    width: 54px;
    &::after {
      border-radius: 50%;
      border: 3px solid white;
      content: "";
      height: 54px;
      left: -6px;
      position: absolute;
      width: 54px;
    }
  }
  .content.small {
    padding: 16px 32px;
    padding-bottom: 64px;
    @include breakpoint($wide) {
      padding: 16px;
      padding-bottom: 64px;
    }
  }
  .content.big {
    padding: 16px 32px;
    padding-bottom: 64px;
  }
  .content {
    $border-color: var(--brand-main);
    @include border-without-corners($border-color, 1px);
    height: 100%;
    margin-left: 32px;
    margin-top: -32px;
    position: relative;
  }
  &__title {
    color: var(--brand-main-nearly-black);
    font-family: "Open Sans";
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.82px;
    line-height: 32px;
    margin-bottom: 16px;
  }

  &__description {
    color: var(--grayscale-dark);
    font-family: "Open Sans";
    font-size: 16px;
    letter-spacing: 0;
    line-height: 24px;
  }
}