Skip to content
Snippets Groups Projects
heading.scss 1.9 KiB
Newer Older
  • Learn to ignore specific revisions
  • Markus Kaarto's avatar
    Markus Kaarto committed
    
    :host {
      display: block;
    }
    
    
    .hy-heading__container {
      display: flex;
      flex-direction: column-reverse;
      
      @include breakpoint($medium) {
        flex-direction: row;
      }
    }
    
    .hy-heading {
      display: flex;
      flex-grow: 1;
      flex-shrink: 0;
      max-width: 100%;
    }
    
    .hy-heading__subsection {
      flex-shrink: 2;
      overflow: hidden;
      width: 100%;
    
      &:after {
        background-color: var(--brand-main-nearly-black);
        content: ' ';
        display: flex;
        height: 2px;
        width: 100%;
        margin-left: 0;
        margin-bottom: 1rem;
        position: relative;
        top: 50%;
        transform: translateY(-50%);
    
        @include breakpoint($medium) {
          margin-left: 2rem;
        }
      }
    }
    
    
    Markus Kaarto's avatar
    Markus Kaarto committed
    h1, h2, h3, h4, h5, h6 {
      color: var(--brand-main-nearly-black);
      font-family: var(--main-font-family);
      font-weight: 600;
      padding: 0;
      margin: 0;
    
    Tuukka Turu's avatar
    Tuukka Turu committed
      width: 100%;
    
    Markus Kaarto's avatar
    Markus Kaarto committed
    }
    
    h1 {
      font-size: 32px;
      letter-spacing: -1px;
      line-height: 40px;
    
      @include breakpoint($medium) {
        font-size: 48px;
        letter-spacing: -1.5px;
        line-height: 64px;
      }
    }
    
    h2 {
      font-size: 26px;
      letter-spacing: -0.82px;
      line-height: 32px;
    
      @include breakpoint($medium) {
        font-size: 32px;
        letter-spacing: -1px;
        line-height: 40px;
      }
    }
    
    h3 {
      font-size: 22px;
      letter-spacing: -0.69px;
      line-height: 28px;
    
      @include breakpoint($medium) {
        font-size: 26px;
        letter-spacing: -0.82px;
        line-height: 32px;
      }
    }
    
    h4 {
      font-size: 18px;
      letter-spacing: -0.56px;
      line-height: 24px;
    
      @include breakpoint($medium) {
        font-size: 22px;
        letter-spacing: -0.69px;
        line-height: 28px;
      }
    }
    
    h5 {
      font-size: 16px;
      letter-spacing: -0.5px;
      line-height: 20px;
    
      @include breakpoint($medium) {
        font-size: 18px;
        letter-spacing: -0.56px;
        line-height: 24px;
      }
    }
    
    h6 {
      font-size: 14px;
      letter-spacing: -0.44px;
      line-height: 16px;
      
      @include breakpoint($medium) {
        font-size: 16px;
        letter-spacing: -0.5px;
        line-height: 20px;
      }
    }