HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/stafa/stafa.nl/resources/sass/site/6-Organisms/_organisms.hero.scss
$bp-hero: m;

.o-hero {
  position: relative;
  z-index: 1; // so it sits on top of the content (hexagon must overlap body)
  color: palette(neutral);

  &::after {
    @include ornament-hex-stroked('halve');
    content: '';
    display: block;
  }
}

.o-hero__main {
  position: relative;
  z-index: 1;

  @include mq(m) {
    @include contain;
  }

  @include mq($bp-hero) {
    display: flex;
    flex-direction: row-reverse;
  }
}

.o-hero__figure {
  display: flex;
  align-items: center;

  @include mq($max: m) {
    width: calc(100% - 12vw);
    margin: 0 auto;
  }

  @include mq($max: $bp-hero) {
    text-align: center;
  }
  @include mq($bp-hero) {
    flex-basis: column(6,12);
    padding-bottom: space(5);
  }
}

.o-hero__content {
  position: relative;

  @include vspacing-m-down(
    'padding-top' 1,
    'padding-bottom' 1
  );

  @include vspacing(
    'padding-top' 1,
    'padding-bottom' 1.5
  );

  @include mq($max: m) {
    @include contain;
  }

  @include mq($bp-hero) {
    flex-basis: column(6,12);
  }
}



/*
 * --------------------------------
 * Body text inside o-hero__content
 * --------------------------------
 */

// show only on large screens
.o-hero__back {
  display: none;

  @include mq($bp-hero) {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
  }
}

.o-hero__title {
  @include text-style(5);
  margin-bottom: space(3);
  color: palette(secondary, 500);

  @include mq($bp-hero) {
    padding-right: column(0.5, 6);
  }
}

.o-hero__header {
  @include text-style(1);
  //@include hyphenate;
  margin-bottom: space(6);

  @include mq($bp-hero) {
    padding-right: column(0.5, 6);
  }
}

.o-hero__text {
  @include mq($bp-hero) {
    padding-right: column(1, 6);
  }
}

.o-hero__action {
  margin-top: space(6);
}


// Contact person
$bp-hero--contact-person: l;

.o-hero__main {
  &[data-type="contact-person"] {
    flex-wrap: no-wrap;
    flex-direction: column;

    @include mq($bp-hero--contact-person) {
      flex-direction: row;
    }
  }

  .o-hero__contact-person {
    @include vspacing-m-down(
      'padding-bottom' 1
    );
    @include vspacing-l-up(
      'padding-top' 1
    );
    @include mq($bp-hero--contact-person) {
      flex-basis: column(6,12);
      margin-top: space(5);
      padding-bottom: space(5);
    }
    @include mq($max: $bp-hero--contact-person) {
        flex-basis: 100%;
    }
  }

  .o-hero__content {
    @include mq($max: $bp-hero--contact-person) {
        flex-basis: 100%;
    }
  }
}

// Modifier used on homepage (image is larger than default hero)
.o-hero--focus-on-image {
  $bp-hero--focus-on-image: l;

  .o-hero__figure {
    @include mq($bp-hero, $bp-hero--focus-on-image) {
      flex-basis: column(6, 12);
    }

    @include mq($bp-hero--focus-on-image) {
      flex-basis: column(7, 12);
    }
  }

  .o-hero__content {
    @include mq($bp-hero, $bp-hero--focus-on-image) {
      flex-basis: column(6, 12);
      padding-right: column(0.5, 12);
    }

    @include mq($bp-hero--focus-on-image) {
      flex-basis: column(5, 12);
      padding-right: column(1, 12);
    }
  }
}

// Small header used in post show
.o-hero--small {

  & .o-hero__figure {
    align-items: flex-end;

    // Align elements inside figure (image)
    & > * {
      margin: 0 auto;
    }

    @include mq($bp-max) {
      flex-basis: column(4, 12);
      padding-bottom: 0;
      margin-bottom: space(-5);
    }
  }

  & .o-hero__content {
    @include vspacing(
      'padding-bottom' 0.75
    );
  }

  & .o-hero__content--wide {
    @include mq(l) {
      flex-basis: column(8, 12);
      margin-left: column(0.5, 12);
    }
  }
}