]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
refactor blockqoutes to to avoid tag selectors & child selectors css v4
authorBass Jobsen <bass@w3masters.nl>
Tue, 3 Nov 2015 09:17:21 +0000 (10:17 +0100)
committerBass Jobsen <bass@w3masters.nl>
Tue, 3 Nov 2015 09:17:21 +0000 (10:17 +0100)
scss/_type.scss

index 1d55ccb2d7371a80bbed5b952a993c92c4dc832a..2b0a2567c73ac5e8919c0660a1c252f5e0b5ac81 100644 (file)
@@ -133,26 +133,26 @@ mark,
   margin-bottom: $spacer;
   font-size: $blockquote-font-size;
   border-left: .25rem solid $blockquote-border-color;
+}
 
-  p,
-  ul,
-  ol {
-    &:last-child {
-      margin-bottom: 0;
-    }
+.blockquote-text,
+.blockquote-list // ul, ol
+ {
+  &:last-child {
+    margin-bottom: 0;
   }
+}
 
-  footer {
-    display: block;
-    font-size: 80%; // back to default font-size
-    line-height: $line-height;
-    color: $blockquote-small-color;
+.blockquote-footer {
+  display: block;
+  font-size: 80%; // back to default font-size
+  line-height: $line-height;
+  color: $blockquote-small-color;
 
-    &::before {
-      content: "\2014 \00A0"; // em dash, nbsp
-    }
+  &::before {
+    content: "\2014 \00A0"; // em dash, nbsp
   }
-}
+ }
 
 // Opposite alignment of blockquote
 .blockquote-reverse {
@@ -161,13 +161,14 @@ mark,
   text-align: right;
   border-right: .25rem solid $blockquote-border-color;
   border-left: 0;
+}
 
-  // Account for citation
-  footer {
-    &::before { content: ""; }
-    &::after {
-      content: "\00A0 \2014"; // nbsp, em dash
-    }
+.blockquote-reverse .blockquote-footer {
+  &::before {
+    content: "";
+  }
+  &::after {
+    content: "\00A0 \2014"; // nbsp, em dash
   }
 }