mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-28 20:52:21 +01:00
remove .dividers from breadcrumbs, instead use :after and content
This commit is contained in:
parent
d1affe6154
commit
ecbf1159a4
4
docs/assets/css/bootstrap.css
vendored
4
docs/assets/css/bootstrap.css
vendored
@ -4591,9 +4591,11 @@ input[type="submit"].btn::-moz-focus-inner {
|
||||
text-shadow: 0 1px 0 #ffffff;
|
||||
}
|
||||
|
||||
.breadcrumb .divider {
|
||||
.breadcrumb li:after {
|
||||
display: inline-block;
|
||||
padding: 0 5px;
|
||||
color: #ccc;
|
||||
content: "\00a0 /";
|
||||
}
|
||||
|
||||
.breadcrumb .active {
|
||||
|
@ -1388,19 +1388,19 @@
|
||||
<li class="active">Home</li>
|
||||
</ul>
|
||||
<ul class="breadcrumb">
|
||||
<li><a href="#">Home</a> <span class="divider">/</span></li>
|
||||
<li><a href="#">Home</a></li>
|
||||
<li class="active">Library</li>
|
||||
</ul>
|
||||
<ul class="breadcrumb" style="margin-bottom: 5px;">
|
||||
<li><a href="#">Home</a> <span class="divider">/</span></li>
|
||||
<li><a href="#">Library</a> <span class="divider">/</span></li>
|
||||
<li><a href="#">Home</a></li>
|
||||
<li><a href="#">Library</a></li>
|
||||
<li class="active">Data</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<ul class="breadcrumb">
|
||||
<li><a href="#">Home</a> <span class="divider">/</span></li>
|
||||
<li><a href="#">Library</a> <span class="divider">/</span></li>
|
||||
<li><a href="#">Home</a></li>
|
||||
<li><a href="#">Library</a></li>
|
||||
<li class="active">Data</li>
|
||||
</ul>
|
||||
</pre>
|
||||
|
10
docs/templates/pages/components.mustache
vendored
10
docs/templates/pages/components.mustache
vendored
@ -1319,19 +1319,19 @@
|
||||
<li class="active">{{_i}}Home{{/i}}</li>
|
||||
</ul>
|
||||
<ul class="breadcrumb">
|
||||
<li><a href="#">{{_i}}Home{{/i}}</a> <span class="divider">/</span></li>
|
||||
<li><a href="#">{{_i}}Home{{/i}}</a></li>
|
||||
<li class="active">{{_i}}Library{{/i}}</li>
|
||||
</ul>
|
||||
<ul class="breadcrumb" style="margin-bottom: 5px;">
|
||||
<li><a href="#">{{_i}}Home{{/i}}</a> <span class="divider">/</span></li>
|
||||
<li><a href="#">{{_i}}Library{{/i}}</a> <span class="divider">/</span></li>
|
||||
<li><a href="#">{{_i}}Home{{/i}}</a></li>
|
||||
<li><a href="#">{{_i}}Library{{/i}}</a></li>
|
||||
<li class="active">{{_i}}Data{{/i}}</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<ul class="breadcrumb">
|
||||
<li><a href="#">{{_i}}Home{{/i}}</a> <span class="divider">/</span></li>
|
||||
<li><a href="#">{{_i}}Library{{/i}}</a> <span class="divider">/</span></li>
|
||||
<li><a href="#">{{_i}}Home{{/i}}</a></li>
|
||||
<li><a href="#">{{_i}}Library{{/i}}</a></li>
|
||||
<li class="active">{{_i}}Data{{/i}}</li>
|
||||
</ul>
|
||||
</pre>
|
||||
|
@ -13,7 +13,9 @@
|
||||
display: inline-block;
|
||||
text-shadow: 0 1px 0 @white;
|
||||
}
|
||||
.divider {
|
||||
li:after {
|
||||
display: inline-block;
|
||||
content: "\00a0 /"; // Unicode space added since inline-block means non-collapsing white-space
|
||||
padding: 0 5px;
|
||||
color: #ccc;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user