Skip to content
Snippets Groups Projects
hy-hero.scss 10.8 KiB
Newer Older
  • Learn to ignore specific revisions
  • Tuukka Turu's avatar
    Tuukka Turu committed
    :host {
      display: block;
    }
    
    .hy-hero {
    
      overflow: hidden;
      position: relative;
    
      @include breakpoint($extrawide) {
        margin-left: 8px;
        margin-right: 8px;
    
      }
    
      @include breakpoint($xlarge) {
        margin-left: 0;
        margin-right: 0;
    
      &--blue {
    
        .hy-hero__content-container,
        .hy-hero__spacer-box {
    
          background-color: var(--brand-main-light);
        }
    
        .hy-hero__title {
          &:not(.hy-hero__title--overlay) {
            span {
              color: var(--grayscale-white);
            }
    
          h1 {
            color: var(--grayscale-white);
          }
    
    Tuukka Turu's avatar
    Tuukka Turu committed
    
    
          &--overlay {
            span {
              background-color: var(--brand-main-light);
              box-shadow: 24px 0 0 var(--brand-main-light), -24px 0 0 var(--brand-main-light);
              color: var(--brand-main-light);
              display: inline;
              position: relative;
    
              @include breakpoint($narrow) {
                box-shadow: 48px 0 0 var(--brand-main-light), -48px 0 0 var(--brand-main-light);
              }
    
    
              @include breakpoint($wide) {
                box-shadow: 32px 0 0 var(--brand-main-light), 0 0 0 var(--brand-main-light);
              }
    
              @include breakpoint($extrawide) {
                box-shadow: 40px 0 0 var(--brand-main-light), 0 0 0 var(--brand-main-light);
              }
    
    Tuukka Turu's avatar
    Tuukka Turu committed
        }
    
    
        .hy-hero__description {
    
    Tuukka Turu's avatar
    Tuukka Turu committed
          background-color: var(--brand-main-light);
    
          color: var(--grayscale-white);
    
    Tuukka Turu's avatar
    Tuukka Turu committed
        }
      }
    
      &--black {
    
        .hy-hero__content-container,
        .hy-hero__spacer-box {
    
          background-color: var(--grayscale-black);
        }
    
    Tuukka Turu's avatar
    Tuukka Turu committed
    
    
        .hy-hero__title {
          &:not(.hy-hero__title--overlay) {
            span {
              color: var(--grayscale-white);
            }
          }
    
          h1 {
            color: var(--grayscale-white);
          }
    
          &--overlay {
            span {
              background-color: var(--grayscale-black);
              box-shadow: 24px 0 0 var(--grayscale-black), -24px 0 0 var(--grayscale-black);
              color: var(--grayscale-black);
              display: inline;
              position: relative;
    
              @include breakpoint($narrow) {
                box-shadow: 48px 0 0 var(--grayscale-black), -48px 0 0 var(--grayscale-black);
              }
    
    
              @include breakpoint($wide) {
                box-shadow: 32px 0 0 var(--grayscale-black), 0 0 0 var(--grayscale-black);
              }
    
              @include breakpoint($extrawide) {
                box-shadow: 40px 0 0 var(--grayscale-black), 0 0 0 var(--grayscale-black);
              }
    
    Tuukka Turu's avatar
    Tuukka Turu committed
        }
    
    
        .hy-hero__description {
    
    Tuukka Turu's avatar
    Tuukka Turu committed
          background-color: var(--grayscale-black);
          color: var(--grayscale-white);
        }
      }
    
      &--white {
    
        border-bottom: 1px solid rgba(16, 126, 171, 0.1);
        box-shadow: inset 0 -2rem 2rem -2rem rgba(14, 104, 139, 0.1);
        padding-bottom: 2rem;
    
        @include breakpoint($narrow) {
          box-shadow: inset 0 -40px 40px -40px rgba(14, 104, 139, 0.1);
          padding-bottom: 40px;
        }
    
        @include breakpoint($wide) {
          background-color: var(--grayscale-white);
          border-bottom: 1px solid rgba(16, 126, 171, 0.1);
          border-top: 1px solid rgba(16, 126, 171, 0.1);
          box-shadow: inset 0 -6px 6px -6px rgba(14, 104, 139, 0.1);
          padding: 6px 0;
        }
    
        @include breakpoint($extrawide) {
          box-shadow: inset 0 -6px 6px -6px rgba(14, 104, 139, 0.1), inset 0 6px 6px -6px rgba(14, 104, 139, 0.1);
          margin: 0;
        }
    
        @include breakpoint($xlarge) {
          box-shadow: inset 0 -12px 12px -12px rgba(14, 104, 139, 0.1), inset 0 12px 12px -12px rgba(14, 104, 139, 0.1);
          margin-left: -32px;
          margin-right: -32px;
          padding: 12px 0;
        }
    
        .hy-hero__content-container {
    
          @include breakpoint(max-width 959px) {
    
            padding-bottom: 0;
          }
    
          @include breakpoint($extrawide) {
            padding-left: 32px; // Original 24px + 8px
            padding-right: 8px;
          }
    
          @include breakpoint($xlarge) {
            padding-left: 0;
          }
        }
    
        .hy-hero__image-container {
          @include breakpoint($wide) {
            padding: 0;
          }
    
          @include breakpoint($extrawide) {
            padding-right: 8px;
          }
        }
    
    
        .hy-hero__content-container,
        .hy-hero__spacer-box {
    
          background-color: var(--grayscale-white);
        }
    
    Tuukka Turu's avatar
    Tuukka Turu committed
    
    
        .hy-hero__title {
          &:not(.hy-hero__title--overlay) {
            span {
              color: var(--grayscale-black);
            }
          }
    
          h1 {
            color: var(--grayscale-black);
          }
    
          &--overlay {
            span {
              background-color: var(--grayscale-white);
              box-shadow: 24px 0 0 var(--grayscale-white), -24px 0 0 var(--grayscale-white);
              color: var(--grayscale-white);
              display: inline;
              position: relative;
    
              @include breakpoint($narrow) {
                box-shadow: 48px 0 0 var(--grayscale-white), -48px 0 0 var(--grayscale-white);
              }
    
    
              @include breakpoint($wide) {
                box-shadow: 32px 0 0 var(--grayscale-white), 0 0 0 var(--grayscale-white);
              }
    
              @include breakpoint($extrawide) {
                box-shadow: 40px 0 0 var(--grayscale-white), 0 0 0 var(--grayscale-white);
              }
    
    Tuukka Turu's avatar
    Tuukka Turu committed
        }
    
    
        .hy-hero__description {
    
    Tuukka Turu's avatar
    Tuukka Turu committed
          background-color: var(--grayscale-white);
          color: var(--grayscale-black);
        }
    
    
      &--fp_white {
        border-bottom: 1px solid rgba(16, 126, 171, 0.1);
        box-shadow: inset 0 -2rem 2rem -2rem rgba(14, 104, 139, 0.1);
        padding-bottom: 2rem;
    
        @include breakpoint($narrow) {
          box-shadow: inset 0 -40px 40px -40px rgba(14, 104, 139, 0.1);
          padding-bottom: 40px;
        }
    
        @include breakpoint($wide) {
          border-top: 1px solid rgba(16, 126, 171, 0.1);
          padding: 0;
        }
    
        @include breakpoint($extrawide) {
          margin-left: -2rem;
          margin-right: -2rem;
          margin-top: 0;
        }
    
        @include breakpoint($xlarge) {
          margin-top: 0;
        }
    
        .hy-hero__content-container {
          @include breakpoint(max-width 959px) {
            padding-bottom: 0;
          }
    
          @include breakpoint($extrawide) {
            padding-left: 32px; // Original 24px + 8px
            padding-right: 8px;
          }
    
          @include breakpoint($xlarge) {
            padding-left: 0;
          }
        }
    
        .hy-hero__image-container {
          @include breakpoint($wide) {
            padding: 0;
          }
        }
    
        .hy-hero__spacer-box {
          @include breakpoint($wide) {
            box-shadow: inset 0 -20px 20px -20px rgba(14, 104, 139, 0.1), inset 0 20px 20px -20px rgba(14, 104, 139, 0.1);
          }
        }
    
        .hy-hero__content-container,
        .hy-hero__spacer-box {
          background-color: var(--grayscale-slightly-gray);
        }
    
        .hy-hero__title {
          &:not(.hy-hero__title--overlay) {
            span {
              color: var(--grayscale-black);
            }
          }
    
          h1 {
            color: var(--grayscale-black);
          }
    
          &--overlay {
            span {
              background-color: var(--grayscale-slightly-gray);
              box-shadow: 24px 0 0 var(--grayscale-slightly-gray), -24px 0 0 var(--grayscale-slightly-gray);
              color: var(--grayscale-slightly-gray);
              display: inline;
              position: relative;
    
              @include breakpoint($narrow) {
                box-shadow: 48px 0 0 var(--grayscale-slightly-gray), -48px 0 0 var(--grayscale-slightly-gray);
              }
    
              @include breakpoint($wide) {
                box-shadow: 32px 0 0 var(--grayscale-slightly-gray), 0 0 0 var(--grayscale-slightly-gray);
              }
    
              @include breakpoint($extrawide) {
                box-shadow: 40px 0 0 var(--grayscale-slightly-gray), 0 0 0 var(--grayscale-slightly-gray);
              }
            }
          }
        }
    
        .hy-hero__description {
          background-color: var(--grayscale-slightly-gray);
          color: var(--grayscale-black);
        }
      }
    
    Tuukka Turu's avatar
    Tuukka Turu committed
    
    
    .hy-hero__container {
      @include breakpoint($wide) {
        display: flex;
    
    .hy-hero__image-container {
      background-position: 50% 50%;
      background-size: cover;
      background: transparent;
      margin: 0;
      padding: 0;
      position: relative;
    
    Tuukka Turu's avatar
    Tuukka Turu committed
    
    
      @include breakpoint($wide) {
        background-color: var(--grayscale-white);
    
        order: 2;
        padding: 6px 0;
    
        position: absolute;
        right: 0;
        top: 0;
    
        width: 60%;
      }
    
    .hy-image__image {
      display: block;
      height: 100%;
      min-height: 205px;
      object-fit: cover;
      width: 100%;
    }
    
    .hy-hero__content-container {
    
      padding: 0 1rem 2rem;
    
    Tuukka Turu's avatar
    Tuukka Turu committed
    
    
      @include breakpoint($narrow) {
        padding: 0 2rem 40px;
    
    
      @include breakpoint($wide) {
    
        background-color: transparent !important;
    
        display: flex;
        flex-direction: column;
        justify-content: center;
    
        position: relative;
    
      }
    
      @include breakpoint($extrawide) {
    
      @include breakpoint($overwide) {
        min-height: 450px;
      }
    
    
      @include breakpoint($xlarge) {
        max-width: 1216px;
    
        padding: 80px 0;
      }
    
    
      @include breakpoint($fullhd) {
        min-height: 600px;
      }
    
    .hy-hero__spacer-box {
      display: none;
    
    
      @include breakpoint($wide) {
    
        bottom: 0;
        display: block;
        left: 0;
        order: 1;
        position: absolute;
        top: 0;
        width: 40%;
    
    Tuukka Turu's avatar
    Tuukka Turu committed
    
    
    .hy-hero__title-container {
      position: relative;
    
    Tuukka Turu's avatar
    Tuukka Turu committed
    }
    
    
    .hy-hero__title {
      &:not(.hy-hero__title--overlay) {
        position: relative;
        z-index: 10;
    
        span {
          color: var(--grayscale-black);
    
    Tuukka Turu's avatar
    Tuukka Turu committed
    
    
      h1 {
        display: inline-block !important;
    
        margin-bottom: 12px !important;
    
        max-width: 100%;
    
    Tuukka Turu's avatar
    Tuukka Turu committed
    
        @include breakpoint($narrow) {
    
          margin-bottom: 16px !important;
    
          max-width: 87% !important;
    
    Tuukka Turu's avatar
    Tuukka Turu committed
        }
    
    
        @include breakpoint($wide) {
    
          margin-bottom: 0 !important;
    
          max-width: 48.75% !important;
    
          padding-top: 24px;
    
    
          @include breakpoint($narrow) {
    
            padding-top: 40px;
    
    
          @include breakpoint($wide) {
            padding-bottom: 28px;
            padding-top: 24px;
          }
    
          @include breakpoint($extrawide) {
    
            padding-bottom: 36px;
            padding-top: 30px;
    
    Tuukka Turu's avatar
    Tuukka Turu committed
        }
      }
    
    
      &--overlay {
    
        left: 0;
        position: absolute;
        top: 0;
    
    Tuukka Turu's avatar
    Tuukka Turu committed
    
    
        span {
          display: inline;
          position: relative;
        }
    
    Tuukka Turu's avatar
    Tuukka Turu committed
      }
    }
    
    
    // TODO: Update this to use styles straight from DSLIB (Ingress).
    
    .hy-hero__description {
    
      @include font-size(16px);
    
      color: var(--grayscale-black);
      font-family: var(--main-font-family);
      font-weight: 600;
      letter-spacing: -0.1px;
    
      line-height: 22px;
    
      margin: 0;
    
      padding: 0;
    
      position: relative;
    
    Tuukka Turu's avatar
    Tuukka Turu committed
    
      @include breakpoint($narrow) {
    
        line-height: 24px;
    
    Tuukka Turu's avatar
    Tuukka Turu committed
      }
    
      @include breakpoint($wide) {
    
        margin-top: -8px;
    
        padding: 16px 40px 20px 0;
    
    Tuukka Turu's avatar
    Tuukka Turu committed
      }
    
    Tuukka Turu's avatar
    Tuukka Turu committed
      @include breakpoint($extrawide) {
    
        @include font-size(18px);
        letter-spacing: -0.16px;
        line-height: 26px;
        max-width: 40.13%;
    
        padding: 28px 40px 32px 0;
    
    Tuukka Turu's avatar
    Tuukka Turu committed
    }
    
    .hy-hero__actions {
      margin-top: 20px;
    
      @include breakpoint($narrow) {
        margin-top: 24px;
      }
    
      @include breakpoint($wide) {
        margin-top: 0;
      }
    }