aboutsummaryrefslogtreecommitdiff
path: root/scss
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2015-12-07 23:32:31 -0800
committerMark Otto <[email protected]>2015-12-07 23:32:31 -0800
commit886bbe9bc0f2299fb84bc37cc55c2686ca634035 (patch)
tree4ba8fc72c7be001605a76fcd80e81f9a86f59f2a /scss
parent7303977c520342b0f557e09c798f6c302e287cf3 (diff)
parent0fdfde7709aecda1b75aa34e6a7e504e041cbf8a (diff)
downloadbootstrap-886bbe9bc0f2299fb84bc37cc55c2686ca634035.tar.xz
bootstrap-886bbe9bc0f2299fb84bc37cc55c2686ca634035.zip
Merge pull request #18138 from bassjobsen/patch-12
refactor blockqoutes to to avoid tag selectors & child selectors
Diffstat (limited to 'scss')
-rw-r--r--scss/_type.scss41
1 files changed, 21 insertions, 20 deletions
diff --git a/scss/_type.scss b/scss/_type.scss
index 35780d39e..da286e53a 100644
--- a/scss/_type.scss
+++ b/scss/_type.scss
@@ -125,24 +125,24 @@ 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
}
}
@@ -153,12 +153,13 @@ 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
}
}