Skip to content
GitLab
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
c20d00cf
Commit
c20d00cf
authored
10 years ago
by
Mark Otto
Browse files
Options
Download
Plain Diff
Merge pull request #14546 from twbs/address-14541
Address
#14541
by tweaking badge docs
parents
f5a05fe9
bb8ca6b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/_includes/components/badges.html
+12
-28
docs/_includes/components/badges.html
with
12 additions
and
28 deletions
+12
-28
docs/_includes/components/badges.html
+
12
-
28
View file @
c20d00cf
...
...
@@ -5,9 +5,17 @@
<div
class=
"bs-example"
>
<a
href=
"#"
>
Inbox
<span
class=
"badge"
>
42
</span></a>
<br><br>
<button
class=
"btn btn-primary"
type=
"button"
>
Messages
<span
class=
"badge"
>
4
</span>
</button>
</div>
{% highlight html %}
<a
href=
"#"
>
Inbox
<span
class=
"badge"
>
42
</span></a>
<button
class=
"btn btn-primary"
type=
"button"
>
Messages
<span
class=
"badge"
>
4
</span>
</button>
{% endhighlight %}
<h4>
Self collapsing
</h4>
...
...
@@ -26,36 +34,12 @@
<li
role=
"presentation"
><a
href=
"#"
>
Profile
</a></li>
<li
role=
"presentation"
><a
href=
"#"
>
Messages
<span
class=
"badge"
>
3
</span></a></li>
</ul>
<br>
<ul
class=
"nav nav-pills nav-stacked"
role=
"tablist"
style=
"max-width: 260px;"
>
<li
role=
"presentation"
class=
"active"
>
<a
href=
"#"
>
<span
class=
"badge pull-right"
>
42
</span>
Home
</a>
</li>
<li
role=
"presentation"
><a
href=
"#"
>
Profile
</a></li>
<li
role=
"presentation"
>
<a
href=
"#"
>
<span
class=
"badge pull-right"
>
3
</span>
Messages
</a>
</li>
</ul>
<br>
<button
class=
"btn btn-primary"
type=
"button"
>
Messages
<span
class=
"badge"
>
4
</span>
</button>
</div>
{% highlight html %}
<ul
class=
"nav nav-pills nav-stacked"
role=
"tablist"
>
<li
role=
"presentation"
class=
"active"
>
<a
href=
"#"
>
<span
class=
"badge pull-right"
>
42
</span>
Home
</a>
</li>
...
<ul
class=
"nav nav-pills"
role=
"tablist"
>
<li
role=
"presentation"
class=
"active"
><a
href=
"#"
>
Home
<span
class=
"badge"
>
42
</span></a></li>
<li
role=
"presentation"
><a
href=
"#"
>
Profile
</a></li>
<li
role=
"presentation"
><a
href=
"#"
>
Messages
<span
class=
"badge"
>
3
</span></a></li>
</ul>
{% endhighlight %}
</div>
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