Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
d30f47ef
Commit
d30f47ef
authored
Jan 19, 2013
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tighten up badges docs; less bottom margin on h3
parent
c21c3f10
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
108 additions
and
18 deletions
+108
-18
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+16
-7
docs/components.html
docs/components.html
+37
-1
docs/templates/pages/components.mustache
docs/templates/pages/components.mustache
+37
-1
less/counters.less
less/counters.less
+16
-7
less/type.less
less/type.less
+2
-2
No files found.
docs/assets/css/bootstrap.css
View file @
d30f47ef
...
...
@@ -425,13 +425,13 @@ h6 small {
}
h1
,
h2
,
h3
{
h2
{
margin-top
:
20px
;
margin-bottom
:
10px
;
line-height
:
40px
;
}
h3
,
h4
,
h5
,
h6
{
...
...
@@ -4006,15 +4006,14 @@ a.thumbnail:hover {
.counter
{
display
:
inline-block
;
min-width
:
10px
;
padding
:
2
px
7px
;
font-size
:
1
1.844
px
;
padding
:
3
px
7px
;
font-size
:
1
2
px
;
font-weight
:
bold
;
line-height
:
1
4px
;
line-height
:
1
;
color
:
#fff
;
text-align
:
center
;
text-shadow
:
0
-1px
0
rgba
(
0
,
0
,
0
,
0.25
);
white-space
:
nowrap
;
vertical-align
:
baselin
e
;
vertical-align
:
middl
e
;
background-color
:
#999999
;
border-radius
:
10px
;
}
...
...
@@ -4038,6 +4037,16 @@ a.counter:hover {
top
:
0
;
}
.nav-list
>
.active
>
a
>
.counter
,
.nav-pills
>
.active
>
a
>
.counter
{
color
:
#428bca
;
background-color
:
#fff
;
}
.nav-pills
>
li
>
a
>
.counter
{
margin-left
:
3px
;
}
@-webkit-keyframes
progress-bar-stripes
{
from
{
background-position
:
40px
0
;
...
...
docs/components.html
View file @
d30f47ef
...
...
@@ -1342,13 +1342,49 @@
<h1>
Counters
</h1>
</div>
<h3>
Basic usage
</h3>
<p>
Counters are used to indicator unread or new items. Add a
<code>
<
span class="counter"
>
</code>
to links, Bootstrap navs, and more.
</p>
<div
class=
"bs-docs-example"
>
<a
href=
"#"
>
Inbox
</a>
<span
class=
"counter"
>
42
</span>
</div>
<pre
class=
"prettyprint linenums"
>
<
a href="#"
>
Inbox
<
/a
>
<
span class="counter"
>
42
<
/span
>
</pre>
<p>
Built-in styles are included for placing counters in active states in pill and list navigations.
</p>
<div
class=
"bs-docs-example"
>
<ul
class=
"nav nav-pills"
>
<li
class=
"active"
><a
href=
"#"
>
Home
<span
class=
"counter"
>
42
</span></a></li>
<li><a
href=
"#"
>
Profile
</a></li>
<li><a
href=
"#"
>
Messages
<span
class=
"counter"
>
3
</span></a></li>
</ul>
<br>
<ul
class=
"nav nav-list"
style=
"max-width: 260px;"
>
<li
class=
"active"
>
<a
href=
"#"
>
<span
class=
"counter pull-right"
>
42
</span>
Home
</a>
</li>
<li><a
href=
"#"
>
Profile
</a></li>
<li>
<a
href=
"#"
>
<span
class=
"counter pull-right"
>
3
</span>
Messages
</a>
</li>
</ul>
</div>
<pre
class=
"prettyprint linenums"
>
<
ul class="nav nav-list"
>
<
li class="active"
>
<
a href="#"
>
Home
<
/a
>
<
/li
>
<
li
><
a href="#"
>
...
<
/a
><
/li
>
<
li
><
a href="#"
>
...
<
/a
><
/li
>
<
/ul
>
</pre>
<h3>
Easily collapsible
</h3>
<p>
For easy implementation, counters will simply collapse (via CSS's
<code>
:empty
</code>
selector) when no content exists within.
</p>
...
...
docs/templates/pages/components.mustache
View file @
d30f47ef
...
...
@@ -1271,13 +1271,49 @@
<h1>
Counters
</h1>
</div>
<h3>
Basic usage
</h3>
<p>
Counters are used to indicator unread or new items. Add a
<code>
<
span class="counter"
>
</code>
to links, Bootstrap navs, and more.
</p>
<div
class=
"bs-docs-example"
>
<a
href=
"#"
>
Inbox
</a>
<span
class=
"counter"
>
42
</span>
</div>
<pre
class=
"prettyprint linenums"
>
<
a href="#"
>
Inbox
<
/a
>
<
span class="counter"
>
42
<
/span
>
</pre>
<p>
Built-in styles are included for placing counters in active states in pill and list navigations.
</p>
<div
class=
"bs-docs-example"
>
<ul
class=
"nav nav-pills"
>
<li
class=
"active"
><a
href=
"#"
>
Home
<span
class=
"counter"
>
42
</span></a></li>
<li><a
href=
"#"
>
Profile
</a></li>
<li><a
href=
"#"
>
Messages
<span
class=
"counter"
>
3
</span></a></li>
</ul>
<br>
<ul
class=
"nav nav-list"
style=
"max-width: 260px;"
>
<li
class=
"active"
>
<a
href=
"#"
>
<span
class=
"counter pull-right"
>
42
</span>
Home
</a>
</li>
<li><a
href=
"#"
>
Profile
</a></li>
<li>
<a
href=
"#"
>
<span
class=
"counter pull-right"
>
3
</span>
Messages
</a>
</li>
</ul>
</div>
<pre
class=
"prettyprint linenums"
>
<
ul class="nav nav-list"
>
<
li class="active"
>
<
a href="#"
>
Home
<
/a
>
<
/li
>
<
li
><
a href="#"
>
...
<
/a
><
/li
>
<
li
><
a href="#"
>
...
<
/a
><
/li
>
<
/ul
>
</pre>
<h3>
Easily collapsible
</h3>
<p>
For easy implementation, counters will simply collapse (via CSS's
<code>
:empty
</code>
selector) when no content exists within.
</p>
...
...
less/counters.less
View file @
d30f47ef
...
...
@@ -6,18 +6,17 @@
// Base classes
.counter {
display: inline-block;
padding: 2px 7px;
font-size: @font-size-base * .846;
min-width: 10px;
padding: 3px 7px;
font-size: 12px;
font-weight: bold;
line-height: 14px; // ensure proper line-height if floated
color: #fff;
vertical-align: baseline;
line-height: 1;
vertical-align: middle;
white-space: nowrap;
text-
shadow: 0 -1px 0 rgba(0,0,0,.25)
;
text-
align: center
;
background-color: @grayLight;
border-radius: 10px;
min-width: 10px;
text-align: center;
// Empty labels/badges collapse
&:empty {
...
...
@@ -46,3 +45,13 @@ a.counter {
top: 0;
}
}
// Account for counters in navs
.nav-list > .active > a > .counter,
.nav-pills > .active > a > .counter {
color: @link-color;
background-color: #fff;
}
.nav-pills > li > a > .counter {
margin-left: 3px;
}
less/type.less
View file @
d30f47ef
...
...
@@ -65,12 +65,12 @@ h1, h2, h3, h4, h5, h6 {
}
h1,
h2,
h3 {
h2 {
margin-top: @line-height-base;
margin-bottom: @line-height-base / 2;
line-height: @line-height-base * 2;
}
h3,
h4,
h5,
h6 {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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