There are no notes for this item.

<h2>Primary Style</h2>
<p>This applies the primary colour, and slightly thickens.</p>

<hr class="hr--primary" />

<h2>Invisible</h2>

<p>There are times when a themantic break in content may be desired, but without a visible rule, this can be achieved using the invisible modifier. Use sparingly and semantically.</p>

<hr class="hr--invisible" />

<p>Lipsum has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
<h2>Primary Style</h2>
<p>This applies the primary colour, and slightly thickens.</p>

<hr class="hr--primary" />

<h2>Invisible</h2>

<p>There are times when a themantic break in content may be desired, but without a visible rule, this can be achieved using the invisible modifier. Use sparingly and semantically.</p>

<hr class="hr--invisible" />

<p>{{ lorem }}</p>
  • Content:
    $hr-tri-size: 1em;
    
    hr {
      position: relative;
      // see base-elements in vars/_typography
    }
    
    .hr--primary {
      border-top-width: 2px;
      border-color: $primary;
    }
    
    // Spacing
    
    .hr--compact {
      margin: $spacing-xl auto;
    }
    
    .hr--spaced {
      margin: $spacing-5xl auto;
    }
    
    .hr--invisible {
      border-color: transparent;
    }
    
    // Styled variants
    
    [class*='hr--tri-'] {
      border-color: $primary;
      //border-width: 2px;
    
      &:before,
      &:after {
        position: absolute;
        content: '';
        display: inline-block;
        width: 0;
        height: 0;
        border-style: solid;
        border-color: transparent;
      }
    }
    
    .hr--tri-above-left {
      &:before {
        bottom: 0;
        left: 0;
        border-width: $hr-tri-size 0 0 $hr-tri-size;
        border-color: transparent transparent transparent $primary;
      }
    }
    
    .hr--tri-below-left {
      &:before {
        top: 0;
        left: 0;
        border-width: $hr-tri-size $hr-tri-size 0 0;
        border-color: $primary transparent transparent transparent;
      }
    }
    
    .hr--tri-above-right {
      &:after {
        bottom: 0;
        right: 0;
        border-width: 0 0 $hr-tri-size $hr-tri-size;
        border-color: transparent transparent $primary transparent;
      }
    }
    
    .hr--tri-below-right {
      &:after {
        top: 0;
        right: 0;
        border-width: 0 $hr-tri-size $hr-tri-size 0;
        border-color: transparent $primary transparent transparent;
      }
    }
  • URL: /components/raw/hr/_hr.scss
  • Filesystem Path: src/components/hr/_hr.scss
  • Size: 1.3 KB