]> cat aescling's git repositories - mastodon.git/commitdiff
Add styles for small devices to .onboarding-modal (#2748)
authorunarist <m.unarist@gmail.com>
Wed, 3 May 2017 12:02:15 +0000 (21:02 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Wed, 3 May 2017 12:02:15 +0000 (14:02 +0200)
app/javascript/styles/components.scss

index 5233899313992220cd5c4a600c3ea799c3ffc29e..3c91e730b199b1a679314213905b6d68dafdeddb 100644 (file)
@@ -2827,6 +2827,19 @@ button.icon-button.active i.fa-retweet {
   margin-right: 10px;
 }
 
+@media screen and (max-width: 400px) {
+  .onboarding-modal__page-one {
+    flex-direction: column;
+  }
+
+  .onboarding-modal__page-one__elephant-friend {
+    width: 100%;
+    height: 30vh;
+    max-height: 160px;
+    margin-bottom: 5vh;
+  }
+}
+
 .onboarding-modal__page-two,
 .onboarding-modal__page-three,
 .onboarding-modal__page-four,
@@ -2889,6 +2902,30 @@ button.icon-button.active i.fa-retweet {
   }
 }
 
+@media screen and (max-width: 320px) and (max-height: 600px) {
+  .onboarding-modal__page p {
+    font-size: 14px;
+    line-height: 20px;
+  }
+
+  .onboarding-modal__page-two .figure,
+  .onboarding-modal__page-three .figure,
+  .onboarding-modal__page-four .figure,
+  .onboarding-modal__page-five .figure {
+    font-size: 12px;
+    margin-bottom: 10px;
+  }
+
+  .onboarding-modal__page-four__columns .row {
+    margin-bottom: 10px;
+  }
+
+  .onboarding-modal__page-four__columns .column-header {
+    padding: 5px;
+    font-size: 12px;
+  }
+}
+
 .onboarding-modal__image {
   border-radius: 8px;
   width: 70vw;