Back in the past I learned a lot about CSS but now I can\'t remember how to reuse styles.
Example:
I have some tabs with class tab and I can switch
tab
Use both class names in the class attribute. In the .active rule, define only different styles like you have already in the second example.
class
.active