KNACSS/sass/objects/_autogrid.scss
Raphael Goetter ad445246dd link-hover-color
application de `$link-hover-color` uniquement si différent de
`$link-color`
2017-01-10 10:28:18 +01:00

25 lines
491 B
SCSS

/* Autogrid object */
/* see http://codepen.io/raphaelgoetter/pen/KMgBJd */
@media (min-width: ($tiny + 1)) {
[class^="autogrid"],
[class*=" autogrid"] {
display: flex;
}
[class^="autogrid"] > *,
[class*=" autogrid"] > * {
flex: 1;
min-width: 0; /* avoid min-width:auto */
}
}
/* Autogrid variants */
@media (min-width: ($tiny + 1)) {
.has-gutter > *:not(:first-child) {
margin-left: 1rem;
}
[class*="--reverse"] {
flex-direction: row-reverse;
}
}