The Directive @media SCSS and @extend how?

Good day,
there is such scss
.titles{
@extend .size50;



@media (max-width: 992px){
@extend .size20 ;
}
}

at the beginning
.size20{
font-size:20px; 
}
.size50{
font-size:50px; 
}



But still when resolution is less than 992px the font size of 50 px.The scope does not work in the course...tell me how to make a media request.Thank you
June 14th 19 at 20:41

Find more questions by tags Sass