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
0ff88f2d
Commit
0ff88f2d
authored
Feb 12, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable the use of .nav-header in dropdowns per #1827
parent
a9e469e7
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
22 deletions
+36
-22
docs/assets/bootstrap.zip
docs/assets/bootstrap.zip
+0
-0
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+15
-11
docs/components.html
docs/components.html
+2
-0
docs/templates/pages/components.mustache
docs/templates/pages/components.mustache
+2
-0
less/navs.less
less/navs.less
+17
-11
No files found.
docs/assets/bootstrap.zip
View file @
0ff88f2d
No preview for this file type
docs/assets/css/bootstrap.css
View file @
0ff88f2d
...
@@ -2130,27 +2130,31 @@ button.btn.small, input[type="submit"].btn.small {
...
@@ -2130,27 +2130,31 @@ button.btn.small, input[type="submit"].btn.small {
text-decoration
:
none
;
text-decoration
:
none
;
background-color
:
#eeeeee
;
background-color
:
#eeeeee
;
}
}
.nav
.nav-header
{
display
:
block
;
padding
:
3px
15px
;
font-size
:
11px
;
font-weight
:
bold
;
line-height
:
18px
;
color
:
#999999
;
text-shadow
:
0
1px
0
rgba
(
255
,
255
,
255
,
0.5
);
text-transform
:
uppercase
;
}
.nav
li
+
.nav-header
{
margin-top
:
9px
;
}
.nav-list
{
.nav-list
{
padding-left
:
14px
;
padding-left
:
14px
;
padding-right
:
14px
;
padding-right
:
14px
;
margin-bottom
:
0
;
margin-bottom
:
0
;
}
}
.nav-list
>
li
>
a
,
.nav-list
.nav-header
{
.nav-list
>
li
>
a
,
.nav-list
.nav-header
{
display
:
block
;
padding
:
3px
15px
;
margin-left
:
-15px
;
margin-left
:
-15px
;
margin-right
:
-15px
;
margin-right
:
-15px
;
text-shadow
:
0
1px
0
rgba
(
255
,
255
,
255
,
0.5
);
text-shadow
:
0
1px
0
rgba
(
255
,
255
,
255
,
0.5
);
}
}
.nav-list
.nav-header
{
.nav-list
>
li
>
a
{
font-size
:
11px
;
padding
:
3px
15px
;
font-weight
:
bold
;
line-height
:
18px
;
color
:
#999999
;
text-transform
:
uppercase
;
}
.nav-list
>
li
+
.nav-header
{
margin-top
:
9px
;
}
}
.nav-list
.active
>
a
,
.nav-list
.active
>
a
:hover
{
.nav-list
.active
>
a
,
.nav-list
.active
>
a
:hover
{
color
:
#ffffff
;
color
:
#ffffff
;
...
...
docs/components.html
View file @
0ff88f2d
...
@@ -771,7 +771,9 @@
...
@@ -771,7 +771,9 @@
<li><a
href=
"#"
>
Another action
</a></li>
<li><a
href=
"#"
>
Another action
</a></li>
<li><a
href=
"#"
>
Something else here
</a></li>
<li><a
href=
"#"
>
Something else here
</a></li>
<li
class=
"divider"
></li>
<li
class=
"divider"
></li>
<li
class=
"nav-header"
>
Nav header
</li>
<li><a
href=
"#"
>
Separated link
</a></li>
<li><a
href=
"#"
>
Separated link
</a></li>
<li><a
href=
"#"
>
One more separated link
</a></li>
</ul>
</ul>
</li>
</li>
</ul>
</ul>
...
...
docs/templates/pages/components.mustache
View file @
0ff88f2d
...
@@ -695,7 +695,9 @@
...
@@ -695,7 +695,9 @@
<li><a
href=
"#"
>
{{
_i
}}
Another action
{{/
i
}}
</a></li>
<li><a
href=
"#"
>
{{
_i
}}
Another action
{{/
i
}}
</a></li>
<li><a
href=
"#"
>
{{
_i
}}
Something else here
{{/
i
}}
</a></li>
<li><a
href=
"#"
>
{{
_i
}}
Something else here
{{/
i
}}
</a></li>
<li
class=
"divider"
></li>
<li
class=
"divider"
></li>
<li
class=
"nav-header"
>
Nav header
</li>
<li><a
href=
"#"
>
{{
_i
}}
Separated link
{{/
i
}}
</a></li>
<li><a
href=
"#"
>
{{
_i
}}
Separated link
{{/
i
}}
</a></li>
<li><a
href=
"#"
>
{{
_i
}}
One more separated link
{{/
i
}}
</a></li>
</ul>
</ul>
</li>
</li>
</ul>
</ul>
...
...
less/navs.less
View file @
0ff88f2d
...
@@ -21,6 +21,21 @@
...
@@ -21,6 +21,21 @@
background-color: @grayLighter;
background-color: @grayLighter;
}
}
// Nav headers (for dropdowns and lists)
.nav .nav-header {
display: block;
padding: 3px 15px;
font-size: 11px;
font-weight: bold;
line-height: @baseLineHeight;
color: @grayLight;
text-shadow: 0 1px 0 rgba(255,255,255,.5);
text-transform: uppercase;
}
// Space them out when they follow another list item (link)
.nav li + .nav-header {
margin-top: 9px;
}
// NAV LIST
// NAV LIST
...
@@ -33,21 +48,12 @@
...
@@ -33,21 +48,12 @@
}
}
.nav-list > li > a,
.nav-list > li > a,
.nav-list .nav-header {
.nav-list .nav-header {
display: block;
padding: 3px 15px;
margin-left: -15px;
margin-left: -15px;
margin-right: -15px;
margin-right: -15px;
text-shadow: 0 1px 0 rgba(255,255,255,.5);
text-shadow: 0 1px 0 rgba(255,255,255,.5);
}
}
.nav-list .nav-header {
.nav-list > li > a {
font-size: 11px;
padding: 3px 15px;
font-weight: bold;
line-height: @baseLineHeight;
color: @grayLight;
text-transform: uppercase;
}
.nav-list > li + .nav-header {
margin-top: 9px;
}
}
.nav-list .active > a,
.nav-list .active > a,
.nav-list .active > a:hover {
.nav-list .active > a:hover {
...
...
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