Basic Card

By ZURB

F6
#
How do I use This?

A simple card with title, description, and links.

HTML
<div class="basic-card">
  <div class="basic-card-image">
    <img src="https://placeimg.com/640/480/animals">
  </div>
  <div class="basic-card-content content callout secondary">
    <h5>Content</h5>
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sequi saepe, asperiores dolor nesciunt dolore, accusamus minus repellendus vero odio, quibusdam, ipsum nisi in a molestiae ex assumenda nulla eveniet eos!</p>
  </div>
  <div class="links callout primary">
    <ul class="menu">
      <li>
        <a href="#">Link</a>
      </li>
      <li>
        <a href="#">Link</a>
      </li>
      <li>
        <a href="#">Link</a>
      </li>
      <li>
        <a href="#">Link</a>
      </li>
    </ul>
  </div>
</div>

.basic-card {
  @include card-container;

  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  margin: 0 auto;
  width: 50%;
}

.basic-card-image {
  grid-row-end: 4;
  grid-row-start: 1;

  img {
    width: 100%;
  }
}

.basic-card-content {
  border: 0;
  grid-row-start: 3 / 4;
  margin: 0;
  overflow: scroll;
}


.basic-card {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
  margin-bottom: 1rem;
  border: 1px solid #e6e6e6;
  border-radius: 0;
  background: #fefefe;
  box-shadow: none;
  overflow: hidden;
  color: #0a0a0a;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr;
      grid-template-columns: 1fr;
  -ms-grid-rows: 1fr 1fr 1fr;
      grid-template-rows: 1fr 1fr 1fr;
  margin: 0 auto;
  width: 50%;
}

.basic-card > :last-child {
  margin-bottom: 0;
}

.basic-card-image {
  grid-row-end: 4;
  -ms-grid-row: 1;
      grid-row-start: 1;
}

.basic-card-image img {
  width: 100%;
}

.basic-card-content {
  border: 0;
  grid-row-start: 3 / 4;
  margin: 0;
  overflow: scroll;
}

JS