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 we're going to write a Sass function that automatically converts pixel values to em units.
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
maintaining font sizes, line height and
colour values in our project.
0:00
So in the previous video, we created this
font URL Google variable, for
0:00
our Google web font URL.
0:05
So now we're gonna use this variable, to
write a directive that imports the font
0:08
URL and outputs it to the CSS, only if the
variable for it exists.
0:14
So, we're gonna open up the utilities.scss
partial, and right below the first
0:20
comment, we're gonna use an if control
directive, to say if variable-exists,
0:26
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