Recall & Review
beginner
What is a breakpoint in responsive web design?
A breakpoint is a specific screen width where the website layout changes to look better on different devices like phones, tablets, or desktops.
Click to reveal answer
beginner
How do you define a breakpoint variable in Sass?
You create a variable with a name and assign it a screen width value, for example:
$mobile: 480px; This helps reuse the value easily.Click to reveal answer
intermediate
What is a Sass map and how is it useful for breakpoints?
A Sass map is like a list of key-value pairs. For breakpoints, it stores multiple screen sizes with names, making it easy to manage and update all breakpoints in one place.
Click to reveal answer
beginner
Example: How to write a Sass map for breakpoints?
You write:
$breakpoints: (mobile: 480px, tablet: 768px, desktop: 1024px); This groups all breakpoints in one variable.Click to reveal answer
intermediate
Why use breakpoint maps instead of separate variables?
Breakpoint maps keep your code organized and make it easier to add or change breakpoints without hunting for many variables scattered in your code.
Click to reveal answer
What does this Sass code do? <br>
$mobile: 480px;✗ Incorrect
This code defines a variable named $mobile with the value 480px, usually used as a breakpoint.
Which Sass structure stores multiple breakpoint values with names?
✗ Incorrect
A Sass map stores key-value pairs, perfect for naming breakpoints with their sizes.
How would you access the tablet breakpoint from this map? <br>
$breakpoints: (mobile: 480px, tablet: 768px);✗ Incorrect
Use the Sass function map-get to retrieve values from a map.
Why are breakpoint variables helpful in CSS?
✗ Incorrect
Variables let you reuse values and keep your breakpoints consistent.
What is the main advantage of using a breakpoint map over separate variables?
✗ Incorrect
Grouping breakpoints in a map helps organize and update them easily.
Explain what breakpoint variables and maps are in Sass and why they are useful.
Think about how you manage screen sizes in your styles.
You got /4 concepts.
Describe how you would use a breakpoint map in a Sass media query.
Remember the syntax for map-get and media queries.
You got /3 concepts.