sasset:using_the_content_container
Il est possible, dans les mixins, d'utiliser du sous-code.
@mixin break($length) {
@media (min-width: $length) {
@content;
}
}
.branding {
float: left;
display: none;
@include break(1000px){
display: block;
};
}
Donne :
.branding {
float: left;
display: none;
}
@media (min-width: 1000px) {
.branding {
display: block;
}
}
sasset/using_the_content_container.txt · Last modified: 2016/04/02 13:48 by leo