mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-09 15:16:51 +02:00
Fixes #11660: Depcreate small and .small in blockquote in favor of footer
This commit is contained in:
8
css.html
8
css.html
@@ -857,17 +857,17 @@ base_url: "../"
|
|||||||
<p>Style and content changes for simple variations on a standard <code><blockquote></code>.</p>
|
<p>Style and content changes for simple variations on a standard <code><blockquote></code>.</p>
|
||||||
|
|
||||||
<h4>Naming a source</h4>
|
<h4>Naming a source</h4>
|
||||||
<p>Add <code><small></code> tag or <code>.small</code> class for identifying the source. Wrap the name of the source work in <code><cite></code>.</p>
|
<p>Add a <code><footer></code> for identifying the source. Wrap the name of the source work in <code><cite></code>.</p>
|
||||||
<div class="bs-example">
|
<div class="bs-example">
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
|
||||||
<small>Someone famous in <cite title="Source Title">Source Title</cite></small>
|
<footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
</div>
|
</div>
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
|
||||||
<small>Someone famous in <cite title="Source Title">Source Title</cite></small>
|
<footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
@@ -876,7 +876,7 @@ base_url: "../"
|
|||||||
<div class="bs-example" style="overflow: hidden;">
|
<div class="bs-example" style="overflow: hidden;">
|
||||||
<blockquote class="pull-right">
|
<blockquote class="pull-right">
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
|
||||||
<small>Someone famous in <cite title="Source Title">Source Title</cite></small>
|
<footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
</div>
|
</div>
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
|
2
dist/css/bootstrap.css
vendored
2
dist/css/bootstrap.css
vendored
@@ -606,12 +606,14 @@ blockquote p {
|
|||||||
blockquote p:last-child {
|
blockquote p:last-child {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
blockquote footer,
|
||||||
blockquote small,
|
blockquote small,
|
||||||
blockquote .small {
|
blockquote .small {
|
||||||
display: block;
|
display: block;
|
||||||
line-height: 1.428571429;
|
line-height: 1.428571429;
|
||||||
color: #999;
|
color: #999;
|
||||||
}
|
}
|
||||||
|
blockquote footer:before,
|
||||||
blockquote small:before,
|
blockquote small:before,
|
||||||
blockquote .small:before {
|
blockquote .small:before {
|
||||||
content: '\2014 \00A0';
|
content: '\2014 \00A0';
|
||||||
|
2
dist/css/bootstrap.min.css
vendored
2
dist/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -270,6 +270,10 @@ blockquote {
|
|||||||
p:last-child {
|
p:last-child {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Deprecating small and .small for v3.1
|
||||||
|
// Context: https://github.com/twbs/bootstrap/issues/11660
|
||||||
|
footer,
|
||||||
small,
|
small,
|
||||||
.small {
|
.small {
|
||||||
display: block;
|
display: block;
|
||||||
|
Reference in New Issue
Block a user