Parcourir la source

reorganise rules

Hugo Roy il y a 9 ans
Parent
commit
898f20ce57
1 fichiers modifiés avec 14 ajouts et 13 suppressions
  1. 14 13
      _sass/typography.scss

+ 14 - 13
_sass/typography.scss

@@ -137,22 +137,23 @@ p {
     -ms-hyphens: auto;
     -moz-hyphens: auto;
     hyphens: auto;
-}
 
-.post article p {
-  @if $paragraph-indent == true {
-    & {
-			text-indent: $indent-var;
-		}
-	// sibling indentation
     & + p {
-			text-indent: $indent-var;
-			margin-top: -($indent-var);
-		}
-    blockquote &, table &, figure &, header &, footer &, .noindent & {
-        text-indent: 0;
+        margin-top: -($indent-var);
+    }
+}
+
+@if $paragraph-indent == true {
+    .post article {
+        p {
+                text-indent: $indent-var;
+            }
+    }
+    blockquote, table, figure, header, footer, .noindent {
+        p {
+            text-indent: 0;
+        }
     }
-  }
 }
 
 /*