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 Modular CSS with Sass Modular Media Queries Creating Element States

Kent Hefley
Kent Hefley
11,217 Points

There is a problem with the code in the grid-display.scss partial.

In the 5th video " creating element states," I was not able to get my hamburger button to fire the jQuery and add the .is-hidden class. I am getting red text in workspaces indicating there is an error in the code. In the video it worked perfectly. I downloaded the project files and opened the folder in VS code. It is also showing errors.

{ expected {8, 14} at-rule or selector expected (13, 3) at-rule or selector expected (17, 1)

Here is the code directly from the downloaded project files

.is-displayed-mobile {
  @include mq(small) {
    display: block;
    @at-root (with: media) {
      .is-hidden-mobile {
        display: none;
      }
    }
  }
  @include mq(medium) {
    display: none;
  } 
}

Can someone please tell me what the problem is?