Ich arbeite an einer Website, wo die CSS schrecklich unorganisiert scheint.Medienabfragen in ungeordneter Reihenfolge
Das erste, was mir aufgefallen ist, dass die Medienabfragen in der folgenden Reihenfolge sind ... sicherlich ist das falsch? Wäre es sinnvoll, in die richtige Reihenfolge zu reorganisieren? Ist das ohne große Arbeit möglich? Ich möchte so viele Wiederholungen wie möglich vermeiden, also wäre das die richtige Reihenfolge, könnte ich einige dieser Haltepunkte eliminieren?
@media screen and (max-width:997px)
@media screen and (min-width:674px) and (max-width:997px)
@media screen and (max-width:997px)
@media screen and (min-width:998px)
@media screen and (max-width:768px)
@media only screen and (min-width: 998px)
@media only screen and (max-width: 997px) and (min-width: 674px)
@media only screen and (max-width: 673px)
@media print
@media only screen and (max-width: 997px)
@media only screen and (max-width: 768px)
@media only screen and (min-width: 769px) and (max-width: 997px)
@media only screen and (min-width: 674px) and (max-width: 997px)
@media only screen and (max-width: 673px)
@media only screen and (min-width: 998px)
@media only screen and (min-width: 674px) and (max-width: 997px)
@media only screen and (max-width: 673px)
@media only screen and (max-width: 551px)
@media only screen and (max-width: 440px)
@media only screen and (max-width: 380px)
@media screen and (max-width:997px)
Ja, diejenigen, die doppelt vorhanden sind ... – aphextwix
Gibt es CSS-Selektoren zwischen jedem dieser Medien-Anfragen? Wenn der Entwickler mit einem Vorprozessor wie SASS gearbeitet hat, könnte er genauso gut verschachtelte Medienabfragen mit einem Breakpoint-Manager wie sass-breakpoint verwendet haben, der dann in CSS gebündelt wird. –
Bei der Auswahl von Haltepunkten ist Folgendes zu beachten: http://stackoverflow.com/q/8564752/3597276 –