June 2025
Beginner
817 pages
31h 30m
English
So that the mixins aren’t too much overshadowed after the extend section, I still want to bring the media queries into play here, for which mixins with arguments are again perfect: You can define the breakpoints as variables and adjust them at any time. It’s also useful that you can use inline media queries with Sass, which is an enormous help especially with extensive projects. The following example is intended to show how you can use media queries in Sass.
In this example, a mobile version (30em) and a desktop version (60em) were created. In the mobile version, the articles are displayed one below the other in the flexbox and side by side in the desktop version. In the created CSS code for the inline media ...
Read now
Unlock full access