diff options
author | Pau Trepat Segura <pau.trepat.segura@gmail.com> | 2020-06-30 18:04:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-30 18:04:21 +0300 |
commit | 0dca3b1800f9622394cf599ab95840c895b9eadd (patch) | |
tree | 80e89a2d8fd955f0d8c209992c02f1dfae251249 /static | |
parent | 45535cd290dd681a9348833c154f0b4a2da86085 (diff) |
Add media queries for most popular devices (#19)
https://deviceatlas.com/blog/viewport-resolution-diagonal-screen-size-and-dpi-most-popular-smartphones
Diffstat (limited to 'static')
-rw-r--r-- | static/assets/css/experiences.css | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/static/assets/css/experiences.css b/static/assets/css/experiences.css index 595171c..bb2f794 100644 --- a/static/assets/css/experiences.css +++ b/static/assets/css/experiences.css @@ -113,3 +113,43 @@ @media only screen and (max-width: 576px) { } + + +/* iPhoneX, iPhone 6,7,8 */ +@media only screen and (max-width: 375px) { + .top-left { + left: -52%; + top: -50%; + } + + .top-right { + left: 52%; + top: -50%; + } +} + +/* Galaxy S5, Moto G4 */ +@media only screen and (max-width: 360px) { + .top-left { + left: -56%; + top: -50%; + } + + .top-right { + left: 56%; + top: -50%; + } +} + +/* iPhone 5 or before */ +@media only screen and (max-width: 320px) { + .top-left { + left: -64%; + top: -50%; + } + + .top-right { + left: 64%; + top: -50%; + } +}
\ No newline at end of file |