I'm trying to clean up my huge media queries and I've removed every change in element values that are the same as the default element values so that this will show up instead.
My question is what choices I have when the duplicate values are stored in individual media queries?
Here is an example:
@media only screen and (min-width: 480px) and (max-width: 767px) {
.fa.fa-check
{
font-size: 3em;
border-radius: 100px;
height: 100px;
line-height: 100px;
width: 100px;
}
.fa.fa-shopping-cart
{
font-size: 3em;
border-radius: 100px;
height: 100px;
line-height: 100px;
width: 100px;
}
.fa.fa-user
{
font-size: 3em;
border-radius: 100px;
height: 100px;
line-height: 100px;
width: 100px;
}
@media only screen and (max-width: 479px) {
.fa.fa-check
{
font-size: 3em;
border-radius: 100px;
height: 100px;
line-height: 100px;
width: 100px;
}
.fa.fa-shopping-cart
{
font-size: 3em;
border-radius: 100px;
height: 100px;
line-height: 100px;
width: 100px;
}
.fa.fa-user
{
font-size: 3em;
border-radius: 100px;
height: 100px;
line-height: 100px;
width: 100px;
}
I have lots of changes in element values that aren't duplicates inside of the media queries as well, so I can't combine them all together. Are there any other choices?
Aucun commentaire:
Enregistrer un commentaire