Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
c31a4e51
Commit
c31a4e51
authored
12 years ago
by
Mark Otto
Browse files
Options
Download
Email Patches
Plain Diff
remove responsive subnav from docs and place in navbar-responsive.less
parent
c09e8473
7 merge requests
!4427
Use variable for desktop media query
,
!4258
Aria
,
!4248
Amended mentions of 'javascript' to the correct 'JavaScript'
,
!4235
Patch 1
,
!4232
Fixing the modal z-index issue + make modal stacking possible
,
!4213
2.1.0 wip
,
!4165
Patch 2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
docs/assets/css/bootstrap-responsive.css
+35
-29
docs/assets/css/bootstrap-responsive.css
docs/assets/css/bootstrap.css
+44
-7
docs/assets/css/bootstrap.css
docs/assets/css/docs.css
+1
-38
docs/assets/css/docs.css
less/navbar.less
+38
-1
less/navbar.less
less/responsive-navbar.less
+41
-32
less/responsive-navbar.less
with
159 additions
and
107 deletions
+159
-107
docs/assets/css/bootstrap-responsive.css
+
35
-
29
View file @
c31a4e51
...
...
@@ -872,7 +872,8 @@
padding-top
:
0
;
}
.navbar-fixed-top
,
.navbar-fixed-bottom
{
.navbar-fixed-bottom
,
.navbar-subnav-fixed
{
position
:
static
;
}
.navbar-fixed-top
{
...
...
@@ -993,39 +994,44 @@
padding-right
:
10px
;
padding-left
:
10px
;
}
}
@media
(
min-width
:
980px
)
{
.nav-collapse.collapse
{
height
:
auto
!important
;
overflow
:
visible
!important
;
.navbar-subnav
{
width
:
auto
;
height
:
auto
;
-webkit-box-shadow
:
none
;
-moz-box-shadow
:
none
;
box-shadow
:
none
;
}
.navbar-subnav-fixed
{
position
:
fixed
;
top
:
40px
;
right
:
0
;
left
:
0
;
z-index
:
1020
;
border-color
:
#d5d5d5
;
border-width
:
0
0
1px
;
-webkit-border-radius
:
0
;
-moz-border-radius
:
0
;
border-radius
:
0
;
filter
:
progid
:
dximagetransform
.
microsoft
.
gradient
(
enabled
=
false
);
-webkit-box-shadow
:
inset
0
1px
0
#ffffff
,
0
1px
5px
rgba
(
0
,
0
,
0
,
0.1
);
-moz-box-shadow
:
inset
0
1px
0
#ffffff
,
0
1px
5px
rgba
(
0
,
0
,
0
,
0.1
);
box-shadow
:
inset
0
1px
0
#ffffff
,
0
1px
5px
rgba
(
0
,
0
,
0
,
0.1
);
.navbar-subnav
.navbar-inner
{
background-color
:
#fff
;
background-image
:
none
;
}
.navbar-subnav
.nav
{
float
:
none
;
margin-right
:
0
;
}
.navbar-subnav
-fixed
.nav
{
.navbar-subnav
.nav
>
li
{
float
:
none
;
max-width
:
970px
;
padding
:
0
1px
;
margin
:
0
auto
;
}
.navbar-subnav
.nav
>
li
>
a
{
border
:
0
;
}
.navbar-subnav
.nav
>
li
>
a
:hover
{
background-color
:
#f5f5f5
;
}
.navbar-subnav
.nav
>
li
+
li
>
a
{
border-top
:
1px
solid
#e5e5e5
;
}
.navbar-subnav
.nav
>
li
:first-child
>
a
,
.navbar-subnav
.nav
>
li
:first-child
>
a
:hover
{
-webkit-border-radius
:
0
;
-moz-border-radius
:
0
;
border-radius
:
0
;
-webkit-border-radius
:
4px
4px
0
0
;
-moz-border-radius
:
4px
4px
0
0
;
border-radius
:
4px
4px
0
0
;
}
}
@media
(
min-width
:
980px
)
{
.nav-collapse.collapse
{
height
:
auto
!important
;
overflow
:
visible
!important
;
}
}
This diff is collapsed.
Click to expand it.
docs/assets/css/bootstrap.css
+
44
-
7
View file @
c31a4e51
...
...
@@ -3957,10 +3957,16 @@ input[type="submit"].btn.btn-mini {
.navbar-fixed-top
{
top
:
0
;
-webkit-box-shadow
:
0
1px
10px
rgba
(
0
,
0
,
0
,
0.1
);
-moz-box-shadow
:
0
1px
10px
rgba
(
0
,
0
,
0
,
0.1
);
box-shadow
:
0
1px
10px
rgba
(
0
,
0
,
0
,
0.1
);
}
.navbar-fixed-bottom
{
bottom
:
0
;
-webkit-box-shadow
:
0
-1px
10px
rgba
(
0
,
0
,
0
,
0.1
);
-moz-box-shadow
:
0
-1px
10px
rgba
(
0
,
0
,
0
,
0.1
);
box-shadow
:
0
-1px
10px
rgba
(
0
,
0
,
0
,
0.1
);
}
.navbar
.nav
{
...
...
@@ -4175,15 +4181,15 @@ input[type="submit"].btn.btn-mini {
.navbar-subnav
.navbar-inner
{
min-height
:
36px
;
padding
:
0
;
background-color
:
#f
5f5f5
;
background-image
:
-moz-linear-gradient
(
top
,
#f9f9f9
,
#
eeeeee
);
background-image
:
-webkit-gradient
(
linear
,
0
0
,
0
100%
,
from
(
#f9f9f9
),
to
(
#
eeeeee
));
background-image
:
-webkit-linear-gradient
(
top
,
#f9f9f9
,
#
eeeeee
);
background-image
:
-o-linear-gradient
(
top
,
#f9f9f9
,
#
eeeeee
);
background-image
:
linear-gradient
(
top
,
#f9f9f9
,
#
eeeeee
);
background-color
:
#f
6f6f6
;
background-image
:
-moz-linear-gradient
(
top
,
#f9f9f9
,
#
f1f1f1
);
background-image
:
-webkit-gradient
(
linear
,
0
0
,
0
100%
,
from
(
#f9f9f9
),
to
(
#
f1f1f1
));
background-image
:
-webkit-linear-gradient
(
top
,
#f9f9f9
,
#
f1f1f1
);
background-image
:
-o-linear-gradient
(
top
,
#f9f9f9
,
#
f1f1f1
);
background-image
:
linear-gradient
(
top
,
#f9f9f9
,
#
f1f1f1
);
background-repeat
:
repeat-x
;
border
:
1px
solid
#e5e5e5
;
filter
:
progid
:
dximagetransform
.
microsoft
.
gradient
(
startColorstr
=
'#fff9f9f9'
,
endColorstr
=
'#ff
eeeeee
'
,
GradientType
=
0
);
filter
:
progid
:
dximagetransform
.
microsoft
.
gradient
(
startColorstr
=
'#fff9f9f9'
,
endColorstr
=
'#ff
f1f1f1
'
,
GradientType
=
0
);
-webkit-box-shadow
:
none
;
-moz-box-shadow
:
none
;
box-shadow
:
none
;
...
...
@@ -4208,6 +4214,37 @@ input[type="submit"].btn.btn-mini {
color
:
#005580
;
}
.navbar-subnav-fixed
{
position
:
fixed
;
top
:
40px
;
right
:
0
;
left
:
0
;
z-index
:
1020
;
border-color
:
#d5d5d5
;
border-width
:
0
0
1px
;
-webkit-border-radius
:
0
;
-moz-border-radius
:
0
;
border-radius
:
0
;
filter
:
progid
:
dximagetransform
.
microsoft
.
gradient
(
enabled
=
false
);
-webkit-box-shadow
:
inset
0
1px
0
#ffffff
,
0
1px
10px
rgba
(
0
,
0
,
0
,
0.1
);
-moz-box-shadow
:
inset
0
1px
0
#ffffff
,
0
1px
10px
rgba
(
0
,
0
,
0
,
0.1
);
box-shadow
:
inset
0
1px
0
#ffffff
,
0
1px
10px
rgba
(
0
,
0
,
0
,
0.1
);
}
.navbar-subnav-fixed
.nav
{
float
:
none
;
max-width
:
970px
;
padding
:
0
1px
;
margin
:
0
auto
;
}
.navbar-subnav
.nav
>
li
:first-child
>
a
,
.navbar-subnav
.nav
>
li
:first-child
>
a
:hover
{
-webkit-border-radius
:
0
;
-moz-border-radius
:
0
;
border-radius
:
0
;
}
.breadcrumb
{
padding
:
7px
14px
;
margin
:
0
0
18px
;
...
...
This diff is collapsed.
Click to expand it.
docs/assets/css/docs.css
+
1
-
38
View file @
c31a4e51
...
...
@@ -48,8 +48,7 @@ h3 code {
/* Tweak navbar brand link to be super sleek
-------------------------------------------------- */
.navbar
,
.subnav
{
.navbar
{
font-size
:
13px
;
}
body
>
.navbar-fixed-top
.brand
{
...
...
@@ -766,42 +765,6 @@ form.bs-docs-example {
margin-bottom
:
10px
;
}
/* Subnav */
.subnav
{
position
:
static
;
top
:
auto
;
z-index
:
auto
;
width
:
auto
;
height
:
auto
;
background
:
#fff
;
/* whole background property since we use a background-image for gradient */
-webkit-box-shadow
:
none
;
-moz-box-shadow
:
none
;
box-shadow
:
none
;
}
.subnav
.nav
>
li
{
float
:
none
;
}
.subnav
.nav
>
li
>
a
{
border
:
0
;
}
.subnav
.nav
>
li
+
li
>
a
{
border-top
:
1px
solid
#e5e5e5
;
}
.subnav
.nav
>
li
:first-child
>
a
,
.subnav
.nav
>
li
:first-child
>
a
:hover
{
-webkit-border-radius
:
4px
4px
0
0
;
-moz-border-radius
:
4px
4px
0
0
;
border-radius
:
4px
4px
0
0
;
}
/* Popovers */
.large-bird
{
display
:
none
;
}
.popover-well
.popover-wrapper
{
margin-left
:
0
;
}
/* Space out the show-grid examples */
.show-grid
[
class
*=
"span"
]
{
margin-bottom
:
5px
;
...
...
This diff is collapsed.
Click to expand it.
less/navbar.less
+
38
-
1
View file @
c31a4e51
...
...
@@ -168,11 +168,17 @@
// Fixed to top
.navbar-fixed-top {
top: 0;
-webkit-box-shadow: 0 1px 10px rgba(0,0,0,.1);
-moz-box-shadow: 0 1px 10px rgba(0,0,0,.1);
box-shadow: 0 1px 10px rgba(0,0,0,.1);
}
// Fixed to bottom
.navbar-fixed-bottom {
bottom: 0;
-webkit-box-shadow: 0 -1px 10px rgba(0,0,0,.1);
-moz-box-shadow: 0 -1px 10px rgba(0,0,0,.1);
box-shadow: 0 -1px 10px rgba(0,0,0,.1);
}
...
...
@@ -378,7 +384,7 @@
.navbar-subnav .navbar-inner {
min-height: 36px;
padding: 0;
#gradient > .vertical(#f9f9f9, #
eeeeee
);
#gradient > .vertical(#f9f9f9, #
f1f1f1
);
.box-shadow(none);
border: 1px solid #e5e5e5;
}
...
...
@@ -405,3 +411,34 @@
}
// Fixed subnav on scroll, but only for 980px and up (sorry IE!)
.navbar-subnav-fixed {
position: fixed;
top: 40px;
left: 0;
right: 0;
z-index: 1020; /* 10 less than .navbar-fixed to prevent any overlap */
border-color: #d5d5d5;
border-width: 0 0 1px; /* drop the border on the fixed edges */
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
-webkit-box-shadow: inset 0 1px 0 #fff, 0 1px 10px rgba(0,0,0,.1);
-moz-box-shadow: inset 0 1px 0 #fff, 0 1px 10px rgba(0,0,0,.1);
box-shadow: inset 0 1px 0 #fff, 0 1px 10px rgba(0,0,0,.1);
filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); /* IE6-9 */
}
.navbar-subnav-fixed .nav {
float: none;
max-width: 970px;
margin: 0 auto;
padding: 0 1px;
}
.navbar-subnav .nav > li:first-child > a,
.navbar-subnav .nav > li:first-child > a:hover {
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
}
This diff is collapsed.
Click to expand it.
less/responsive-navbar.less
+
41
-
32
View file @
c31a4e51
...
...
@@ -8,9 +8,10 @@
body {
padding-top: 0;
}
// Unfix the navbar
// Unfix the navbar
s
.navbar-fixed-top,
.navbar-fixed-bottom {
.navbar-fixed-bottom,
.navbar-subnav-fixed {
position: static;
}
.navbar-fixed-top {
...
...
@@ -138,6 +139,44 @@
padding-left: 10px;
padding-right: 10px;
}
// STATIC SUBNAV
// -------------
.navbar-subnav {
width: auto;
height: auto;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
.navbar-subnav .navbar-inner {
background-color: #fff;
background-image: none; // Remove gradient
}
.navbar-subnav .nav {
float: none;
margin-right: 0;
}
.navbar-subnav .nav > li {
float: none;
}
.navbar-subnav .nav > li > a {
border: 0;
}
.navbar-subnav .nav > li > a:hover {
background-color: #f5f5f5;
}
.navbar-subnav .nav > li + li > a {
border-top: 1px solid #e5e5e5;
}
.navbar-subnav .nav > li:first-child > a,
.navbar-subnav .nav > li:first-child > a:hover {
-webkit-border-radius: 4px 4px 0 0;
-moz-border-radius: 4px 4px 0 0;
border-radius: 4px 4px 0 0;
}
}
...
...
@@ -152,34 +191,4 @@
overflow: visible !important;
}
// Fixed subnav on scroll, but only for 980px and up (sorry IE!)
.navbar-subnav-fixed {
position: fixed;
top: 40px;
left: 0;
right: 0;
z-index: 1020; /* 10 less than .navbar-fixed to prevent any overlap */
border-color: #d5d5d5;
border-width: 0 0 1px; /* drop the border on the fixed edges */
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
-webkit-box-shadow: inset 0 1px 0 #fff, 0 1px 5px rgba(0,0,0,.1);
-moz-box-shadow: inset 0 1px 0 #fff, 0 1px 5px rgba(0,0,0,.1);
box-shadow: inset 0 1px 0 #fff, 0 1px 5px rgba(0,0,0,.1);
filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); /* IE6-9 */
}
.navbar-subnav-fixed .nav {
float: none;
max-width: 970px;
margin: 0 auto;
padding: 0 1px;
}
.navbar-subnav .nav > li:first-child > a,
.navbar-subnav .nav > li:first-child > a:hover {
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
}
}
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets