Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <markd.otto@gmail.com>2015-12-08 10:32:31 +0300
committerMark Otto <markd.otto@gmail.com>2015-12-08 10:32:31 +0300
commit886bbe9bc0f2299fb84bc37cc55c2686ca634035 (patch)
tree4ba8fc72c7be001605a76fcd80e81f9a86f59f2a /scss/_type.scss
parent7303977c520342b0f557e09c798f6c302e287cf3 (diff)
parent0fdfde7709aecda1b75aa34e6a7e504e041cbf8a (diff)
Merge pull request #18138 from bassjobsen/patch-12
refactor blockqoutes to to avoid tag selectors & child selectors
Diffstat (limited to 'scss/_type.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 35780d39e9..da286e53a7 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
}
}