Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/hossainemruz/toha.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorPau Trepat Segura <pau.trepat.segura@gmail.com>2020-06-30 18:04:21 +0300
committerGitHub <noreply@github.com>2020-06-30 18:04:21 +0300
commit0dca3b1800f9622394cf599ab95840c895b9eadd (patch)
tree80e89a2d8fd955f0d8c209992c02f1dfae251249 /static
parent45535cd290dd681a9348833c154f0b4a2da86085 (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.css40
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