KNACSS/sass/components/media.scss
2017-08-01 21:02:01 +02:00

24 lines
465 B
SCSS

/* ----------------------------- */
/* ==Media object */
/* ----------------------------- */
/* see http://codepen.io/raphaelgoetter/pen/KMWWwj */
@media (min-width: $tiny) {
.media {
display: flex;
align-items: flex-start;
&-media-content {
flex: 1;
}
// vertical align image
&-figure--center {
align-self: center;
}
// reverse variant
&--reverse {
flex-direction: row-reverse;
}
}
}