<div class="mt-3 mb-1 border-top p-4 pb-0 border-top">
    <article class="listing-card listing-card__show search-row position-relative d-flex gap-sm-2 flex-row overflow-hidden">
        <header class="listing-card--header flex-grow-0">
            <img class="img-fluid" src="/images/samples/show-image/half-moon-portrait.jpg" alt="Example image">
        </header>
        <div class="listing-card--details listing-card--details__theatre border bg-white bottom-0 start-0 end-0 pb-2 d-flex flex-column justify-content-end flex-grow-1">
            <mark class="lozenge lozenge--programme lozenge--programme__theatre me-auto">Theatre</mark>
            <h3 class="fw-bolder fs-4 mt-3 mx-2 mx-sm-3 flex-grow-1">The Half Moon</h3>
            <p class="mt-1 mx-2 mx-sm-3 flex-grow-1"><small>Alice Malseed & Emily Foran, Lyric Belfast, Pleasance, Thistle and Rose Arts</small></p>
            <p class="text-uppercase m-2 mx-sm-3 my-0">Edinburgh</p>
            <p class="text-uppercase m-2 m-sm-3 my-0">August (various)</p>
        </div>
        <a href="#" class="stretched-link" aria-label="More info"></a>
    </article>
</div>
<div class="mt-3 mb-1 border-top p-4 pb-0 border-top">
  {% if show_url %}
    {% set classes = [
      "listing-card",
      "listing-card__show"
    ] %}
  {% else %}
  {% set classes = [
    "listing-card",
    "listing-card__cta"
  ] %}
  {% endif %}
  <article class="{{ classes|join(' ') }} search-row position-relative d-flex gap-sm-2 flex-row overflow-hidden">
    <header class="listing-card--header flex-grow-0">
      {% block image %}
      <img class="img-fluid" src="{{ image }}" alt="Example image">
      {% endblock %}
    </header>
    <div class="listing-card--details listing-card--details__{{ genre_class ?: genre|lower }} border bg-white bottom-0 start-0 end-0 pb-2 d-flex flex-column justify-content-end flex-grow-1">
      {% if genre %}
      <mark class="lozenge lozenge--programme lozenge--programme__{{ genre_class ?: genre|lower }} me-auto">{{ genre }}</mark>
      {% endif %}
      {% if title %}
      <h3 class="fw-bolder fs-4 mt-3 mx-2 mx-sm-3 flex-grow-1">{{ title }}</h3>
      {% endif %}
      {% if company %}
      <p class="mt-1 mx-2 mx-sm-3 flex-grow-1"><small>{{ company }}</small></p>
      {% endif %}
      {% if festival %}
      <p class="text-uppercase m-2 mx-sm-3 my-0">{{ festival }}</p>
      {% endif %}
      {% if dateline %}
      <p class="text-uppercase m-2 m-sm-3 my-0">{{ dateline }}</p>
      {% endif %}
    </div>
    <a href="{{ show_url }}" class="stretched-link" aria-label="More info"></a>
  </article>
</div>
{
  "title": "The Half Moon",
  "company": "Alice Malseed & Emily Foran, Lyric Belfast, Pleasance, Thistle and Rose Arts",
  "genre": "Theatre",
  "image": "/images/samples/show-image/half-moon-portrait.jpg",
  "show_url": "#",
  "festival": "Edinburgh",
  "dateline": "August (various)"
}
  • Content:
    .search-row {
      width: 100%;
      height: 100%;
      background-color: transparent;
    
      @include media-breakpoint-up(sm) {
        width: 100%;
        height: auto;
      }
    
      .listing-card {
        &--header {
          @include media-breakpoint-up(sm) {
            max-width: 10rem;
          }
        }
    
        &--details {
          position: absolute;
    
          @include media-breakpoint-up(sm) {
            position: relative;
          }
        }
      }
    }
  • URL: /components/raw/search-row/search-row.scss
  • Filesystem Path: src/components/02-structures/search/search-row/search-row.scss
  • Size: 404 Bytes

No notes defined.