KNACSS/sass/components/_media.scss
2017-08-28 17:10:31 +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;
}
}
}