Skip to content
GitLab
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
62a22200
Commit
62a22200
authored
12 years ago
by
Mark Otto
Browse files
Options
Download
Email Patches
Plain Diff
navbar vars
parent
a09cea44
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
docs/customize.html
+18
-18
docs/customize.html
docs/templates/pages/customize.mustache
+17
-17
docs/templates/pages/customize.mustache
less/mixins.less
+1
-1
less/mixins.less
less/navbar.less
+57
-57
less/navbar.less
less/responsive-navbar.less
+11
-11
less/responsive-navbar.less
less/variables.less
+31
-30
less/variables.less
with
135 additions
and
134 deletions
+135
-134
docs/customize.html
+
18
-
18
View file @
62a22200
...
@@ -328,7 +328,7 @@
...
@@ -328,7 +328,7 @@
<input
type=
"text"
class=
"span3"
placeholder=
"#ddd"
>
<input
type=
"text"
class=
"span3"
placeholder=
"#ddd"
>
<h3>
Forms
</h3>
<h3>
Forms
</h3>
<label>
@placeholder
Text
</label>
<label>
@
input-color-
placeholder
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"@grayLight"
>
<input
type=
"text"
class=
"span3"
placeholder=
"@grayLight"
>
<label>
@input-background
</label>
<label>
@input-background
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"#fff"
>
<input
type=
"text"
class=
"span3"
placeholder=
"#fff"
>
...
@@ -367,28 +367,28 @@
...
@@ -367,28 +367,28 @@
<input
type=
"text"
class=
"span3"
placeholder=
"#d9edf7"
>
<input
type=
"text"
class=
"span3"
placeholder=
"#d9edf7"
>
<h3>
Navbar
</h3>
<h3>
Navbar
</h3>
<label>
@navbar
H
eight
</label>
<label>
@navbar
-h
eight
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"40px"
>
<input
type=
"text"
class=
"span3"
placeholder=
"40px"
>
<label>
@navbar
B
ackground
</label>
<label>
@navbar
-b
ackground
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"@grayDarker"
>
<input
type=
"text"
class=
"span3"
placeholder=
"@grayDarker"
>
<label>
@navbar
B
ackground
H
ighlight
</label>
<label>
@navbar
-b
ackground
-h
ighlight
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"@grayDark"
>
<input
type=
"text"
class=
"span3"
placeholder=
"@grayDark"
>
<label>
@navbar
T
ext
</label>
<label>
@navbar
-t
ext
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"@grayLight"
>
<input
type=
"text"
class=
"span3"
placeholder=
"@grayLight"
>
<label>
@navbar
B
rand
C
olor
</label>
<label>
@navbar
-b
rand
-c
olor
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"@navbar
L
ink
C
olor"
>
<input
type=
"text"
class=
"span3"
placeholder=
"@navbar
-l
ink
-c
olor"
>
<label>
@navbar
L
ink
C
olor
</label>
<label>
@navbar
-l
ink
-c
olor
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"@grayLight"
>
<input
type=
"text"
class=
"span3"
placeholder=
"@grayLight"
>
<label>
@navbar
L
ink
C
olor
H
over
</label>
<label>
@navbar
-l
ink
-c
olor
-h
over
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"#fff"
>
<input
type=
"text"
class=
"span3"
placeholder=
"#fff"
>
<label>
@navbar
L
ink
C
olor
A
ctive
</label>
<label>
@navbar
-l
ink
-c
olor
-a
ctive
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"@navbar
L
ink
C
olor
H
over"
>
<input
type=
"text"
class=
"span3"
placeholder=
"@navbar
-l
ink
-c
olor
-h
over"
>
<label>
@navbar
L
ink
B
ackground
H
over
</label>
<label>
@navbar
-l
ink
-b
ackground
-h
over
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"transparent"
>
<input
type=
"text"
class=
"span3"
placeholder=
"transparent"
>
<label>
@navbar
L
ink
B
ackground
A
ctive
</label>
<label>
@navbar
-l
ink
-b
ackground
-a
ctive
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"@navbar
B
ackground"
>
<input
type=
"text"
class=
"span3"
placeholder=
"@navbar
-b
ackground"
>
<label>
@navbarSearchBackground
</label>
<label>
@navbarSearchBackground
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"lighten(@navbar
B
ackground, 25%)"
>
<input
type=
"text"
class=
"span3"
placeholder=
"lighten(@navbar
-b
ackground, 25%)"
>
<label>
@navbarSearchBackgroundFocus
</label>
<label>
@navbarSearchBackgroundFocus
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"#fff"
>
<input
type=
"text"
class=
"span3"
placeholder=
"#fff"
>
<label>
@navbarSearchBorder
</label>
<label>
@navbarSearchBorder
</label>
...
@@ -396,10 +396,10 @@
...
@@ -396,10 +396,10 @@
<label>
@navbarSearchPlaceholderColor
</label>
<label>
@navbarSearchPlaceholderColor
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"#ccc"
>
<input
type=
"text"
class=
"span3"
placeholder=
"#ccc"
>
<label>
@navbar
C
ollapse
W
idth
</label>
<label>
@navbar
-c
ollapse
-w
idth
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"979px"
>
<input
type=
"text"
class=
"span3"
placeholder=
"979px"
>
<label>
@navbar
C
ollapse
D
esktop
Width
</label>
<label>
@navbar
-c
ollapse
-width-d
esktop
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"@navbar
C
ollapse
W
idth + 1"
>
<input
type=
"text"
class=
"span3"
placeholder=
"@navbar
-c
ollapse
-w
idth + 1"
>
<h3>
Dropdowns
</h3>
<h3>
Dropdowns
</h3>
<label>
@dropdown-background
</label>
<label>
@dropdown-background
</label>
...
...
This diff is collapsed.
Click to expand it.
docs/templates/pages/customize.mustache
+
17
-
17
View file @
62a22200
...
@@ -299,28 +299,28 @@
...
@@ -299,28 +299,28 @@
<input
type=
"text"
class=
"span3"
placeholder=
"#d9edf7"
>
<input
type=
"text"
class=
"span3"
placeholder=
"#d9edf7"
>
<h3>
{{
_i
}}
Navbar
{{/
i
}}
</h3>
<h3>
{{
_i
}}
Navbar
{{/
i
}}
</h3>
<label>
@navbar
H
eight
</label>
<label>
@navbar
-h
eight
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"40px"
>
<input
type=
"text"
class=
"span3"
placeholder=
"40px"
>
<label>
@navbar
B
ackground
</label>
<label>
@navbar
-b
ackground
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"@grayDarker"
>
<input
type=
"text"
class=
"span3"
placeholder=
"@grayDarker"
>
<label>
@navbar
B
ackground
H
ighlight
</label>
<label>
@navbar
-b
ackground
-h
ighlight
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"@grayDark"
>
<input
type=
"text"
class=
"span3"
placeholder=
"@grayDark"
>
<label>
@navbar
T
ext
</label>
<label>
@navbar
-t
ext
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"@grayLight"
>
<input
type=
"text"
class=
"span3"
placeholder=
"@grayLight"
>
<label>
@navbar
B
rand
C
olor
</label>
<label>
@navbar
-b
rand
-c
olor
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"@navbar
L
ink
C
olor"
>
<input
type=
"text"
class=
"span3"
placeholder=
"@navbar
-l
ink
-c
olor"
>
<label>
@navbar
L
ink
C
olor
</label>
<label>
@navbar
-l
ink
-c
olor
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"@grayLight"
>
<input
type=
"text"
class=
"span3"
placeholder=
"@grayLight"
>
<label>
@navbar
L
ink
C
olor
H
over
</label>
<label>
@navbar
-l
ink
-c
olor
-h
over
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"#fff"
>
<input
type=
"text"
class=
"span3"
placeholder=
"#fff"
>
<label>
@navbar
L
ink
C
olor
A
ctive
</label>
<label>
@navbar
-l
ink
-c
olor
-a
ctive
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"@navbar
L
ink
C
olor
H
over"
>
<input
type=
"text"
class=
"span3"
placeholder=
"@navbar
-l
ink
-c
olor
-h
over"
>
<label>
@navbar
L
ink
B
ackground
H
over
</label>
<label>
@navbar
-l
ink
-b
ackground
-h
over
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"transparent"
>
<input
type=
"text"
class=
"span3"
placeholder=
"transparent"
>
<label>
@navbar
L
ink
B
ackground
A
ctive
</label>
<label>
@navbar
-l
ink
-b
ackground
-a
ctive
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"@navbar
B
ackground"
>
<input
type=
"text"
class=
"span3"
placeholder=
"@navbar
-b
ackground"
>
<label>
@navbarSearchBackground
</label>
<label>
@navbarSearchBackground
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"lighten(@navbar
B
ackground, 25%)"
>
<input
type=
"text"
class=
"span3"
placeholder=
"lighten(@navbar
-b
ackground, 25%)"
>
<label>
@navbarSearchBackgroundFocus
</label>
<label>
@navbarSearchBackgroundFocus
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"#fff"
>
<input
type=
"text"
class=
"span3"
placeholder=
"#fff"
>
<label>
@navbarSearchBorder
</label>
<label>
@navbarSearchBorder
</label>
...
@@ -328,10 +328,10 @@
...
@@ -328,10 +328,10 @@
<label>
@navbarSearchPlaceholderColor
</label>
<label>
@navbarSearchPlaceholderColor
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"#ccc"
>
<input
type=
"text"
class=
"span3"
placeholder=
"#ccc"
>
<label>
@navbar
C
ollapse
W
idth
</label>
<label>
@navbar
-c
ollapse
-w
idth
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"979px"
>
<input
type=
"text"
class=
"span3"
placeholder=
"979px"
>
<label>
@navbar
C
ollapse
D
esktop
Width
</label>
<label>
@navbar
-c
ollapse
-width-d
esktop
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"@navbar
C
ollapse
W
idth + 1"
>
<input
type=
"text"
class=
"span3"
placeholder=
"@navbar
-c
ollapse
-w
idth + 1"
>
<h3>
{{
_i
}}
Dropdowns
{{/
i
}}
</h3>
<h3>
{{
_i
}}
Dropdowns
{{/
i
}}
</h3>
<label>
@dropdown-background
</label>
<label>
@dropdown-background
</label>
...
...
This diff is collapsed.
Click to expand it.
less/mixins.less
+
1
-
1
View file @
62a22200
...
@@ -456,7 +456,7 @@
...
@@ -456,7 +456,7 @@
// Vertically center elements in the navbar.
// Vertically center elements in the navbar.
// Example: an element has a height of 30px, so write out `.navbarVerticalAlign(30px);` to calculate the appropriate top margin.
// Example: an element has a height of 30px, so write out `.navbarVerticalAlign(30px);` to calculate the appropriate top margin.
.navbarVerticalAlign(@elementHeight) {
.navbarVerticalAlign(@elementHeight) {
margin-top: (@navbar
H
eight - @elementHeight) / 2;
margin-top: (@navbar
-h
eight - @elementHeight) / 2;
}
}
...
...
This diff is collapsed.
Click to expand it.
less/navbar.less
+
57
-
57
View file @
62a22200
...
@@ -11,8 +11,8 @@
...
@@ -11,8 +11,8 @@
overflow: visible;
overflow: visible;
padding: 0 20px;
padding: 0 20px;
margin-bottom: @line-height-base;
margin-bottom: @line-height-base;
#gradient > .vertical(@navbar
B
ackground
H
ighlight, @navbar
B
ackground);
#gradient > .vertical(@navbar
-b
ackground
-h
ighlight, @navbar
-b
ackground);
border: 1px solid @navbar
B
order;
border: 1px solid @navbar
-b
order;
border-radius: @border-radius-base;
border-radius: @border-radius-base;
.box-shadow(0 1px 4px rgba(0,0,0,.065));
.box-shadow(0 1px 4px rgba(0,0,0,.065));
...
@@ -38,13 +38,13 @@
...
@@ -38,13 +38,13 @@
.navbar .brand {
.navbar .brand {
float: left;
float: left;
display: block;
display: block;
// Vertically center the text given @navbar
H
eight
// Vertically center the text given @navbar
-h
eight
padding: ((@navbar
H
eight - @line-height-base) / 2) 20px ((@navbar
H
eight - @line-height-base) / 2);
padding: ((@navbar
-h
eight - @line-height-base) / 2) 20px ((@navbar
-h
eight - @line-height-base) / 2);
margin-left: -20px; // negative indent to left-align the text down the page
margin-left: -20px; // negative indent to left-align the text down the page
font-size: 20px;
font-size: 20px;
font-weight: 200;
font-weight: 200;
color: @navbar
B
rand
C
olor;
color: @navbar
-b
rand
-c
olor;
text-shadow: 0 1px 0 @navbar
B
ackground
H
ighlight;
text-shadow: 0 1px 0 @navbar
-b
ackground
-h
ighlight;
&:hover {
&:hover {
text-decoration: none;
text-decoration: none;
}
}
...
@@ -54,26 +54,26 @@
...
@@ -54,26 +54,26 @@
// -------------------------
// -------------------------
.navbar-text {
.navbar-text {
margin-bottom: 0;
margin-bottom: 0;
line-height: @navbar
H
eight;
line-height: @navbar
-h
eight;
color: @navbar
T
ext;
color: @navbar
-t
ext;
}
}
// Janky solution for now to account for links outside the .nav
// Janky solution for now to account for links outside the .nav
// -------------------------
// -------------------------
.navbar-link {
.navbar-link {
color: @navbar
L
ink
C
olor;
color: @navbar
-l
ink
-c
olor;
&:hover {
&:hover {
color: @navbar
L
ink
C
olor
H
over;
color: @navbar
-l
ink
-c
olor
-h
over;
}
}
}
}
// Dividers in navbar
// Dividers in navbar
// -------------------------
// -------------------------
.navbar .divider-vertical {
.navbar .divider-vertical {
height: @navbar
H
eight;
height: @navbar
-h
eight;
margin: 0 9px;
margin: 0 9px;
border-left: 1px solid @navbar
B
ackground;
border-left: 1px solid @navbar
-b
ackground;
border-right: 1px solid @navbar
B
ackground
H
ighlight;
border-right: 1px solid @navbar
-b
ackground
-h
ighlight;
}
}
// Buttons in navbar
// Buttons in navbar
...
@@ -214,11 +214,11 @@
...
@@ -214,11 +214,11 @@
// Links
// Links
.navbar .nav > li > a {
.navbar .nav > li > a {
float: none;
float: none;
// Vertically center the text given @navbar
H
eight
// Vertically center the text given @navbar
-h
eight
padding: ((@navbar
H
eight - @line-height-base) / 2) 15px ((@navbar
H
eight - @line-height-base) / 2);
padding: ((@navbar
-h
eight - @line-height-base) / 2) 15px ((@navbar
-h
eight - @line-height-base) / 2);
color: @navbar
L
ink
C
olor;
color: @navbar
-l
ink
-c
olor;
text-decoration: none;
text-decoration: none;
text-shadow: 0 1px 0 @navbar
B
ackground
H
ighlight;
text-shadow: 0 1px 0 @navbar
-b
ackground
-h
ighlight;
}
}
.navbar .nav .dropdown-toggle .caret {
.navbar .nav .dropdown-toggle .caret {
margin-top: 8px;
margin-top: 8px;
...
@@ -228,8 +228,8 @@
...
@@ -228,8 +228,8 @@
// Hover
// Hover
.navbar .nav > li > a:focus,
.navbar .nav > li > a:focus,
.navbar .nav > li > a:hover {
.navbar .nav > li > a:hover {
background-color: @navbar
L
ink
B
ackground
H
over; // "transparent" is default to differentiate :hover from .active
background-color: @navbar
-l
ink
-b
ackground
-h
over; // "transparent" is default to differentiate :hover from .active
color: @navbar
L
ink
C
olor
H
over;
color: @navbar
-l
ink
-c
olor
-h
over;
text-decoration: none;
text-decoration: none;
}
}
...
@@ -237,9 +237,9 @@
...
@@ -237,9 +237,9 @@
.navbar .nav > .active > a,
.navbar .nav > .active > a,
.navbar .nav > .active > a:hover,
.navbar .nav > .active > a:hover,
.navbar .nav > .active > a:focus {
.navbar .nav > .active > a:focus {
color: @navbar
L
ink
C
olor
A
ctive;
color: @navbar
-l
ink
-c
olor
-a
ctive;
text-decoration: none;
text-decoration: none;
background-color: @navbar
L
ink
B
ackground
A
ctive;
background-color: @navbar
-l
ink
-b
ackground
-a
ctive;
.box-shadow(inset 0 3px 8px rgba(0,0,0,.125));
.box-shadow(inset 0 3px 8px rgba(0,0,0,.125));
}
}
...
@@ -251,7 +251,7 @@
...
@@ -251,7 +251,7 @@
padding: 7px 10px;
padding: 7px 10px;
margin-left: 5px;
margin-left: 5px;
margin-right: 5px;
margin-right: 5px;
.buttonBackground(darken(@navbar
B
ackground
H
ighlight, 5%), darken(@navbar
B
ackground, 5%));
.buttonBackground(darken(@navbar
-b
ackground
-h
ighlight, 5%), darken(@navbar
-b
ackground, 5%));
.box-shadow(~"inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075)");
.box-shadow(~"inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075)");
}
}
.navbar .btn-navbar .icon-bar {
.navbar .btn-navbar .icon-bar {
...
@@ -314,26 +314,26 @@
...
@@ -314,26 +314,26 @@
// Caret should match text color on hover
// Caret should match text color on hover
.navbar .nav li.dropdown > a:hover .caret {
.navbar .nav li.dropdown > a:hover .caret {
border-top-color: @navbar
L
ink
C
olor
A
ctive;
border-top-color: @navbar
-l
ink
-c
olor
-a
ctive;
border-bottom-color: @navbar
L
ink
C
olor
A
ctive;
border-bottom-color: @navbar
-l
ink
-c
olor
-a
ctive;
}
}
// Remove background color from open dropdown
// Remove background color from open dropdown
.navbar .nav li.dropdown.open > .dropdown-toggle,
.navbar .nav li.dropdown.open > .dropdown-toggle,
.navbar .nav li.dropdown.active > .dropdown-toggle,
.navbar .nav li.dropdown.active > .dropdown-toggle,
.navbar .nav li.dropdown.open.active > .dropdown-toggle {
.navbar .nav li.dropdown.open.active > .dropdown-toggle {
background-color: @navbar
L
ink
B
ackground
A
ctive;
background-color: @navbar
-l
ink
-b
ackground
-a
ctive;
color: @navbar
L
ink
C
olor
A
ctive;
color: @navbar
-l
ink
-c
olor
-a
ctive;
}
}
.navbar .nav li.dropdown > .dropdown-toggle .caret {
.navbar .nav li.dropdown > .dropdown-toggle .caret {
border-top-color: @navbar
L
ink
C
olor;
border-top-color: @navbar
-l
ink
-c
olor;
border-bottom-color: @navbar
L
ink
C
olor;
border-bottom-color: @navbar
-l
ink
-c
olor;
}
}
.navbar .nav li.dropdown.open > .dropdown-toggle .caret,
.navbar .nav li.dropdown.open > .dropdown-toggle .caret,
.navbar .nav li.dropdown.active > .dropdown-toggle .caret,
.navbar .nav li.dropdown.active > .dropdown-toggle .caret,
.navbar .nav li.dropdown.open.active > .dropdown-toggle .caret {
.navbar .nav li.dropdown.open.active > .dropdown-toggle .caret {
border-top-color: @navbar
L
ink
C
olor
A
ctive;
border-top-color: @navbar
-l
ink
-c
olor
-a
ctive;
border-bottom-color: @navbar
L
ink
C
olor
A
ctive;
border-bottom-color: @navbar
-l
ink
-c
olor
-a
ctive;
}
}
// Right aligned menus need alt position
// Right aligned menus need alt position
...
@@ -363,84 +363,84 @@
...
@@ -363,84 +363,84 @@
// -------------------------
// -------------------------
.navbar-inverse {
.navbar-inverse {
#gradient > .vertical(@navbar
I
nverse
B
ackground
H
ighlight, @navbar
I
nverse
B
ackground);
#gradient > .vertical(@navbar
-i
nverse
-b
ackground
-h
ighlight, @navbar
-i
nverse
-b
ackground);
border-color: @navbar
I
nverse
B
order;
border-color: @navbar
-i
nverse
-b
order;
.brand,
.brand,
.nav > li > a {
.nav > li > a {
color: @navbar
I
nverse
L
ink
C
olor;
color: @navbar
-i
nverse
-l
ink
-c
olor;
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
&:hover {
&:hover {
color: @navbar
I
nverse
L
ink
C
olor
H
over;
color: @navbar
-i
nverse
-l
ink
-c
olor
-h
over;
}
}
}
}
.brand {
.brand {
color: @navbar
I
nverse
B
rand
C
olor;
color: @navbar
-i
nverse
-b
rand
-c
olor;
}
}
.navbar-text {
.navbar-text {
color: @navbar
I
nverse
T
ext;
color: @navbar
-i
nverse
-t
ext;
}
}
.nav > li > a:focus,
.nav > li > a:focus,
.nav > li > a:hover {
.nav > li > a:hover {
background-color: @navbar
I
nverse
L
ink
B
ackground
H
over;
background-color: @navbar
-i
nverse
-l
ink
-b
ackground
-h
over;
color: @navbar
I
nverse
L
ink
C
olor
H
over;
color: @navbar
-i
nverse
-l
ink
-c
olor
-h
over;
}
}
.nav .active > a,
.nav .active > a,
.nav .active > a:hover,
.nav .active > a:hover,
.nav .active > a:focus {
.nav .active > a:focus {
color: @navbar
I
nverse
L
ink
C
olor
A
ctive;
color: @navbar
-i
nverse
-l
ink
-c
olor
-a
ctive;
background-color: @navbar
I
nverse
L
ink
B
ackground
A
ctive;
background-color: @navbar
-i
nverse
-l
ink
-b
ackground
-a
ctive;
}
}
// Inline text links
// Inline text links
.navbar-link {
.navbar-link {
color: @navbar
I
nverse
L
ink
C
olor;
color: @navbar
-i
nverse
-l
ink
-c
olor;
&:hover {
&:hover {
color: @navbar
I
nverse
L
ink
C
olor
H
over;
color: @navbar
-i
nverse
-l
ink
-c
olor
-h
over;
}
}
}
}
// Dividers in navbar
// Dividers in navbar
.divider-vertical {
.divider-vertical {
border-left-color: @navbar
I
nverse
B
ackground;
border-left-color: @navbar
-i
nverse
-b
ackground;
border-right-color: @navbar
I
nverse
B
ackground
H
ighlight;
border-right-color: @navbar
-i
nverse
-b
ackground
-h
ighlight;
}
}
// Dropdowns
// Dropdowns
.nav li.dropdown.open > .dropdown-toggle,
.nav li.dropdown.open > .dropdown-toggle,
.nav li.dropdown.active > .dropdown-toggle,
.nav li.dropdown.active > .dropdown-toggle,
.nav li.dropdown.open.active > .dropdown-toggle {
.nav li.dropdown.open.active > .dropdown-toggle {
background-color: @navbar
I
nverse
L
ink
B
ackground
A
ctive;
background-color: @navbar
-i
nverse
-l
ink
-b
ackground
-a
ctive;
color: @navbar
I
nverse
L
ink
C
olor
A
ctive;
color: @navbar
-i
nverse
-l
ink
-c
olor
-a
ctive;
}
}
.nav li.dropdown > a:hover .caret {
.nav li.dropdown > a:hover .caret {
border-top-color: @navbar
I
nverse
L
ink
C
olor
A
ctive;
border-top-color: @navbar
-i
nverse
-l
ink
-c
olor
-a
ctive;
border-bottom-color: @navbar
I
nverse
L
ink
C
olor
A
ctive;
border-bottom-color: @navbar
-i
nverse
-l
ink
-c
olor
-a
ctive;
}
}
.nav li.dropdown > .dropdown-toggle .caret {
.nav li.dropdown > .dropdown-toggle .caret {
border-top-color: @navbar
I
nverse
L
ink
C
olor;
border-top-color: @navbar
-i
nverse
-l
ink
-c
olor;
border-bottom-color: @navbar
I
nverse
L
ink
C
olor;
border-bottom-color: @navbar
-i
nverse
-l
ink
-c
olor;
}
}
.nav li.dropdown.open > .dropdown-toggle .caret,
.nav li.dropdown.open > .dropdown-toggle .caret,
.nav li.dropdown.active > .dropdown-toggle .caret,
.nav li.dropdown.active > .dropdown-toggle .caret,
.nav li.dropdown.open.active > .dropdown-toggle .caret {
.nav li.dropdown.open.active > .dropdown-toggle .caret {
border-top-color: @navbar
I
nverse
L
ink
C
olor
A
ctive;
border-top-color: @navbar
-i
nverse
-l
ink
-c
olor
-a
ctive;
border-bottom-color: @navbar
I
nverse
L
ink
C
olor
A
ctive;
border-bottom-color: @navbar
-i
nverse
-l
ink
-c
olor
-a
ctive;
}
}
// Navbar search
// Navbar search
.navbar-search {
.navbar-search {
.search-query {
.search-query {
color: #fff;
color: #fff;
background-color: @navbar
I
nverse
S
earch
B
ackground;
background-color: @navbar
-i
nverse
-s
earch
-b
ackground;
border-color: @navbar
I
nverse
S
earch
B
order;
border-color: @navbar
-i
nverse
-s
earch
-b
order;
.box-shadow(~"inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15)");
.box-shadow(~"inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15)");
.transition(none);
.transition(none);
.placeholder(@navbar
I
nverse
S
earch
P
laceholder
C
olor);
.placeholder(@navbar
-i
nverse
-s
earch
-p
laceholder
-c
olor);
// Focus states (we use .focused since IE8 and down doesn't support :focus)
// Focus states (we use .focused since IE8 and down doesn't support :focus)
&:focus,
&:focus,
...
@@ -448,7 +448,7 @@
...
@@ -448,7 +448,7 @@
padding: 5px 15px;
padding: 5px 15px;
color: @grayDark;
color: @grayDark;
text-shadow: 0 1px 0 #fff;
text-shadow: 0 1px 0 #fff;
background-color: @navbar
I
nverse
S
earch
B
ackground
F
ocus;
background-color: @navbar
-i
nverse
-s
earch
-b
ackground
-f
ocus;
border: 0;
border: 0;
.box-shadow(0 0 3px rgba(0,0,0,.15));
.box-shadow(0 0 3px rgba(0,0,0,.15));
outline: 0;
outline: 0;
...
@@ -458,7 +458,7 @@
...
@@ -458,7 +458,7 @@
// Navbar collapse button
// Navbar collapse button
.btn-navbar {
.btn-navbar {
.buttonBackground(darken(@navbar
I
nverse
B
ackground
H
ighlight, 5%), darken(@navbar
I
nverse
B
ackground, 5%));
.buttonBackground(darken(@navbar
-i
nverse
-b
ackground
-h
ighlight, 5%), darken(@navbar
-i
nverse
-b
ackground, 5%));
}
}
}
}
This diff is collapsed.
Click to expand it.
less/responsive-navbar.less
+
11
-
11
View file @
62a22200
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
// TABLETS AND BELOW
// TABLETS AND BELOW
// -----------------
// -----------------
@media (max-width: @navbar
C
ollapse
W
idth) {
@media (max-width: @navbar
-c
ollapse
-w
idth) {
// UNFIX THE TOPBAR
// UNFIX THE TOPBAR
// ----------------
// ----------------
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
display: none;
display: none;
}
}
.nav-collapse .nav .nav-header {
.nav-collapse .nav .nav-header {
color: @navbar
T
ext;
color: @navbar
-t
ext;
text-shadow: none;
text-shadow: none;
}
}
// Nav and dropdown links in navbar
// Nav and dropdown links in navbar
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
.nav-collapse .dropdown-menu a {
.nav-collapse .dropdown-menu a {
padding: 9px 15px;
padding: 9px 15px;
font-weight: bold;
font-weight: bold;
color: @navbar
L
ink
C
olor;
color: @navbar
-l
ink
-c
olor;
border-radius: 3px;
border-radius: 3px;
}
}
// Buttons
// Buttons
...
@@ -82,15 +82,15 @@
...
@@ -82,15 +82,15 @@
}
}
.nav-collapse .nav > li > a:hover,
.nav-collapse .nav > li > a:hover,
.nav-collapse .dropdown-menu a:hover {
.nav-collapse .dropdown-menu a:hover {
background-color: @navbar
B
ackground;
background-color: @navbar
-b
ackground;
}
}
.navbar-inverse .nav-collapse .nav > li > a,
.navbar-inverse .nav-collapse .nav > li > a,
.navbar-inverse .nav-collapse .dropdown-menu a {
.navbar-inverse .nav-collapse .dropdown-menu a {
color: @navbar
I
nverse
L
ink
C
olor;
color: @navbar
-i
nverse
-l
ink
-c
olor;
}
}
.navbar-inverse .nav-collapse .nav > li > a:hover,
.navbar-inverse .nav-collapse .nav > li > a:hover,
.navbar-inverse .nav-collapse .dropdown-menu a:hover {
.navbar-inverse .nav-collapse .dropdown-menu a:hover {
background-color: @navbar
I
nverse
B
ackground;
background-color: @navbar
-i
nverse
-b
ackground;
}
}
// Buttons in the navbar
// Buttons in the navbar
.nav-collapse.in .btn-group {
.nav-collapse.in .btn-group {
...
@@ -135,14 +135,14 @@
...
@@ -135,14 +135,14 @@
float: none;
float: none;
padding: (@line-height-base / 2) 15px;
padding: (@line-height-base / 2) 15px;
margin: (@line-height-base / 2) 0;
margin: (@line-height-base / 2) 0;
border-top: 1px solid @navbar
B
ackground;
border-top: 1px solid @navbar
-b
ackground;
border-bottom: 1px solid @navbar
B
ackground;
border-bottom: 1px solid @navbar
-b
ackground;
.box-shadow(~"inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.1)");
.box-shadow(~"inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.1)");
}
}
.navbar-inverse .nav-collapse .navbar-form,
.navbar-inverse .nav-collapse .navbar-form,
.navbar-inverse .nav-collapse .navbar-search {
.navbar-inverse .nav-collapse .navbar-search {
border-top-color: @navbar
I
nverse
B
ackground;
border-top-color: @navbar
-i
nverse
-b
ackground;
border-bottom-color: @navbar
I
nverse
B
ackground;
border-bottom-color: @navbar
-i
nverse
-b
ackground;
}
}
// Pull right (secondary) nav content
// Pull right (secondary) nav content
.navbar .nav-collapse .nav.pull-right {
.navbar .nav-collapse .nav.pull-right {
...
@@ -174,7 +174,7 @@
...
@@ -174,7 +174,7 @@
// DEFAULT DESKTOP
// DEFAULT DESKTOP
// ---------------
// ---------------
@media (min-width: @navbar
C
ollapse
D
esktop
Width
) {
@media (min-width: @navbar
-c
ollapse
-width-d
esktop) {
// Required to make the collapsing navbar work on regular desktops
// Required to make the collapsing navbar work on regular desktops
.nav-collapse.collapse {
.nav-collapse.collapse {
...
...
This diff is collapsed.
Click to expand it.
less/variables.less
+
31
-
30
View file @
62a22200
...
@@ -33,6 +33,7 @@
...
@@ -33,6 +33,7 @@
// Typography
// Typography
// -------------------------
// -------------------------
@font-family-sans-serif: "Helvetica Neue", Helvetica, Arial, sans-serif;
@font-family-sans-serif: "Helvetica Neue", Helvetica, Arial, sans-serif;
@font-family-serif: Georgia, "Times New Roman", Times, serif;
@font-family-serif: Georgia, "Times New Roman", Times, serif;
@font-family-monospace: Monaco, Menlo, Consolas, "Courier New", monospace;
@font-family-monospace: Monaco, Menlo, Consolas, "Courier New", monospace;
...
@@ -152,41 +153,41 @@
...
@@ -152,41 +153,41 @@
// Navbar
// Navbar
// -------------------------
// -------------------------
@navbar
C
ollapse
W
idth:
979px;
@navbar
-c
ollapse
-w
idth: 979px;
@navbar
C
ollapse
DesktopWidth:
@navbar
C
ollapse
W
idth + 1;
@navbar
-c
ollapse
-width-desktop:
@navbar
-c
ollapse
-w
idth + 1;
@navbar
H
eight: 44px;
@navbar
-h
eight: 44px;
@navbar
B
ackground
H
ighlight:
#ffffff;
@navbar
-b
ackground
-h
ighlight: #ffffff;
@navbar
B
ackground: darken(@navbar
B
ackground
H
ighlight, 5%);
@navbar
-b
ackground: darken(@navbar
-b
ackground
-h
ighlight, 5%);
@navbar
B
order: darken(@navbar
B
ackground, 12%);
@navbar
-b
order: darken(@navbar
-b
ackground, 12%);
@navbar
T
ext: #777;
@navbar
-t
ext: #777;
@navbar
L
ink
C
olor: #777;
@navbar
-l
ink
-c
olor: #777;
@navbar
L
ink
C
olor
H
over: @grayDark;
@navbar
-l
ink
-c
olor
-h
over: @grayDark;
@navbar
L
ink
C
olor
A
ctive: @gray;
@navbar
-l
ink
-c
olor
-a
ctive: @gray;
@navbar
L
ink
B
ackground
H
over: transparent;
@navbar
-l
ink
-b
ackground
-h
over: transparent;
@navbar
L
ink
B
ackground
A
ctive: darken(@navbar
B
ackground, 5%);
@navbar
-l
ink
-b
ackground
-a
ctive: darken(@navbar
-b
ackground, 5%);
@navbar
B
rand
C
olor: @navbar
L
ink
C
olor;
@navbar
-b
rand
-c
olor: @navbar
-l
ink
-c
olor;
// Inverted navbar
// Inverted navbar
@navbar
I
nverse
B
ackground: #111111;
@navbar
-i
nverse
-b
ackground: #111111;
@navbar
I
nverse
B
ackground
H
ighlight: #222222;
@navbar
-i
nverse
-b
ackground
-h
ighlight: #222222;
@navbar
I
nverse
B
order: #111111;
@navbar
-i
nverse
-b
order: #111111;
@navbar
I
nverse
T
ext: @grayLight;
@navbar
-i
nverse
-t
ext: @grayLight;
@navbar
I
nverse
L
ink
C
olor: @grayLight;
@navbar
-i
nverse
-l
ink
-c
olor: @grayLight;
@navbar
I
nverse
L
ink
C
olor
H
over: #fff;
@navbar
-i
nverse
-l
ink
-c
olor
-h
over: #fff;
@navbar
I
nverse
L
ink
C
olor
A
ctive: @navbar
I
nverse
L
ink
C
olor
H
over;
@navbar
-i
nverse
-l
ink
-c
olor
-a
ctive: @navbar
-i
nverse
-l
ink
-c
olor
-h
over;
@navbar
I
nverse
L
ink
B
ackground
H
over: transparent;
@navbar
-i
nverse
-l
ink
-b
ackground
-h
over: transparent;
@navbar
I
nverse
L
ink
B
ackground
A
ctive: @navbar
I
nverse
B
ackground;
@navbar
-i
nverse
-l
ink
-b
ackground
-a
ctive: @navbar
-i
nverse
-b
ackground;
@navbar
I
nverse
S
earch
B
ackground: lighten(@navbar
I
nverse
B
ackground, 25%);
@navbar
-i
nverse
-s
earch
-b
ackground: lighten(@navbar
-i
nverse
-b
ackground, 25%);
@navbar
I
nverse
S
earch
B
ackground
F
ocus: #fff;
@navbar
-i
nverse
-s
earch
-b
ackground
-f
ocus: #fff;
@navbar
I
nverse
S
earch
B
order: @navbar
I
nverse
B
ackground;
@navbar
-i
nverse
-s
earch
-b
order: @navbar
-i
nverse
-b
ackground;
@navbar
I
nverse
S
earch
P
laceholder
C
olor: #ccc;
@navbar
-i
nverse
-s
earch
-p
laceholder
-c
olor: #ccc;
@navbar
I
nverse
B
rand
C
olor: @navbar
I
nverse
L
ink
C
olor;
@navbar
-i
nverse
-b
rand
-c
olor: @navbar
-i
nverse
-l
ink
-c
olor;
// Pagination
// Pagination
...
...
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