Bladeren bron

Change stylesheet for data-position attribute

Javi Jimenez Villar 13 jaren geleden
bovenliggende
commit
d7510d66a6
3 gewijzigde bestanden met toevoegingen van 6 en 5 verwijderingen
  1. BIN
      example/assets/logo.png
  2. 6 0
      src/stylesheets/lungo.layout.styl
  3. 0 5
      src/stylesheets/lungo.media.phone.styl

BIN
example/assets/logo.png


+ 6 - 0
src/stylesheets/lungo.layout.styl

@@ -17,6 +17,12 @@ body, html
   overflow: hidden
 
 body
+  &[data-position="absolute"] > section
+    position: absolute
+
+  &[data-position="fixed"] > section
+    position: fixed
+
   /* ========================================================================= */
   /* ============================= ASIDE/SECTION ============================= */
   /* ========================================================================= */

+ 0 - 5
src/stylesheets/lungo.media.phone.styl

@@ -3,11 +3,6 @@
 /* ==== Any phone ==== */
 @media only screen and (max-width: 767px)
   body
-    &[data-position="absolute"] > section
-      position: absolute
-
-    &[data-position="fixed"] > section
-      position: fixed
 
     & > aside
       position: absolute