<div class="hero hero__search">
    <div class="hero__content__container">
        <div class="hero__content text--center">
            <h1 class="hero__search--title">- SEARCH -</h1>
            <div class="hero__search--form">
                <form class="search__press-releases__form">

                    <div class="form__item__wrapper form__item--inline">
                        <div class="input-field"><input class="browser-default form__item form__item--text form__item--inverted " type="text" name="Text Inverted" placeholder=" Search"></div>
                    </div>

                    <div class="form__item__wrapper form__item--inline">
                        <div class="input-field">
                            <button class="btn btn-large btn--inverted form__item">Search</button>
                        </div>
                    </div>

                </form>
            </div>
        </div>
    </div>
</div>
{% extends '@hero--search' %}
  {% block fields %}
    <div class="form__item__wrapper form__item--inline">{% render '@input--text-inverted', { placeholder: "Search" }, true %}</div>
  {% endblock %}
{
  "title": "- SEARCH -",
  "sendButton": "Search",
  "resetButton": null,
  "years": "January 22, 2018"
}
  • Content:
    .hero {
      position: relative;
      overflow: hidden;
    }
    
    .hero__background-image__container {
      width: 100%;
      height: 100%;
      position: absolute;
    
      .hero__background-image {
        width: 100%;
        height: 100%;
        position: absolute;
        background: $primary;
    
        &--blur{
          filter: blur(5px);
        }
      }
    
      .hero__background-filter {
        width: 100%;
        height: 100%;
        position: absolute;
        background-color: rgba(0,0,0,0.45);
        opacity: .9;
    
      }
    }
    
    .hero__content__container {
      max-width: $container-xl;
      margin: auto;
      position: relative;
      min-height: 375px;
      padding: $spacer;
      display: flex;
    
      .hero__content {
        max-width: $container-md;
        margin: 0 auto;
        align-self: center;
    
        .hero__title {
          color: $white;
          margin-bottom: 0;
          line-height: $line-height-sm;
        }
    
        .hero__description {
          margin-top: $space-md;
          color: $white;
          font-weight: $font-weight-light;
          line-height: $line-height-lg;
        }
    
        .hero__cta {
          margin-top: $space-md;
    
          &--share {
    
            margin: 3.5rem 0 1.5rem;
    
            @include mq-only($breakpoint-mob) {
              display: flex;
              flex-wrap: wrap;
              justify-content: space-around;
              margin: $space-md 0;
            }
          }
    
          & > * {
            display: inline-block;
            vertical-align: middle;
          }
    
          .social-share {
            margin: 0 $space-xs $space-md;
    
            @include mq($breakpoint-lg) {
              margin: 0 0 $space-md;
            }
          }
    
          a.btn--download {
            align-items: center;
            align-content: center;
            box-sizing: border-box;
            display: inline-flex;
            font-weight: $font-weight-normal;
            justify-content: center;
            line-height: normal;
    
            & > * {
              display: inline-block;
              vertical-align: middle;
            }
    
            .icon {
              fill: $white;
              height: 1.5rem;
              margin-right: $space-xs;
              width: 1.5rem;
            }
          }
    
          a.btn--download,
          button.btn--download {
            height: 55px;
            letter-spacing: .3em;
            margin: 0 $space-xs $space-md;
            width: 200px;
    
            @include mq($breakpoint-lg) {
              margin: 0 $space-md $space-md 0;
            }
          }
    
          button.btn--call-to-action {
            margin-bottom: $spacer;
            @include mq-only($breakpoint-mob) {
              width: 100%;
            }
          }
        }
      }
    }
    
    .hero__blog {
      .hero__content__container {
        flex-direction: column;
        justify-content: flex-end;
        max-width: $breakpoint-xxl;
        min-height: 82vh;
        padding: $space-xl $space-md;
    
        @include mq($breakpoint-lg) {
          align-items: stretch;
          display: grid;
          flex-direction: row;
          grid-template-columns: 2fr 6fr;
          grid-template-rows: 25vw;
          min-height: 25vw;
          padding: $space-md;
    
          & > div {
            padding: 0 $space-lg;
    
            &:first-child {
              flex-basis: calc(25% - 2.5rem);
            }
    
            &:last-child {
              flex-basis: calc(75% - 2.5rem);
              -ms-grid-column: 2;
            }
          }
        }
    
        .hero__title {
          margin-bottom: $space-md;
        }
    
        .hero__content {
          align-self: end;
          max-width: 100%;
          margin: 0;
        }
      }
    }
    
    .hero__research,
    .press_release {
      .hero__content__container {
        .hero__title {
          margin-bottom: $space-md;
        }
      }
    }
    
    .hero__date {
      color: $white;
      font-weight: $font-weight-base;
    
      & > * {
        display: inline-block;
        vertical-align: middle;
      }
    
      .icon {
        fill: $white;
        display: inline-block;
        padding: 0 $space-xs 0 0;
        vertical-align: middle;
      }
    }
    
    .hero_image--right {
    
      .hero__content__container {
        @include mq-only($breakpoint-mob) {
          display: grid;
          padding: $space-big $space-md;
        }
      }
    
      .hero__content {
        @include mq-only($breakpoint-mob) {
          display: grid;
          order: 1;
        }
      }
    
      .hero__title {
        @include mq-only($breakpoint-mob) {
          order: 1;
          text-align: center;
        }
      }
    }
    
    .hero--default {
      display: flex;
    }
    
    .hero__with_topic {
      display: flex;
    
      .hero__background-image__container {
        .hero__background-image {
          background-size: cover !important;
    
          @include mq($breakpoint-lg) {
            background-position: center;
          }
        }
      }
    
      .hero__content__container {
        @include mq-only($breakpoint-mob) {
          height: 90vh;
        }
    
        .hero__content {
          .hero__title {
            @include mq-only($breakpoint-mob) {
              font-size: 2.5rem;
            }
          }
        }
      }
    
      .hero__topic {
        color: $white;
        letter-spacing: .1em;
    
        &::after,
        &::before {
          content: '-';
          padding: $space-sm;
        }
      }
    }
    
    .hero__pdf-cover {
      text-align: center;
      position: relative;
      top: 0;
    
      @include mq($breakpoint-lg) {
        top: 100px;
      }
    
      img {
        box-shadow: 0 0 33px 0 rgba(0,0,0,0.6);
        max-width: 350px;
        width: 100%;
      }
    }
    
    .hero__search {
      background: $primary;
      display: flex;
    
      &--title{
        color: $white;
        font-size: $font-size-base;
        letter-spacing: $space-xs;
        margin-bottom: $space-xl;
      }
    
      .search__press-releases__form {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
      }
    
      .form__item--text {
        width: 200px;
    
        @include mq($breakpoint-xl) {
          width: 300px;
        }
      }
    
      .hero__content__container {
        min-height: 300px;
    
        @include mq-only($breakpoint-mob) {
          padding: $space-md 0;
        }
      }
    
      .btn {
        &:focus {
          background-color: $primary-light;
        }
      }
    }
    
    .hero--sidebar {
      width: $sidebar-width-mob;
      overflow: hidden;
    
      @include mq-only(320px) {
        width: 300px;
      }
    
      @include mq($breakpoint-lg) {
        width: $sidebar-width;
      }
    
      .hero__content__container {
        min-height: 250px;
        padding: $space-lg;
    
        @include mq($breakpoint-lg) {
          min-height: 17vw;
        }
      }
    
      .hero__title {
        text-align: left;
        font-size: $font-size-xl;
      }
    
      .hero__description {
        display: none;
      }
    }
    
    .hero--section-header {
      max-height: 120px;
      background-color: $secondary;
    
      .svg_image {
        position: absolute;
        top: -50px;
        right: -130px;
      }
    }
    
    .page__blogs,
    .page__our-story,
    .researches {
      .hero {
        display: flex;
      }
    }
    
  • URL: /components/raw/hero/_hero.scss
  • Filesystem Path: src/components/molecules/hero/_hero.scss
  • Size: 6.2 KB

There are no notes for this item.