]> cat aescling's git repositories - mastodon.git/commitdiff
Adjust mobile landing page (#4366)
authorLynx Kotoura <lynx@lv9.org>
Tue, 25 Jul 2017 19:31:56 +0000 (04:31 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Tue, 25 Jul 2017 19:31:56 +0000 (21:31 +0200)
* Adjust mobile landing page

Change mobile viewport threshold to 840px in consideration of padding. Fix loss of "container hero" padding in about/more under 675px.

* Fix indent

app/javascript/styles/about.scss

index 8aa5d8eb497b0b552f81a90ddfdc45c7bc8a72ed..5a4bcef61250e303b2a9fa507b4e88b5787a08f6 100644 (file)
     }
   }
 
-  @media screen and (max-width: 800px) {
+  @media screen and (max-width: 840px) {
     .container {
       padding: 0 20px;
     }
   @media screen and (max-width: 675px) {
     .header-wrapper {
       padding-top: 0;
+
+      &.compact .hero .heading {
+        padding-bottom: 20px;
+      }
     }
 
     .header .container,
     }
 
     .header {
-      padding-top: 0;
 
       .hero {
         margin-top: 30px;
-        padding: 0;
-
-        .heading {
-          padding-bottom: 20px;
-        }
       }
 
       .floats {