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
7e81f84b
Commit
7e81f84b
authored
Feb 04, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
buttons and icons updated for improved placement and variable support for icon paths
parent
81d1f3b9
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
15 deletions
+21
-15
docs/assets/bootstrap.zip
docs/assets/bootstrap.zip
+0
-0
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+5
-4
less/buttons.less
less/buttons.less
+2
-2
less/sprites.less
less/sprites.less
+3
-2
less/variables.less
less/variables.less
+11
-7
No files found.
docs/assets/bootstrap.zip
View file @
7e81f84b
No preview for this file type
docs/assets/css/bootstrap.css
View file @
7e81f84b
...
@@ -1122,8 +1122,9 @@ table .span12 {
...
@@ -1122,8 +1122,9 @@ table .span12 {
display
:
inline-block
;
display
:
inline-block
;
width
:
14px
;
width
:
14px
;
height
:
14px
;
height
:
14px
;
line-height
:
14px
;
vertical-align
:
text-top
;
vertical-align
:
text-top
;
background-image
:
url(
../img/glyphicons-halflings.png
)
;
background-image
:
url(
"../img/glyphicons-halflings.png"
)
;
background-position
:
14px
14px
;
background-position
:
14px
14px
;
background-repeat
:
no-repeat
;
background-repeat
:
no-repeat
;
*
margin-right
:
.3em
;
*
margin-right
:
.3em
;
...
@@ -1132,7 +1133,7 @@ table .span12 {
...
@@ -1132,7 +1133,7 @@ table .span12 {
*
margin-left
:
0
;
*
margin-left
:
0
;
}
}
.icon-white
{
.icon-white
{
background-image
:
url(
../img/glyphicons-halflings-white.png
)
;
background-image
:
url(
"../img/glyphicons-halflings-white.png"
)
;
}
}
.icon-glass
{
.icon-glass
{
background-position
:
0
0
;
background-position
:
0
0
;
...
@@ -1733,7 +1734,7 @@ table .span12 {
...
@@ -1733,7 +1734,7 @@ table .span12 {
-moz-border-radius
:
5px
;
-moz-border-radius
:
5px
;
border-radius
:
5px
;
border-radius
:
5px
;
}
}
.btn-large
.icon
{
.btn-large
[
class
^=
"icon-"
]
{
margin-top
:
1px
;
margin-top
:
1px
;
}
}
.btn-small
{
.btn-small
{
...
@@ -1741,7 +1742,7 @@ table .span12 {
...
@@ -1741,7 +1742,7 @@ table .span12 {
font-size
:
11px
;
font-size
:
11px
;
line-height
:
16px
;
line-height
:
16px
;
}
}
.btn-small
.icon
{
.btn-small
[
class
^=
"icon-"
]
{
margin-top
:
-1px
;
margin-top
:
-1px
;
}
}
.btn-primary
,
.btn-primary
,
...
...
less/buttons.less
View file @
7e81f84b
...
@@ -76,7 +76,7 @@
...
@@ -76,7 +76,7 @@
line-height: normal;
line-height: normal;
.border-radius(5px);
.border-radius(5px);
}
}
.btn-large
.icon
{
.btn-large
[class^="icon-"]
{
margin-top: 1px;
margin-top: 1px;
}
}
...
@@ -86,7 +86,7 @@
...
@@ -86,7 +86,7 @@
font-size: @baseFontSize - 2px;
font-size: @baseFontSize - 2px;
line-height: @baseLineHeight - 2px;
line-height: @baseLineHeight - 2px;
}
}
.btn-small
.icon
{
.btn-small
[class^="icon-"]
{
margin-top: -1px;
margin-top: -1px;
}
}
...
...
less/sprites.less
View file @
7e81f84b
...
@@ -18,15 +18,16 @@
...
@@ -18,15 +18,16 @@
display: inline-block;
display: inline-block;
width: 14px;
width: 14px;
height: 14px;
height: 14px;
line-height: 14px;
vertical-align: text-top;
vertical-align: text-top;
background-image: url(
../img/glyphicons-halflings.png
);
background-image: url(
@iconSpritePath
);
background-position: 14px 14px;
background-position: 14px 14px;
background-repeat: no-repeat;
background-repeat: no-repeat;
.ie7-restore-right-whitespace();
.ie7-restore-right-whitespace();
}
}
.icon-white {
.icon-white {
background-image: url(
../img/glyphicons-halflings-white.png
);
background-image: url(
@iconWhiteSpritePath
);
}
}
.icon-glass { background-position: 0 0; }
.icon-glass { background-position: 0 0; }
...
...
less/variables.less
View file @
7e81f84b
...
@@ -47,15 +47,19 @@
...
@@ -47,15 +47,19 @@
// Z-index master list
// Z-index master list
// Used for a bird's eye view of components dependent on the z-axis
// Used for a bird's eye view of components dependent on the z-axis
// Try to avoid customizing these :)
// Try to avoid customizing these :)
@zindexDropdown: 1000;
@zindexDropdown: 1000;
@zindexPopover: 1010;
@zindexPopover: 1010;
@zindexTooltip: 1020;
@zindexTooltip: 1020;
@zindexFixedNavbar: 1030;
@zindexFixedNavbar: 1030;
@zindexModalBackdrop: 1040;
@zindexModalBackdrop: 1040;
@zindexModal: 1050;
@zindexModal: 1050;
// Sprite icons path
@iconSpritePath: "../img/glyphicons-halflings.png";
@iconWhiteSpritePath: "../img/glyphicons-halflings-white.png";
// Input placeholder text color
// Input placeholder text color
@placeholderText: @grayLight;
@placeholderText:
@grayLight;
// Navbar
// Navbar
@navbarHeight: 40px;
@navbarHeight: 40px;
...
...
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