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
Now were going to build the toggle icon using our new pseudo-element mixin. We'll also learn how the new @error directive is useful for displaying error messages in mixins and functions.
Quick Reference
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
toggle selector defined and a few
properties to style parts of it.
0:00
But before we include the pseudo element
mix-in in this rule,
0:02
let's go over to our HTML file and give
this toggle icon element,
0:06
the class toggle icon, so right here in
the opening span tag,
0:12
we'll add a class attribute and we'll say,
icn toggle.
0:17
And something else we'll do is give this
nested b element,
0:24
the screen reader text class, because
we'll also want this text hidden, but
0:28
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