I want to use media queries to slightly modify my CSS for different devices. Ideally, I'd like to create a baseline version of a class or rule, and then override it only partially, like this:
.myClass {
font-family:Helvetica;
color:#333333;
font-size:20px;
}
@media screen and (min-width: 1000px) {
.myClass {
font-size:30px;
}
}
My question is, for screens that match the media query, will .myClass completely replace the baseline one (thereby wiping out the font and color property-value pairs), or will it retain those and only override the font-size value?
It seems to work, but I want to know if this is expected behavior. Thank you!