فهرست منبع

placeholder support inside media queries doesn't work

Eddie Machado 12 سال پیش
والد
کامیت
dc42aa52ef
1فایلهای تغییر یافته به همراه24 افزوده شده و 6 حذف شده
  1. 24 6
      library/scss/partials/_grid.scss

+ 24 - 6
library/scss/partials/_grid.scss

@@ -25,12 +25,6 @@ over your project's layout.
 ******************************************************************/
 
 
-// each column has these styles
-%grid-col {
-  float: left;
-  padding-right: 0.75em;
-}
-
 .last-col {
   float: right;
   padding-right: 0;
@@ -45,6 +39,14 @@ them however you see fit.
 */
 @media (max-width: 767px) {
 
+  /*
+   *establishing the extend within each breakpoint
+  */
+  %grid-col {
+    float: left;
+    padding-right: 0.75em;
+  }
+
   .m-all {
     @extend %grid-col;
     width: 100%;
@@ -81,6 +83,14 @@ them however you see fit.
 /* Portrait tablet to landscape */
 @media (min-width: 768px) and (max-width: 1029px) {
 
+  /*
+   *establishing the extend within each breakpoint
+  */
+  %grid-col {
+    float: left;
+    padding-right: 0.75em;
+  }
+
   .t-all {
     @extend %grid-col;
     width: 100%;
@@ -136,6 +146,14 @@ them however you see fit.
 /* Landscape to small desktop */
 @media (min-width: 1030px) {
 
+  /*
+   *establishing the extend within each breakpoint
+  */
+  %grid-col {
+    float: left;
+    padding-right: 0.75em;
+  }
+
   .d-all  {
     @extend %grid-col;
     width: 100%;