Note: this is an example from an online course I am taking at codeschool.com ...
So in the _buttons.scss file there is this code
.btn-a {
background: #777;
border: 1px solid #ccc;
font-size: 1em;
text-transform: uppercase;
}
.btn-b {
@extend .btn-a;
background: #ff0;
}
.sidebar .btn-a {
text-transform: lowercase;
}
And then the output CSS in application.css is
.btn-a,
.btn-b {
background: #777;
border: 1px solid #ccc;
font-size: 1em;
text-transform: uppercase;
}
.btn-b {
background: #ff0;
}
.sidebar .btn-a,
.sidebar .btn-b {
text-transform: lowercase;
}
K Now as to the question that I have ... I am not understanding why application.css gains the .sidebar .btn-b
section. I think this is a pretty important concept to understand because this example is being used to introduce placeholder selectors. Thanks for your help.