Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS Sass Basics Improve Your Workflow with Sass Write Nested Selectors

Danny Yoo
seal-mask
.a{fill-rule:evenodd;}techdegree
Danny Yoo
Front End Web Development Techdegree Student 4,824 Points

I set the correct color value for .icn-success, I have no idea why it is not giving me a pass.

&-success {
  color: green;
}
style.scss
.banner {
  padding: 1em;
  background-color: lightgrey;
  .button {
    font-size: 1.5em;
  }
  .icn {
    font-size: 1.25em;
  }
  &-success {
    color: green;
  }
}

1 Answer

Bella Bradbury
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Bella Bradbury
Front End Web Development Techdegree Graduate 32,790 Points

Danny,

You're so close! The issue is that you need to set the &-success declaration and styles inside the .icn declaration. In order for the code to properly interpret the declaration it needs to know what class to add it on to. Currently your code is trying to set the color of .banner-success. This is a really quick fix, the .icn class block should look something like this:

.icn {
  font-size: 1.25em;

  &-success {
    color: green;
  }
}

Happy coding!