Skip to content
Snippets Groups Projects
hy-key-highlight.scss 1.85 KiB
Newer Older
  display: block;
  margin-bottom: 20px;
  width: 100%;

  @include breakpoint($medium) {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  &__title__container {
    margin-bottom: 10px;
    position: relative;
    text-align: center;

    @include breakpoint($medium) {
      text-align: left;
Ekaterina Kondareva's avatar
Ekaterina Kondareva committed
    }
Ekaterina Kondareva's avatar
Ekaterina Kondareva committed

  &__title,
  &__overlay {
    box-decoration-break: clone;
    color: var(--grayscale-white);
    display: inline;
    font-weight: 600;
    letter-spacing: -0.75px;
    padding: 4px 10px;
    position: relative;
    text-align: center;
    z-index: 1;

    @include breakpoint($medium) {
      text-align: left;
    }
  }

  &__overlay--container {
    left: 50%;
    transform: translate(-50%, 0);
    opacity: 0.9;
    position: absolute;
    top: 0;
    width: 100%;

    @include breakpoint($medium) {
      left: 0;
      transform: none;
    }
  }

  &__overlay {
    background: var(--brand-main-light);
    color: transparent !important;
    margin-bottom: 0;
  }

  &__description {
    text-align: center;

    @include breakpoint($medium) {
      color: var(--grayscale-dark);
      font-family: var(--main-font-family);
      letter-spacing: 0;
      text-align: left;
    }
    .hy-key-highlight__title__container {
      font-size: 24px;
      line-height: 24px;
    }
    .hy-key-highlight__description {
      font-size: 14px;
      line-height: 20px;
    }
  }
    .hy-key-highlight__title__container {
      font-size: 24px;
      line-height: 24px;

      @include breakpoint($medium) {
Ekaterina Kondareva's avatar
Ekaterina Kondareva committed
        font-size: 40px;
        line-height: 40px;
      }
      font-size: 14px;

      @include breakpoint($medium) {
        line-height: 20px;
        font-size: 20px;
      }