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
2c3365f9
Commit
2c3365f9
authored
Jan 14, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow btn-groups to work in navbars
parent
74c0fc17
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
9 deletions
+28
-9
bootstrap.css
bootstrap.css
+6
-3
bootstrap.min.css
bootstrap.min.css
+3
-2
docs/index.html
docs/index.html
+12
-1
lib/navbar.less
lib/navbar.less
+7
-3
No files found.
bootstrap.css
View file @
2c3365f9
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
* Designed and built with all the love in the world @twitter by @mdo and @fat.
* Date: Sat Jan 14 1
6:56:39
PST 2012
* Date: Sat Jan 14 1
7:11:53
PST 2012
*/
*/
html
,
body
{
html
,
body
{
margin
:
0
;
margin
:
0
;
...
@@ -1611,9 +1611,12 @@ i {
...
@@ -1611,9 +1611,12 @@ i {
color
:
#ffffff
;
color
:
#ffffff
;
background-color
:
transparent
;
background-color
:
transparent
;
}
}
.navbar
.btn
{
.navbar
.btn
,
.navbar
.btn-group
{
margin-top
:
5px
;
margin-top
:
5px
;
}
}
.navbar
.btn-group
.btn
{
margin-top
:
0
;
}
.navbar-form
{
.navbar-form
{
margin-bottom
:
0
;
margin-bottom
:
0
;
}
}
...
@@ -1758,7 +1761,7 @@ i {
...
@@ -1758,7 +1761,7 @@ i {
top
:
-6px
;
top
:
-6px
;
left
:
10px
;
left
:
10px
;
}
}
.navbar
.
dropdown-toggle
.caret
,
.navbar
.open.dropdown
.caret
{
.navbar
.
nav
.dropdown-toggle
.caret
,
.navbar
.nav
.open.dropdown
.caret
{
border-top-color
:
#fff
;
border-top-color
:
#fff
;
}
}
.navbar
.nav
.active
.caret
{
.navbar
.nav
.active
.caret
{
...
...
bootstrap.min.css
View file @
2c3365f9
...
@@ -317,7 +317,8 @@ i{background-image:url(docs/assets/img/glyphicons-halflings-sprite.png);backgrou
...
@@ -317,7 +317,8 @@ i{background-image:url(docs/assets/img/glyphicons-halflings-sprite.png);backgrou
.navbar
.brand
:hover
{
color
:
#ffffff
;
text-decoration
:
none
;}
.navbar
.brand
:hover
{
color
:
#ffffff
;
text-decoration
:
none
;}
.navbar
.brand
{
float
:
left
;
display
:
block
;
padding
:
8px
20px
12px
;
margin-left
:
-20px
;
font-size
:
20px
;
font-weight
:
200
;
line-height
:
1
;
color
:
#ffffff
;}
.navbar
.brand
{
float
:
left
;
display
:
block
;
padding
:
8px
20px
12px
;
margin-left
:
-20px
;
font-size
:
20px
;
font-weight
:
200
;
line-height
:
1
;
color
:
#ffffff
;}
.navbar
p
{
margin
:
0
;
line-height
:
40px
;}
.navbar
p
a
:hover
{
color
:
#ffffff
;
background-color
:
transparent
;}
.navbar
p
{
margin
:
0
;
line-height
:
40px
;}
.navbar
p
a
:hover
{
color
:
#ffffff
;
background-color
:
transparent
;}
.navbar
.btn
{
margin-top
:
5px
;}
.navbar
.btn
,
.navbar
.btn-group
{
margin-top
:
5px
;}
.navbar
.btn-group
.btn
{
margin-top
:
0
;}
.navbar-form
{
margin-bottom
:
0
;}
.navbar-form
input
,
.navbar-form
select
{
display
:
inline-block
;
margin-bottom
:
0
;}
.navbar-form
{
margin-bottom
:
0
;}
.navbar-form
input
,
.navbar-form
select
{
display
:
inline-block
;
margin-bottom
:
0
;}
.navbar-search
{
position
:
relative
;
float
:
left
;
margin-top
:
6px
;
margin-bottom
:
0
;}
.navbar-search
.search-query
{
padding
:
4px
9px
;
font-family
:
"Helvetica Neue"
,
Helvetica
,
Arial
,
sans-serif
;
font-size
:
13px
;
font-weight
:
normal
;
line-height
:
1
;
color
:
#ffffff
;
color
:
rgba
(
255
,
255
,
255
,
0.75
);
background-color
:
#444
;
background-color
:
rgba
(
255
,
255
,
255
,
0.3
);
border
:
1px
solid
#111
;
-webkit-box-shadow
:
inset
0
1px
2px
rgba
(
0
,
0
,
0
,
0.1
),
0
1px
0px
rgba
(
255
,
255
,
255
,
0.15
);
-moz-box-shadow
:
inset
0
1px
2px
rgba
(
0
,
0
,
0
,
0.1
),
0
1px
0px
rgba
(
255
,
255
,
255
,
0.15
);
box-shadow
:
inset
0
1px
2px
rgba
(
0
,
0
,
0
,
0.1
),
0
1px
0px
rgba
(
255
,
255
,
255
,
0.15
);
-webkit-transition
:
none
;
-moz-transition
:
none
;
-ms-transition
:
none
;
-o-transition
:
none
;
transition
:
none
;}
.navbar-search
.search-query
:-moz-placeholder
{
color
:
#eeeeee
;}
.navbar-search
{
position
:
relative
;
float
:
left
;
margin-top
:
6px
;
margin-bottom
:
0
;}
.navbar-search
.search-query
{
padding
:
4px
9px
;
font-family
:
"Helvetica Neue"
,
Helvetica
,
Arial
,
sans-serif
;
font-size
:
13px
;
font-weight
:
normal
;
line-height
:
1
;
color
:
#ffffff
;
color
:
rgba
(
255
,
255
,
255
,
0.75
);
background-color
:
#444
;
background-color
:
rgba
(
255
,
255
,
255
,
0.3
);
border
:
1px
solid
#111
;
-webkit-box-shadow
:
inset
0
1px
2px
rgba
(
0
,
0
,
0
,
0.1
),
0
1px
0px
rgba
(
255
,
255
,
255
,
0.15
);
-moz-box-shadow
:
inset
0
1px
2px
rgba
(
0
,
0
,
0
,
0.1
),
0
1px
0px
rgba
(
255
,
255
,
255
,
0.15
);
box-shadow
:
inset
0
1px
2px
rgba
(
0
,
0
,
0
,
0.1
),
0
1px
0px
rgba
(
255
,
255
,
255
,
0.15
);
-webkit-transition
:
none
;
-moz-transition
:
none
;
-ms-transition
:
none
;
-o-transition
:
none
;
transition
:
none
;}
.navbar-search
.search-query
:-moz-placeholder
{
color
:
#eeeeee
;}
.navbar-search
.search-query
::-webkit-input-placeholder
{
color
:
#eeeeee
;}
.navbar-search
.search-query
::-webkit-input-placeholder
{
color
:
#eeeeee
;}
...
@@ -336,7 +337,7 @@ i{background-image:url(docs/assets/img/glyphicons-halflings-sprite.png);backgrou
...
@@ -336,7 +337,7 @@ i{background-image:url(docs/assets/img/glyphicons-halflings-sprite.png);backgrou
.navbar
.nav.pull-right
{
margin-left
:
10px
;
margin-right
:
0
;}
.navbar
.nav.pull-right
{
margin-left
:
10px
;
margin-right
:
0
;}
.navbar
.dropdown-menu
{
top
:
41px
;
-webkit-border-radius
:
4px
;
-moz-border-radius
:
4px
;
border-radius
:
4px
;}
.navbar
.dropdown-menu
:before
{
content
:
''
;
display
:
inline-block
;
border-left
:
7px
solid
transparent
;
border-right
:
7px
solid
transparent
;
border-bottom
:
7px
solid
#ccc
;
border-bottom-color
:
rgba
(
0
,
0
,
0
,
0.2
);
position
:
absolute
;
top
:
-7px
;
left
:
9px
;}
.navbar
.dropdown-menu
{
top
:
41px
;
-webkit-border-radius
:
4px
;
-moz-border-radius
:
4px
;
border-radius
:
4px
;}
.navbar
.dropdown-menu
:before
{
content
:
''
;
display
:
inline-block
;
border-left
:
7px
solid
transparent
;
border-right
:
7px
solid
transparent
;
border-bottom
:
7px
solid
#ccc
;
border-bottom-color
:
rgba
(
0
,
0
,
0
,
0.2
);
position
:
absolute
;
top
:
-7px
;
left
:
9px
;}
.navbar
.dropdown-menu
:after
{
content
:
''
;
display
:
inline-block
;
border-left
:
6px
solid
transparent
;
border-right
:
6px
solid
transparent
;
border-bottom
:
6px
solid
#fff
;
position
:
absolute
;
top
:
-6px
;
left
:
10px
;}
.navbar
.dropdown-menu
:after
{
content
:
''
;
display
:
inline-block
;
border-left
:
6px
solid
transparent
;
border-right
:
6px
solid
transparent
;
border-bottom
:
6px
solid
#fff
;
position
:
absolute
;
top
:
-6px
;
left
:
10px
;}
.navbar
.
dropdown-toggle
.caret
,
.navbar
.open.dropdown
.caret
{
border-top-color
:
#fff
;}
.navbar
.
nav
.dropdown-toggle
.caret
,
.navbar
.nav
.open.dropdown
.caret
{
border-top-color
:
#fff
;}
.navbar
.nav
.active
.caret
{
filter
:
alpha
(
opacity
=
100
);
-moz-opacity
:
1
;
opacity
:
1
;}
.navbar
.nav
.active
.caret
{
filter
:
alpha
(
opacity
=
100
);
-moz-opacity
:
1
;
opacity
:
1
;}
.navbar
.nav
.open
>
.dropdown-toggle
,
.navbar
.nav
.active
>
.dropdown-toggle
,
.navbar
.nav
.open.active
>
.dropdown-toggle
{
background-color
:
transparent
;}
.navbar
.nav
.open
>
.dropdown-toggle
,
.navbar
.nav
.active
>
.dropdown-toggle
,
.navbar
.nav
.open.active
>
.dropdown-toggle
{
background-color
:
transparent
;}
.navbar
.nav
.active
>
.dropdown-toggle
:hover
{
color
:
#fff
;}
.navbar
.nav
.active
>
.dropdown-toggle
:hover
{
color
:
#fff
;}
...
...
docs/index.html
View file @
2c3365f9
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
<div
class=
"navbar-inner"
>
<div
class=
"navbar-inner"
>
<div
class=
"container"
>
<div
class=
"container"
>
<a
class=
"brand"
href=
"./index.html"
>
Bootstrap
</a>
<a
class=
"brand"
href=
"./index.html"
>
Bootstrap
</a>
<ul
class=
"nav"
>
<ul
class=
"nav"
style=
"display: none"
>
<li
class=
"active"
><a
href=
"./index.html"
>
Overview
</a></li>
<li
class=
"active"
><a
href=
"./index.html"
>
Overview
</a></li>
<li
class=
"dropdown"
>
<li
class=
"dropdown"
>
<a
href=
"./scaffolding.html"
class=
"dropdown-toggle"
data-toggle=
"dropdown"
>
<a
href=
"./scaffolding.html"
class=
"dropdown-toggle"
data-toggle=
"dropdown"
>
...
@@ -102,6 +102,17 @@
...
@@ -102,6 +102,17 @@
</a>
</a>
</li>
</li>
</ul>
</ul>
<div
class=
"btn-group"
>
<a
class=
"btn"
href=
"#"
>
Action
</a>
<a
class=
"btn dropdown-toggle"
data-toggle=
"dropdown"
href=
"#"
><span
class=
"caret"
></span></a>
<ul
class=
"dropdown-menu"
>
<li><a
href=
"#"
>
Action
</a></li>
<li><a
href=
"#"
>
Another action
</a></li>
<li><a
href=
"#"
>
Something else here
</a></li>
<li
class=
"divider"
></li>
<li><a
href=
"#"
>
Separated link
</a></li>
</ul>
</div>
<!-- /btn-group -->
</div>
</div>
</div>
</div>
</div>
</div>
...
...
lib/navbar.less
View file @
2c3365f9
...
@@ -45,9 +45,13 @@
...
@@ -45,9 +45,13 @@
}
}
}
}
// Buttons in navbar
// Buttons in navbar
.btn {
.btn,
.btn-group {
margin-top: 5px; // make buttons vertically centered in navbar
margin-top: 5px; // make buttons vertically centered in navbar
}
}
.btn-group .btn {
margin-top: 0;
}
}
}
// Navbar forms
// Navbar forms
...
@@ -218,8 +222,8 @@
...
@@ -218,8 +222,8 @@
}
}
// Dropdown toggle caret
// Dropdown toggle caret
.navbar .dropdown-toggle .caret,
.navbar .
nav .
dropdown-toggle .caret,
.navbar .open.dropdown .caret {
.navbar .
nav .
open.dropdown .caret {
border-top-color: #fff;
border-top-color: #fff;
}
}
.navbar .nav .active .caret {
.navbar .nav .active .caret {
...
...
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