<header class="standard-header standard-header--inverted" style="
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.1)),
      url(../../assets/bg-images/edition-02/edition02-human-02.jpg);
  ">
    <h3 class="standard-header__type">Content Type</h3>
    <h1 class="standard-header__title">Title</h1>
    <h2 class="standard-header__subtitle">Subtitle</h2>
    <div class="standard-header__intro">
        <time class="standard-header__intro__label">01.01.2018</time>
        <div class="standard-header__intro__text">
            Filet mignon sausage tongue, hamburger porchetta fatback kielbasa flank
            ribeye. Pastrami t-bone pork chop sirloin ham swine cupim brisket
            prosciutto buffalo drumstick strip steak capicola short loin. Frankfurter
            fatback turkey pork chop prosciutto pork ground round tongue chuck doner.
            Pig venison pork chop shoulder corned beef capicola meatball.
        </div>
    </div>
</header>
import { cssBackground } from "./components/02-molecules/visual-elements/header/standard-header/config";

<header class="standard-header standard-header--inverted" style={cssBackground}>
    <h3 class="standard-header__type">Content Type</h3>
    <h1 class="standard-header__title">Title</h1>
    <h2 class="standard-header__subtitle">Subtitle</h2>
    <div class="standard-header__intro">
        <time class="standard-header__intro__label">
            01.01.2018
        </time>
        <div class="standard-header__intro__text">
            Filet mignon sausage tongue, hamburger porchetta fatback kielbasa flank
            ribeye. Pastrami t-bone pork chop sirloin ham swine cupim brisket
            prosciutto buffalo drumstick strip steak capicola short loin.
            Frankfurter fatback turkey pork chop prosciutto pork ground round tongue
            chuck doner. Pig venison pork chop shoulder corned beef capicola
            meatball.
        </div>
    </div>
</header>
/* No context defined. */
  • Content:
    $standard-header-intro-offset-xxl: $spacer-xxl;
    
    .standard-header {
      @extend %page-header;
    
      flex-direction: column;
      align-items: center;
      justify-content: flex-end;
    
      &__title {
        position: relative;
        margin-bottom: $spacer-sm;
        padding: 0 $spacer-md;
        max-width: $default-page-layout-content-width-md;
        text-align: center;
        line-height: $heading-line-height-sm;
        color: $standard-header-title-color;
        font-size: $font-size-xxl;
    
        &--separated {
          margin-top: $spacer-xxl;
        }
      }
    
      &__subtitle {
        position: relative;
        margin-bottom: $spacer-xs;
        max-width: $default-page-layout-content-width-md;
        text-align: center;
        color: $standard-header-subtitle-color;
        font-size: $font-size-sm;
      }
    
      &__type {
        @extend %heading-font-bold;
    
        position: relative;
        margin-bottom: $spacer-md;
        max-width: $default-page-layout-content-width-md;
        text-align: center;
        text-transform: uppercase;
        color: $standard-header-type-color;
        font-size: $font-size-base;
    
        &--underlined {
          border-bottom: $standard-header-type-underline-color solid 3px;
        }
      }
    }
    
    //Variations
    .standard-header--inverted {
      .standard-header__title {
        color: $standard-header-inverted-title-color;
      }
    
      .standard-header__type {
        color: $standard-header-inverted-type-color;
      }
    
      .standard-header__subtitle {
        color: $standard-header-inverted-subtitle-color;
      }
    }
    
    .podcast-header--avatar--overlay {
      background-color: $standard-header-podcast-overlay-color;
      background-repeat: no-repeat;
      background-position: top right, top left;
      background-size: 0%;
      background-blend-mode: multiply;
    
      .standard-header__subtitle {
        color: $standard-header-podcast-subtitle-color;
      }
    
      .standard-header__title,
      .standard-header__subtitle {
        padding: 0 $spacer-xl;
      }
    
      .standard-header__intro__label {
        background-color: $standard-header-podcast-intro-label-bg-color;
        color: $standard-header-podcast-intro-label-color;
        font-size: $font-size-xs;
      }
    }
    
    .standard-header__intro {
      display: flex;
      position: relative;
      flex-direction: column;
      align-items: center;
      margin-top: $spacer-lg;
      background-color: $standard-header-intro-bg;
      padding: $spacer-sm;
      box-sizing: content-box;
    }
    
    .standard-header__intro-headline {
      text-align: center;
      color: $standard-header-intro-text-color;
    }
    
    .standard-header__intro__text {
      @extend %body-font-italic;
    
      line-height: $paragraph-line-height;
      color: $standard-header-intro-text-color;
      font-size: $font-size-sm;
    }
    
    .standard-header__intro__label {
      @extend %heading-font-bold;
    
      display: block;
      position: relative;
      top: -2rem; // FIXME
      background-color: $standard-header-intro-label-bg;
      padding: $spacer-xxs $spacer-xs;
      color: $standard-header-intro-label-color;
      font-size: $font-size-xs;
    }
    
    //Breakpoints
    @media screen and (min-width: $grid-breakpoint-sm) {
      .standard-header__title {
        font-size: $font-size-xxxl;
      }
    
      .podcast-header--avatar--overlay {
        background-size: 70%;
      }
    }
    
    @media screen and (min-width: $grid-breakpoint-md) {
      .standard-header {
        margin-bottom: ms(25); //magic number
      }
    
      .podcast-header--avatar--overlay {
        background-size: contain;
      }
    
      .standard-header__title {
        font-size: $font-size-xxxxl;
      }
    
      .standard-header__subtitle {
        font-size: $font-size-lg;
      }
    
      .standard-header__intro {
        margin-top: $spacer-xl;
        padding: $spacer-lg;
        width: $grid-page-layout-content-width-md;
        max-width: $grid-page-layout-content-width-xl;
      }
    
      .standard-header__intro__text {
        font-size: $font-size-lg;
      }
    
      .standard-header__intro__label {
        top: -4.1rem; // FIXME
        padding: $spacer-xs $spacer-sm;
      }
    
      // offset
      .standard-header__type,
      .standard-header__title,
      .standard-header__subtitle,
      .standard-header__intro {
        top: $standard-header-intro-offset-xxl;
      }
    }
    
    @media screen and (min-width: $grid-breakpoint-lg) {
      .standard-header__intro {
        width: $grid-page-layout-content-width-lg;
      }
    }
    
    @media screen and (min-width: $grid-breakpoint-xl) {
      .standard-header__intro {
        width: $grid-page-layout-content-width-xl;
      }
    }
    
  • URL: /components/raw/standard-header/_standard-header.scss
  • Filesystem Path: components/02-molecules/visual-elements/header/standard-header/_standard-header.scss
  • Size: 4.2 KB
  • Content:
    import { context } from '../../../../env'
    
    const urlBackground = context.uri('assets/bg-images/edition-02/edition02-human-02.jpg')
    const urlRight = context.uri('assets/example-content/heribert-rechts.png')
    const urlLeft = context.uri('assets/example-content/heribert-links.png')
    
    export const cssBackground = `background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.1)), url(${urlBackground});`
    export const cssBoth = `background-image: url(${urlRight}), url(${urlLeft});`
    
  • URL: /components/raw/standard-header/config.jsx
  • Filesystem Path: components/02-molecules/visual-elements/header/standard-header/config.jsx
  • Size: 487 Bytes
  • Handle: @standard-header--inverted
  • Preview:
  • Filesystem Path: components/02-molecules/visual-elements/header/standard-header/standard-header--inverted.html

No notes defined.