Last active
June 21, 2017 16:30
-
-
Save nickmealey/7137dcc998c89e7e26918068963efded to your computer and use it in GitHub Desktop.
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
/* Relatable styles */ | |
[data-relatable] { | |
margin: 15px auto; | |
text-align: left; | |
} | |
[data-relatable] h3 { | |
text-align: center; | |
} | |
.relatable-item { | |
display: inline-block; | |
width: calc(33.33% - 4px); | |
box-sizing: border-box; | |
padding: 10px; | |
text-align: center; | |
} | |
.relatable-item img { | |
max-width: 100%; | |
} | |
@media (max-width: 800px) { | |
.relatable-item { | |
width: calc(50% - 4px); | |
} | |
} | |
@media (max-width: 600px) { | |
.relatable-item { | |
width: 100; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment