Maintain aspect ratio with height: auto;

This commit is contained in:
Patrick Marsceill 2016-08-17 13:49:32 -04:00
parent dadf43798e
commit 748b2f1279
1 changed files with 2 additions and 1 deletions

View File

@ -89,11 +89,12 @@
becomes smaller */
.unit img {
max-width: 100%;
height: auto;
}
/* Responsive Stuff */
@media screen and (max-width: 568px) {
/* Stack anything that isnt full-width on smaller screens
/* Stack anything that isnt full-width on smaller screens
and doesn't provide the no-stacking-on-mobiles class */
.grid:not(.no-stacking-on-mobiles) > .unit {
width: 100% !important;