SOURCE

console 命令行工具 X clear

                    
>
console
<div class="band">
  <!-- grid item, containing a card -->
  <div class="item-1">
    <a href="" class="card">
      <div class="thumb">
      </div>
      <article>
        <h1>
          Post title
        </h1>
        <span>
          Author
        </span>
      </article>
    </a>
  </div>
  <div class="item-2">
    <a href="" class="card">
      <div class="thumb">
      </div>
      <article>
        <h1>
          Post title
        </h1>
        <span>
          Author
        </span>
      </article>
    </a>
  </div>
  <div class="item-3">
    <a href="" class="card">
      <div class="thumb">
      </div>
      <article>
        <h1>
          Post title
        </h1>
        <span>
          Author
        </span>
      </article>
    </a>
  </div>
  <div class="item-4">
    <a href="" class="card">
      <div class="thumb">
      </div>
      <article>
        <h1>
          Post title
        </h1>
        <span>
          Author
        </span>
      </article>
    </a>
  </div>
</div>
.band {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  grid-gap: 20px;
}

@media only screen and (min-width: 500px) {
  .band {
    grid-template-columns: 1fr 1fr;
  }
}

@media only screen and (min-width: 850px) {
  .band {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

.card {
  background: white;
  text-decoration: none;
  color: #444;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative;
  top: 0;
  transition: all .1s ease-in;
}

.card:hover {
  top: -2px;
  box-shadow: 0 4px 5px rgba(0, 0, 0, 0.2);
}

.card article {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


/* typography */

.card h1 {
  font-size: 20px;
  margin: 0;
  color: #333;
}

.card p {
  line-height: 1.4;
}

.card span {
  font-size: 12px;
  font-weight: bold;
  color: #999;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 2em 0 0 0;
}

.card .thumb {
  padding-bottom: 60%;
  background-size: cover;
  background-position: center center;
}