Recently, I incorporated https://material.angularjs.org/latest/ to optimize the responsive design of my website. One key feature I am focusing on is adjusting the font size based on different screen sizes.
For smaller screens, I intend to set the font size at 5px and for larger screens above medium size, it should be 14px. However, despite my efforts, the font size remains unchanged:
<h3 class=".md-display-1">John</h3>
This is the CSS code I have implemented:
@media (max-width: @flex-sm) {
body{font-size: 2px;}
}
@media (max-width: @flex-gt-md) {
body{font-size: 30px;}
}