There are no notes for this item.

<div class="slab  slab--bg-offwhite">
    <div class="wrap">
        <h3 class="slab__title">This is a slab title</h3>
    </div>
</div>

<div class="margin-bottom-4xl">
    <div class="wrap">
        <h3>This text is not in a slab</h3>
        <p class="h5">(but has a utility spacing class wrapper)</p>
        <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It 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>
    </div>
</div>

<div class="slab  slab--bg-slate">
    <div class="wrap">
        <div class="hgroup">

            <div class="title  title--has-tail">
                <h2 class="title__highlight">
                    This is a title with tail
                </h2>
            </div>

            <div class="title  title--bg-white  title--has-tail">
                <h3 class="title__highlight  h6">
                    This is a white title with tail
                </h3>
            </div>

        </div>

        <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It 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>

    </div>
</div>
<div class="slab  slab--bg-offwhite">
  <div class="wrap">
    <h3 class="slab__title">This is a slab title</h3>
  </div>
</div>

<div class="margin-bottom-4xl">
  <div class="wrap">
    <h3>This text is not in a slab</h3>
    <p class="h5">(but has a utility spacing class wrapper)</p>
    <p>{{ loremLong }}</p>
  </div>
</div>

<div class="slab  slab--bg-slate">
  <div class="wrap">
    <div class="hgroup">
      {% include '@title' with {
        text: 'This is a title with tail',
        tail: true,
        textElement: 'h2'
      } %}
      {% include '@title' with {
        text: 'This is a white title with tail',
        tail: true,
        background: 'white',
        textElement: 'h3',
        textElementStyle: 'h6'
      } %}
    </div>


    <p>{{ loremLong }}</p>


  </div>
</div>
  • Content:
    .slab {
      position: relative;
      $border-color: $grey--light;
      padding: $spacing-4xl 0;
      z-index: 0;
    
      &__title {
        margin-top: $spacing-md;
      }
    
      &__header {
        margin-top: -#{$spacing-4xl};
      }
    
      //--
    
      &--border-bottom {
        border-bottom: 1px solid $border-color;
      }
    
      &--border-top {
        border-bottom: 1px solid $border-color;
      }
    
      //--
    
      @each $name, $value in $slab-bg-colors {
        &--bg-#{$name} {
          background-color: #{$value};
          @if (choose-contrast-color($value) == white) {
            color: white;
          }
        }
      }
    }
  • URL: /components/raw/slab/_slab.scss
  • Filesystem Path: src/components/slab/_slab.scss
  • Size: 549 Bytes