0

I have variables for different typography sizes and want to change the values on mobile and tablet devices, but my code below isn't working.

$h1-size: 2.5rem;
$h2-size: 2rem;
$h3-size: 1.7rem;
$h4-size: 1.4rem;
$h5-size: 1.2rem;
$h6-size: 1rem;

@media screen and (max-width: 768px) {
    $h1-size: 2rem;
    $h2-size: 1.7rem;
    $h3-size: 1.4rem;
    $h4-size: 1.2rem;
    $h5-size: 1rem;
}
JayDev95
  • 777
  • 2
  • 5
  • 18
  • Does this answer your question? [Using Sass Variables with CSS3 Media Queries](https://stackoverflow.com/questions/9122195/using-sass-variables-with-css3-media-queries) – shainanigans Oct 14 '22 at 21:03

0 Answers0