Last active
February 14, 2020 04:07
-
-
Save tomwray13/8399615547c38c7101d4026c1ea2b22a to your computer and use it in GitHub Desktop.
BEM wrappers & containers - Airbnb plus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="grid grid--plus"> | |
<div class="card">...</div> | |
<div class="card">...</div> | |
<div class="card">...</div> | |
</div> | |
<style> | |
.grid { | |
display: grid; | |
grid-column-gap: 1rem; | |
} | |
.grid--plus { | |
grid-template-columns: repeat(5, 1fr); | |
} | |
.card {} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment