Avoiding conflicts by preventing media queries using the same value for both a min-width and a max-width.
The attached patch will move from the current CSS that has two conflicts:
@media screen and (max-width: 320px) {
/* Smartphone */
}
@media screen and (min-width: 320px) and (max-width: 760px) {
/* Tablet */
}
@media screen and (min-width: 760px) {
/* Standard */
}
To this CSS that has no conflicts:
@media screen {
/* Smartphone */
}
@media screen and (min-width: 320px) {
/* Tablet */
}
@media screen and (min-width: 760px) {
/* Standard */
}
Comments
Comment #1
mustanggb commentedComment #2
mustanggb commentedCorrect patch attached.
Comment #2.0
mustanggb commentedUpdate
Comment #3
michel.g commentedI think I have a better solution for the current version of the module.
Comment #4
michel.g commentedPatch didn't work as intended, uploading a new version.