¿Cuáles son las consultas de medios CSS para apuntar a los últimos dispositivos de Apple?
Dispositivos 2019: iPhone 11, iPhone 11 Pro y iPhone 11 Pro Max.
Dispositivos 2020: iPhone 12 mini, iPhone 12, iPhone 12 Pro y iPhone 12 Pro Max.
Dispositivos 2021: iPhone 13 mini, iPhone 13, iPhone 13 Pro y iPhone 13 Pro Max.
/* 2340x1080 pixels at 476ppi */ @media only screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) { }Esta consulta de medios se usa para: iPhone 13 mini, iPhone 12 mini, iPhone 11 Pro, iPhone Xs y iPhone X
/* 2532x1170 pixels at 460ppi */ @media only screen and (device-width: 390px) and (device-height: 844px) and (-webkit-device-pixel-ratio: 3) { }Esta consulta de medios se usa para: iPhone 13, iPhone 12 y iPhone 12 Pro
/* 2778x1284 pixels at 458ppi */ @media only screen and (device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3) { }Esta consulta de medios se usa para: iPhone 13 Pro Max y iPhone 12 Pro Max
/* 1792x828px at 326ppi */ @media only screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2) { }Esta consulta de medios se usa para: iPhone 11 y iPhone XR
/* 2436x1125px at 458ppi */ @media only screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) { }Esta consulta de medios se usa para: iPhone 13 mini, iPhone 12 mini, iPhone 11 Pro, iPhone Xs y iPhone X
/* 2688x1242px at 458ppi */ @media only screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3) { }Esta consulta de medios se usa para: iPhone 11 Pro Max y iPhone Xs Max
Use el siguiente código para agregar orientación horizontal o vertical:
and (orientation: portrait) and (orientation: landscape)