I have few lines of Sass:
.content{
width: 960px;
padding: 15px 0;
margin: auto;
background: inherit;
p{
text-align: justify;
paddi
No. If you extend a selector, you extend all of the selectors that have the same name (including .foo .content
). Your best option is to have multiple selectors to extend from:
%foo {
width: 960px;
padding: 15px 0;
margin: auto;
background: inherit;
}
.content {
@extend %foo;
p {
text-align: justify;
padding: 10px;
}
}
.header {
@extend %foo;
}