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
e6f185ac
Commit
e6f185ac
authored
Aug 16, 2013
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Justified nav now responsive; example updated accordingly (fixes #9708)
parent
af7b072a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
17 deletions
+48
-17
dist/css/bootstrap.css
dist/css/bootstrap.css
+14
-4
dist/css/bootstrap.min.css
dist/css/bootstrap.min.css
+1
-1
examples/justified-nav/justified-nav.css
examples/justified-nav/justified-nav.css
+24
-9
less/navs.less
less/navs.less
+9
-3
No files found.
dist/css/bootstrap.css
View file @
e6f185ac
...
...
@@ -3032,15 +3032,20 @@ button.close {
}
.nav-tabs.nav-justified
>
li
{
display
:
table-cell
;
float
:
none
;
width
:
1%
;
}
.nav-tabs.nav-justified
>
li
>
a
{
text-align
:
center
;
}
@media
(
min-width
:
768px
)
{
.nav-tabs.nav-justified
>
li
{
display
:
table-cell
;
width
:
1%
;
}
}
.nav-tabs.nav-justified
>
li
>
a
{
margin-right
:
0
;
border-bottom
:
1px
solid
#dddddd
;
...
...
@@ -3083,15 +3088,20 @@ button.close {
}
.nav-justified
>
li
{
display
:
table-cell
;
float
:
none
;
width
:
1%
;
}
.nav-justified
>
li
>
a
{
text-align
:
center
;
}
@media
(
min-width
:
768px
)
{
.nav-justified
>
li
{
display
:
table-cell
;
width
:
1%
;
}
}
.nav-tabs-justified
{
border-bottom
:
0
;
}
...
...
dist/css/bootstrap.min.css
View file @
e6f185ac
This source diff could not be displayed because it is too large. You can
view the blob
instead.
examples/justified-nav/justified-nav.css
View file @
e6f185ac
...
...
@@ -27,8 +27,8 @@ body {
}
/* Customize the nav-justified links to be fill the entire space of the .navbar */
.nav-justified
{
max-height
:
52px
;
background-color
:
#eee
;
border-radius
:
5px
;
border
:
1px
solid
#ccc
;
...
...
@@ -39,8 +39,7 @@ body {
color
:
#777
;
font-weight
:
bold
;
text-align
:
center
;
border-left
:
1px
solid
rgba
(
255
,
255
,
255
,
.75
);
border-right
:
1px
solid
rgba
(
0
,
0
,
0
,
.1
);
border-bottom
:
1px
solid
#d5d5d5
;
background-color
:
#e5e5e5
;
/* Old browsers */
background-repeat
:
repeat-x
;
/* Repeat the gradient */
background-image
:
-moz-linear-gradient
(
top
,
#f5f5f5
0%
,
#e5e5e5
100%
);
/* FF3.6+ */
...
...
@@ -59,17 +58,33 @@ body {
box-shadow
:
inset
0
3px
7px
rgba
(
0
,
0
,
0
,
.15
);
}
.nav-justified
>
li
:first-child
>
a
{
border-left
:
0
;
border-top-left-radius
:
5px
;
border-bottom-left-radius
:
5px
;
border-radius
:
5px
5px
0
0
;
}
.nav-justified
>
li
:last-child
>
a
{
border-right
:
0
;
border-top-right-radius
:
5px
;
border-bottom-right-radius
:
5px
;
border-bottom
:
0
;
border-radius
:
0
0
5px
5px
;
}
@media
(
min-width
:
768px
)
{
.nav-justified
{
max-height
:
52px
;
}
.nav-justified
>
li
>
a
{
border-left
:
1px
solid
#fff
;
border-right
:
1px
solid
#d5d5d5
;
}
.nav-justified
>
li
:first-child
>
a
{
border-left
:
0
;
border-radius
:
5px
0
0
5px
;
}
.nav-justified
>
li
:last-child
>
a
{
border-radius
:
0
5px
5px
0
;
border-right
:
0
;
}
}
/* Responsive: Portrait tablets and up */
@media
screen
and
(
min-width
:
768px
)
{
/* Remove the padding we set earlier */
...
...
less/navs.less
View file @
e6f185ac
...
...
@@ -154,14 +154,20 @@
.nav-justified {
width: 100%;
> li {
float: none;
display: table-cell;
width: 1%;
> a {
> a {
text-align: center;
}
}
@media (min-width: @screen-small) {
> li {
display: table-cell;
width: 1%;
}
}
}
// Move borders to anchors instead of bottom of list
...
...
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