]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Allow inline `<cite>` elements
authorJames Fenwick <j.fenwick@me.com>
Fri, 29 Sep 2017 15:27:00 +0000 (16:27 +0100)
committerJames Fenwick <j.fenwick@me.com>
Wed, 1 Nov 2017 12:25:47 +0000 (12:25 +0000)
Move the block styling and reduced font size on `<cite>` to only
apply when it is a child of `<blockquote>`.

Fixes issue #10226

scss/typography/_base.scss

index 000bd335444f352253d13502075936acbfa2bbac..20e5f0656f49dc73f1a19bc0c88553bf8f15a1ce 100644 (file)
@@ -455,17 +455,21 @@ $abbr-underline: 1px dotted $black !default;
       line-height: $paragraph-lineheight;
       color: $blockquote-color;
     }
+
+    // Citations
+    cite {
+      display: block;
+      font-size: $cite-font-size;
+
+      &:before {
+        content: $cite-pseudo-content;
+      }
+    }
   }
 
-  // Citations
+  // Inline Citations
   cite {
-    display: block;
-    font-size: $cite-font-size;
     color: $cite-color;
-
-    &:before {
-      content: $cite-pseudo-content;
-    }
   }
 
   // Abbreviations