media and autogrid without o- prefix

This commit is contained in:
Raphael Goetter 2017-08-01 17:00:16 +02:00
parent 9ff52d9858
commit 319b116243
4 changed files with 30 additions and 37 deletions

View file

@ -3,7 +3,7 @@
/* ----------------------------- */
/* see https://codepen.io/raphaelgoetter/pen/zzwxEE */
.o-autogrid {
.autogrid {
@media (min-width: $small) {
display: grid;
grid-auto-flow: column;

View file

@ -4,24 +4,21 @@
/* see http://codepen.io/raphaelgoetter/pen/KMWWwj */
@media (min-width: $small) {
.o-media {
.media {
display: flex;
align-items: flex-start;
}
.o-media-content {
flex: 1;
min-width: 0; /* avoid min-width:auto */
}
}
/* Media variants */
@media (min-width: $small) {
.o-media--reverse {
flex-direction: row-reverse;
}
.o-media-figure--center {
align-self: center;
&-media-content {
flex: 1;
}
// vertical align image
&-figure--center {
align-self: center;
}
// reverse variant
&--reverse {
flex-direction: row-reverse;
}
}
}