Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Modular CSS with Sass!
You have completed Modular CSS with Sass!
Preview
Finally, we're going to use media queries to help define element state rules in our project.
Quick Reference
Related Videos
Looking for more Sass courses?
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
where we learn that state rules are
applied to elements to
0:00
indicate a change in state while the page
is still running.
0:02
So, inside our states directory I've
created partials for
0:06
a collapsed state and for grid display.
0:10
We're gonna write our state rules, using
the SMACSS naming convention for
0:14
element states.
0:18
They're usually prefixed with is.
0:19
So, first, to define a state where
elements are collapsed in mobile views, or
0:22
in the small breakpoint range, we can
write is
0:27
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up