.container-fixed(@gutter:30px) {
margin-right: auto;
margin-left: auto;
padding-left: floor((@gutter / 2));
padding-right: ceil((@gutter / 2));
&:extend(.clearfix all);
}
.clearfix{
&:before,
&:after {
content: " ";
display: table;
}
&:after {
clear: both;
}
}
.container{
.container-fixed()
}
compilation results
.clearfix:before,
.clearfix:after,
.container:before,
.container:after {
content: " ";
display: table;
}
.clearfix:after,
.container:after {
clear: both;
}
.container {
margin-right: auto;
margin-left: auto;
padding-left: 15px;
padding-right: 15px;
}
it is obvious that the mixture of container-fixed inherits .clearfix, and the compilation result is container inheritance. You can"t understand it and ask for instructions
.