- uses textElement() to group together p,h1...h4 - Turns out if you extend a class then say change the class in a media breakpoint it will apply the media queried properties to everything that extends the original class.
16 lines
187 B
SCSS
16 lines
187 B
SCSS
@mixin respond-to($breakpoint) {
|
|
@media (max-width: $width) {
|
|
@content;
|
|
}
|
|
}
|
|
|
|
@mixin textElements() {
|
|
p,
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
{
|
|
@content;
|
|
}
|
|
} |