Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
3279181f
Commit
3279181f
authored
11 years ago
by
Mark Otto
Browse files
Options
Download
Plain Diff
Merge pull request #8378 from liuyl/aftertosibling
optimize breadcrumb
parents
dd691b5c
5b69d340
3 merge requests
!8635
ignore Gruntfile.js in jekyll
,
!8656
Added rel="stylesheet" to CDN-Examples
,
!8527
Inner properties move 1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/assets/css/bootstrap.css
+2
-6
docs/assets/css/bootstrap.css
docs/components.html
+1
-1
docs/components.html
less/breadcrumbs.less
+2
-5
less/breadcrumbs.less
with
5 additions
and
12 deletions
+5
-12
docs/assets/css/bootstrap.css
+
2
-
6
View file @
3279181f
...
...
@@ -3285,15 +3285,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
{
...
...
This diff is collapsed.
Click to expand it.
docs/components.html
+
1
-
1
View file @
3279181f
...
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
less/breadcrumbs.less
+
2
-
5
View file @
3279181f
...
...
@@ -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;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets