<article class="snippet-d">
    <header class="snippet-d__header">
        <h3 class="snippet-d__heading">Store name</h3>

        <span class="caption">5km</span>
    </header>

    <div class="snippet-d__main caption">Streetname lorem xx,<br>2000 Antwerpen</div>

    <a href="#detail" class="snippet-d__link"></a>

    <div class="snippet-d__actions actions actions--split actions--force caption">
        <div class="actions__item">
            <div class="snippet-d__action">
                <a href="#" class="link link--underlined">
                    <span class="link__label">Visit website</span>
                </a>

            </div>
        </div>

        <div class="actions__item">
            <div class="snippet-d__action">
                <a href="#" class="link link--underlined">
                    <span class="link__label">More details</span>
                </a>

            </div>
        </div>
    </div>
</article>
<article class="snippet-d">
  <header class="snippet-d__header">
    <h3 class="snippet-d__heading">{{heading}}</h3>

    <span class="caption">{{distance}}</span>
  </header>

  <div class="snippet-d__main caption">{{{description}}}</div>

  <a href="#detail" class="snippet-d__link"></a>

  <div class="snippet-d__actions actions actions--split actions--force caption">
    <div class="actions__item">
      <div class="snippet-d__action">
        {{render '@link--underlined' weblink}}
      </div>
    </div>

    <div class="actions__item">
      <div class="snippet-d__action">
        {{render '@link--underlined' directionslink}}
      </div>
    </div>
  </div>
</article>
heading: Store name
distance: 5km
description: Streetname lorem xx,<br>2000 Antwerpen
weblink:
  label: Visit website
  url: '#'
  modifier: underlined
directionslink:
  label: More details
  url: '#'
  modifier: underlined
  • Content:
    .snippet-d {
      display: block;
      color: inherit;
      font-size: var(--p--2);
      text-decoration: none;
    
      &:hover,
      &:focus {
        color: inherit;
        text-decoration: none;
        outline: none;
      }
    }
    
    .snippet-d__header {
      position: relative;
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    
    .snippet-d__heading {
      font-size: var(--p--1);
      line-height: 1;
      font-weight: 700;
    }
    
    .snippet-d__main {
      position: relative;
      z-index: 1;
      margin-top: calc(var(--gap) * 2);
      line-height: 1.5;
    }
    
    .snippet-d__link {
      position: absolute;
      top: 0;
      left: 0;
      z-index: 2;
      display: block;
      width: 100%;
      height: 100%;
    }
    
    .snippet-d__actions {
      margin-top: calc(var(--gap) * 3);
    }
    
    .snippet-d__action {
      position: relative;
      z-index: 3;
    }
    
  • URL: /components/raw/snippet-d/snippet-d.scss
  • Filesystem Path: ../src/03_molecules/snippet-d/snippet-d.scss
  • Size: 782 Bytes

No notes defined.