Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS Advanced Sass Advanced Variables, Mixins, Functions, and Placeholders Suffix Naming

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

I am truly stuck. What am I missing? :)

Hi there, everyone! I'm hoping that someone out there can help me. I'm desperately in need of a second pair of eyes :eyes: on this. I've run my code through www.sassmeister.com and it outputs what looks to me to be the correct CSS required by the challenge. But I'm either missing something in the challenge specifications, the implementation, or the output. Can anyone see what I'm missing?

Any and all help is thoroughly appreciated! :sparkles:

style.scss
.base {
  width: 100%;
    &__element {
     background-color: blue;
     &--modifier {
       background-color: orange;
       border-color: red;
    }
  }
}

2 Answers

Hey Jennifer,

The Challenge provided some placeholders that you were supposed to @extend. You can combine these @extends with Nesting and produce the output they want. As in, you don't need to write — or rewrite — any CSS of your own. Let me know if that helps ;)

Just replace the styling with extends.

.base {
  @extend %base;
  &__element {
    @extend %element;
    &--modifier {
      @extend %modifier
    }
  }
}