mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
use sibling selector instead of pseudo selector
This commit is contained in:
parent
749dc35328
commit
5b69d34053
8
docs/assets/css/bootstrap.css
vendored
8
docs/assets/css/bootstrap.css
vendored
@ -3289,15 +3289,11 @@ button.close {
|
||||
text-shadow: 0 1px 0 #fff;
|
||||
}
|
||||
|
||||
.breadcrumb > li:after {
|
||||
.breadcrumb > li + li:before {
|
||||
display: inline-block;
|
||||
padding: 0 5px;
|
||||
color: #ccc;
|
||||
content: "\00a0 /";
|
||||
}
|
||||
|
||||
.breadcrumb > li:last-child:after {
|
||||
display: none;
|
||||
content: "/\00a0";
|
||||
}
|
||||
|
||||
.breadcrumb > .active {
|
||||
|
@ -1016,7 +1016,7 @@ body { padding-bottom: 70px; }
|
||||
<h1>Breadcrumbs <small></small></h1>
|
||||
</div>
|
||||
<p class="lead">Indicate the current page's location within a navigational hierarchy.</p>
|
||||
<p>Separators are automatically added in CSS through <code>:after</code> and <code>content</code>.</p>
|
||||
<p>Separators are automatically added in CSS through <code>:before</code> and <code>content</code>.</p>
|
||||
<div class="bs-example">
|
||||
<ul class="breadcrumb">
|
||||
<li class="active">Home</li>
|
||||
|
@ -12,15 +12,12 @@
|
||||
> li {
|
||||
display: inline-block;
|
||||
text-shadow: 0 1px 0 #fff;
|
||||
&:after {
|
||||
&+li:before {
|
||||
display: inline-block;
|
||||
content: "\00a0 /"; // Unicode space added since inline-block means non-collapsing white-space
|
||||
content: "/\00a0"; // Unicode space added since inline-block means non-collapsing white-space
|
||||
padding: 0 5px;
|
||||
color: #ccc;
|
||||
}
|
||||
&:last-child:after {
|
||||
display: none; // No divider after last element
|
||||
}
|
||||
}
|
||||
> .active {
|
||||
color: @gray-light;
|
||||
|
Loading…
Reference in New Issue
Block a user