Sfoglia il codice sorgente

Added mobile-first media queries

Artur Paikin 9 anni fa
parent
commit
0d8f8a7aa3

+ 15 - 8
website/themes/uppy/source/css/_index.scss

@@ -133,15 +133,19 @@ html, body {
 
 .IndexExample-block {
   padding: 7px;
-  text-align: left;
-  display: inline-block;
-  width: 43%;
+  // text-align: left;
+  // display: inline-block;
   height: 300px;
-  vertical-align: top;
   background-color: $color-codebg;
   border-radius: $size-radius;
   // box-shadow: 0 1px 2px rgba(0,0,0,.125);
   overflow-x: scroll;
+
+  @media #{$screen-small} {
+    width: 43%;
+    display: inline-block;
+    vertical-align: top;
+  }
 }
 
 #features {
@@ -239,10 +243,6 @@ html, body {
 }
 
 #footer {
-  text-align: center;
-  color: #fff;
-  padding: 4em 0;
-  background-color: $color-darkgray;
 
   .avatar {
     width: 100px;
@@ -276,6 +276,13 @@ html, body {
   p { margin: .3em 0; }
 }
 
+.IndexFooter {
+  text-align: center;
+  color: #fff;
+  padding: 4em 0;
+  background-color: darken($color-violet, 15%);
+}
+
 @media screen and (max-width: 480px) {
   body {
     font-size: 14px;

+ 6 - 0
website/themes/uppy/source/css/_settings.scss

@@ -28,3 +28,9 @@ $color-primary    : $color-violet;
 // sizes
 $size-radius : 2px;
 $size-headerHeight: 40px;
+
+// Media queries
+
+// small screen
+$screen-small: 'only screen and (min-width: 480px)';
+$screen-medium: 'only screen and (min-width: 860px)';