KNACSS/sass/objects/_media.scss

25 lines
432 B
SCSS
Raw Normal View History

2016-09-21 10:26:28 +02:00
/* Media object */
/* see http://codepen.io/raphaelgoetter/pen/KMWWwj */
2016-09-21 10:26:28 +02:00
@media (min-width: ($tiny + 1)) {
.o-media {
display: flex;
align-items: flex-start;
}
2016-09-21 10:26:28 +02:00
.o-media-content {
flex: 1;
min-width: 0; /* avoid min-width:auto */
}
}
/* Media variants */
@media (min-width: ($tiny + 1)) {
.o-media--reverse {
flex-direction: row-reverse;
}
2016-09-21 10:26:28 +02:00
.o-media-figure--center {
align-self: center;
}
}