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
bc4f5d56
Commit
bc4f5d56
authored
Oct 01, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes #5275: inline-block badges and labels, then fix padding accordingly
parent
50355929
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+4
-2
less/labels-badges.less
less/labels-badges.less
+4
-2
No files found.
docs/assets/css/bootstrap.css
View file @
bc4f5d56
...
@@ -5435,6 +5435,8 @@ a.thumbnail:hover {
...
@@ -5435,6 +5435,8 @@ a.thumbnail:hover {
.label
,
.label
,
.badge
{
.badge
{
display
:
inline-block
;
padding
:
2px
4px
;
font-size
:
11.844px
;
font-size
:
11.844px
;
font-weight
:
bold
;
font-weight
:
bold
;
line-height
:
14px
;
line-height
:
14px
;
...
@@ -5446,14 +5448,14 @@ a.thumbnail:hover {
...
@@ -5446,14 +5448,14 @@ a.thumbnail:hover {
}
}
.label
{
.label
{
padding
:
1px
4px
2px
;
-webkit-border-radius
:
3px
;
-webkit-border-radius
:
3px
;
-moz-border-radius
:
3px
;
-moz-border-radius
:
3px
;
border-radius
:
3px
;
border-radius
:
3px
;
}
}
.badge
{
.badge
{
padding
:
1px
9px
2px
;
padding-right
:
9px
;
padding-left
:
9px
;
-webkit-border-radius
:
9px
;
-webkit-border-radius
:
9px
;
-moz-border-radius
:
9px
;
-moz-border-radius
:
9px
;
border-radius
:
9px
;
border-radius
:
9px
;
...
...
less/labels-badges.less
View file @
bc4f5d56
...
@@ -6,6 +6,8 @@
...
@@ -6,6 +6,8 @@
// Base classes
// Base classes
.label,
.label,
.badge {
.badge {
display: inline-block;
padding: 2px 4px;
font-size: @baseFontSize * .846;
font-size: @baseFontSize * .846;
font-weight: bold;
font-weight: bold;
line-height: 14px; // ensure proper line-height if floated
line-height: 14px; // ensure proper line-height if floated
...
@@ -17,11 +19,11 @@
...
@@ -17,11 +19,11 @@
}
}
// Set unique padding and border-radii
// Set unique padding and border-radii
.label {
.label {
padding: 1px 4px 2px;
.border-radius(3px);
.border-radius(3px);
}
}
.badge {
.badge {
padding: 1px 9px 2px;
padding-left: 9px;
padding-right: 9px;
.border-radius(9px);
.border-radius(9px);
}
}
...
...
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