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
62a22200
Commit
62a22200
authored
Nov 30, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
navbar vars
parent
a09cea44
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
135 additions
and
134 deletions
+135
-134
docs/customize.html
docs/customize.html
+18
-18
docs/templates/pages/customize.mustache
docs/templates/pages/customize.mustache
+17
-17
less/mixins.less
less/mixins.less
+1
-1
less/navbar.less
less/navbar.less
+57
-57
less/responsive-navbar.less
less/responsive-navbar.less
+11
-11
less/variables.less
less/variables.less
+31
-30
No files found.
docs/customize.html
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>
@
placeholderText
</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
BackgroundH
ighlight
</label>
<label>
@navbar
-background-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
BrandC
olor
</label>
<label>
@navbar
-brand-c
olor
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"@navbar
LinkC
olor"
>
<input
type=
"text"
class=
"span3"
placeholder=
"@navbar
-link-c
olor"
>
<label>
@navbar
LinkC
olor
</label>
<label>
@navbar
-link-c
olor
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"@grayLight"
>
<input
type=
"text"
class=
"span3"
placeholder=
"@grayLight"
>
<label>
@navbar
LinkColorH
over
</label>
<label>
@navbar
-link-color-h
over
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"#fff"
>
<input
type=
"text"
class=
"span3"
placeholder=
"#fff"
>
<label>
@navbar
LinkColorA
ctive
</label>
<label>
@navbar
-link-color-a
ctive
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"@navbar
LinkColorH
over"
>
<input
type=
"text"
class=
"span3"
placeholder=
"@navbar
-link-color-h
over"
>
<label>
@navbar
LinkBackgroundH
over
</label>
<label>
@navbar
-link-background-h
over
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"transparent"
>
<input
type=
"text"
class=
"span3"
placeholder=
"transparent"
>
<label>
@navbar
LinkBackgroundA
ctive
</label>
<label>
@navbar
-link-background-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
CollapseW
idth
</label>
<label>
@navbar
-collapse-w
idth
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"979px"
>
<input
type=
"text"
class=
"span3"
placeholder=
"979px"
>
<label>
@navbar
CollapseDesktopWidth
</label>
<label>
@navbar
-collapse-width-desktop
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"@navbar
CollapseW
idth + 1"
>
<input
type=
"text"
class=
"span3"
placeholder=
"@navbar
-collapse-w
idth + 1"
>
<h3>
Dropdowns
</h3>
<h3>
Dropdowns
</h3>
<label>
@dropdown-background
</label>
<label>
@dropdown-background
</label>
...
...
docs/templates/pages/customize.mustache
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
BackgroundH
ighlight
</label>
<label>
@navbar
-background-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
BrandC
olor
</label>
<label>
@navbar
-brand-c
olor
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"@navbar
LinkC
olor"
>
<input
type=
"text"
class=
"span3"
placeholder=
"@navbar
-link-c
olor"
>
<label>
@navbar
LinkC
olor
</label>
<label>
@navbar
-link-c
olor
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"@grayLight"
>
<input
type=
"text"
class=
"span3"
placeholder=
"@grayLight"
>
<label>
@navbar
LinkColorH
over
</label>
<label>
@navbar
-link-color-h
over
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"#fff"
>
<input
type=
"text"
class=
"span3"
placeholder=
"#fff"
>
<label>
@navbar
LinkColorA
ctive
</label>
<label>
@navbar
-link-color-a
ctive
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"@navbar
LinkColorH
over"
>
<input
type=
"text"
class=
"span3"
placeholder=
"@navbar
-link-color-h
over"
>
<label>
@navbar
LinkBackgroundH
over
</label>
<label>
@navbar
-link-background-h
over
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"transparent"
>
<input
type=
"text"
class=
"span3"
placeholder=
"transparent"
>
<label>
@navbar
LinkBackgroundA
ctive
</label>
<label>
@navbar
-link-background-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
CollapseW
idth
</label>
<label>
@navbar
-collapse-w
idth
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"979px"
>
<input
type=
"text"
class=
"span3"
placeholder=
"979px"
>
<label>
@navbar
CollapseDesktopWidth
</label>
<label>
@navbar
-collapse-width-desktop
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"@navbar
CollapseW
idth + 1"
>
<input
type=
"text"
class=
"span3"
placeholder=
"@navbar
-collapse-w
idth + 1"
>
<h3>
{{
_i
}}
Dropdowns
{{/
i
}}
</h3>
<h3>
{{
_i
}}
Dropdowns
{{/
i
}}
</h3>
<label>
@dropdown-background
</label>
<label>
@dropdown-background
</label>
...
...
less/mixins.less
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;
}
}
...
...
less/navbar.less
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
BackgroundHighlight, @navbarB
ackground);
#gradient > .vertical(@navbar
-background-highlight, @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
Height - @line-height-base) / 2) 20px ((@navbarH
eight - @line-height-base) / 2);
padding: ((@navbar
-height - @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
BrandC
olor;
color: @navbar
-brand-c
olor;
text-shadow: 0 1px 0 @navbar
BackgroundH
ighlight;
text-shadow: 0 1px 0 @navbar
-background-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
LinkC
olor;
color: @navbar
-link-c
olor;
&:hover {
&:hover {
color: @navbar
LinkColorH
over;
color: @navbar
-link-color-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
BackgroundH
ighlight;
border-right: 1px solid @navbar
-background-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
Height - @line-height-base) / 2) 15px ((@navbarH
eight - @line-height-base) / 2);
padding: ((@navbar
-height - @line-height-base) / 2) 15px ((@navbar-h
eight - @line-height-base) / 2);
color: @navbar
LinkC
olor;
color: @navbar
-link-c
olor;
text-decoration: none;
text-decoration: none;
text-shadow: 0 1px 0 @navbar
BackgroundH
ighlight;
text-shadow: 0 1px 0 @navbar
-background-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
LinkBackgroundH
over; // "transparent" is default to differentiate :hover from .active
background-color: @navbar
-link-background-h
over; // "transparent" is default to differentiate :hover from .active
color: @navbar
LinkColorH
over;
color: @navbar
-link-color-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
LinkColorA
ctive;
color: @navbar
-link-color-a
ctive;
text-decoration: none;
text-decoration: none;
background-color: @navbar
LinkBackgroundA
ctive;
background-color: @navbar
-link-background-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
BackgroundHighlight, 5%), darken(@navbarB
ackground, 5%));
.buttonBackground(darken(@navbar
-background-highlight, 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
LinkColorA
ctive;
border-top-color: @navbar
-link-color-a
ctive;
border-bottom-color: @navbar
LinkColorA
ctive;
border-bottom-color: @navbar
-link-color-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
LinkBackgroundA
ctive;
background-color: @navbar
-link-background-a
ctive;
color: @navbar
LinkColorA
ctive;
color: @navbar
-link-color-a
ctive;
}
}
.navbar .nav li.dropdown > .dropdown-toggle .caret {
.navbar .nav li.dropdown > .dropdown-toggle .caret {
border-top-color: @navbar
LinkC
olor;
border-top-color: @navbar
-link-c
olor;
border-bottom-color: @navbar
LinkC
olor;
border-bottom-color: @navbar
-link-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
LinkColorA
ctive;
border-top-color: @navbar
-link-color-a
ctive;
border-bottom-color: @navbar
LinkColorA
ctive;
border-bottom-color: @navbar
-link-color-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
InverseBackgroundHighlight, @navbarInverseB
ackground);
#gradient > .vertical(@navbar
-inverse-background-highlight, @navbar-inverse-b
ackground);
border-color: @navbar
InverseB
order;
border-color: @navbar
-inverse-b
order;
.brand,
.brand,
.nav > li > a {
.nav > li > a {
color: @navbar
InverseLinkC
olor;
color: @navbar
-inverse-link-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
InverseLinkColorH
over;
color: @navbar
-inverse-link-color-h
over;
}
}
}
}
.brand {
.brand {
color: @navbar
InverseBrandC
olor;
color: @navbar
-inverse-brand-c
olor;
}
}
.navbar-text {
.navbar-text {
color: @navbar
InverseT
ext;
color: @navbar
-inverse-t
ext;
}
}
.nav > li > a:focus,
.nav > li > a:focus,
.nav > li > a:hover {
.nav > li > a:hover {
background-color: @navbar
InverseLinkBackgroundH
over;
background-color: @navbar
-inverse-link-background-h
over;
color: @navbar
InverseLinkColorH
over;
color: @navbar
-inverse-link-color-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
InverseLinkColorA
ctive;
color: @navbar
-inverse-link-color-a
ctive;
background-color: @navbar
InverseLinkBackgroundA
ctive;
background-color: @navbar
-inverse-link-background-a
ctive;
}
}
// Inline text links
// Inline text links
.navbar-link {
.navbar-link {
color: @navbar
InverseLinkC
olor;
color: @navbar
-inverse-link-c
olor;
&:hover {
&:hover {
color: @navbar
InverseLinkColorH
over;
color: @navbar
-inverse-link-color-h
over;
}
}
}
}
// Dividers in navbar
// Dividers in navbar
.divider-vertical {
.divider-vertical {
border-left-color: @navbar
InverseB
ackground;
border-left-color: @navbar
-inverse-b
ackground;
border-right-color: @navbar
InverseBackgroundH
ighlight;
border-right-color: @navbar
-inverse-background-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
InverseLinkBackgroundA
ctive;
background-color: @navbar
-inverse-link-background-a
ctive;
color: @navbar
InverseLinkColorA
ctive;
color: @navbar
-inverse-link-color-a
ctive;
}
}
.nav li.dropdown > a:hover .caret {
.nav li.dropdown > a:hover .caret {
border-top-color: @navbar
InverseLinkColorA
ctive;
border-top-color: @navbar
-inverse-link-color-a
ctive;
border-bottom-color: @navbar
InverseLinkColorA
ctive;
border-bottom-color: @navbar
-inverse-link-color-a
ctive;
}
}
.nav li.dropdown > .dropdown-toggle .caret {
.nav li.dropdown > .dropdown-toggle .caret {
border-top-color: @navbar
InverseLinkC
olor;
border-top-color: @navbar
-inverse-link-c
olor;
border-bottom-color: @navbar
InverseLinkC
olor;
border-bottom-color: @navbar
-inverse-link-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
InverseLinkColorA
ctive;
border-top-color: @navbar
-inverse-link-color-a
ctive;
border-bottom-color: @navbar
InverseLinkColorA
ctive;
border-bottom-color: @navbar
-inverse-link-color-a
ctive;
}
}
// Navbar search
// Navbar search
.navbar-search {
.navbar-search {
.search-query {
.search-query {
color: #fff;
color: #fff;
background-color: @navbar
InverseSearchB
ackground;
background-color: @navbar
-inverse-search-b
ackground;
border-color: @navbar
InverseSearchB
order;
border-color: @navbar
-inverse-search-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
InverseSearchPlaceholderC
olor);
.placeholder(@navbar
-inverse-search-placeholder-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
InverseSearchBackgroundF
ocus;
background-color: @navbar
-inverse-search-background-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
InverseBackgroundHighlight, 5%), darken(@navbarInverseB
ackground, 5%));
.buttonBackground(darken(@navbar
-inverse-background-highlight, 5%), darken(@navbar-inverse-b
ackground, 5%));
}
}
}
}
less/responsive-navbar.less
View file @
62a22200
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
// TABLETS AND BELOW
// TABLETS AND BELOW
// -----------------
// -----------------
@media (max-width: @navbar
CollapseW
idth) {
@media (max-width: @navbar
-collapse-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
LinkC
olor;
color: @navbar
-link-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
InverseLinkC
olor;
color: @navbar
-inverse-link-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
InverseB
ackground;
background-color: @navbar
-inverse-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
InverseB
ackground;
border-top-color: @navbar
-inverse-b
ackground;
border-bottom-color: @navbar
InverseB
ackground;
border-bottom-color: @navbar
-inverse-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
CollapseDesktopWidth
) {
@media (min-width: @navbar
-collapse-width-desktop
) {
// 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 {
...
...
less/variables.less
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
CollapseWidth:
979px;
@navbar
-collapse-width:
979px;
@navbar
CollapseDesktopWidth: @navbarCollapseW
idth + 1;
@navbar
-collapse-width-desktop: @navbar-collapse-w
idth + 1;
@navbar
H
eight: 44px;
@navbar
-h
eight: 44px;
@navbar
BackgroundHighlight:
#ffffff;
@navbar
-background-highlight:
#ffffff;
@navbar
Background: darken(@navbarBackgroundH
ighlight, 5%);
@navbar
-background: darken(@navbar-background-h
ighlight, 5%);
@navbar
Border: darken(@navbarB
ackground, 12%);
@navbar
-border: darken(@navbar-b
ackground, 12%);
@navbar
T
ext: #777;
@navbar
-t
ext: #777;
@navbar
LinkC
olor: #777;
@navbar
-link-c
olor: #777;
@navbar
LinkColorH
over: @grayDark;
@navbar
-link-color-h
over: @grayDark;
@navbar
LinkColorA
ctive: @gray;
@navbar
-link-color-a
ctive: @gray;
@navbar
LinkBackgroundH
over: transparent;
@navbar
-link-background-h
over: transparent;
@navbar
LinkBackgroundActive: darken(@navbarB
ackground, 5%);
@navbar
-link-background-active: darken(@navbar-b
ackground, 5%);
@navbar
BrandColor: @navbarLinkC
olor;
@navbar
-brand-color: @navbar-link-c
olor;
// Inverted navbar
// Inverted navbar
@navbar
InverseB
ackground: #111111;
@navbar
-inverse-b
ackground: #111111;
@navbar
InverseBackgroundH
ighlight: #222222;
@navbar
-inverse-background-h
ighlight: #222222;
@navbar
InverseB
order: #111111;
@navbar
-inverse-b
order: #111111;
@navbar
InverseT
ext: @grayLight;
@navbar
-inverse-t
ext: @grayLight;
@navbar
InverseLinkC
olor: @grayLight;
@navbar
-inverse-link-c
olor: @grayLight;
@navbar
InverseLinkColorH
over: #fff;
@navbar
-inverse-link-color-h
over: #fff;
@navbar
InverseLinkColorActive: @navbarInverseLinkColorH
over;
@navbar
-inverse-link-color-active: @navbar-inverse-link-color-h
over;
@navbar
InverseLinkBackgroundH
over: transparent;
@navbar
-inverse-link-background-h
over: transparent;
@navbar
InverseLinkBackgroundActive: @navbarInverseB
ackground;
@navbar
-inverse-link-background-active: @navbar-inverse-b
ackground;
@navbar
InverseSearchBackground: lighten(@navbarInverseB
ackground, 25%);
@navbar
-inverse-search-background: lighten(@navbar-inverse-b
ackground, 25%);
@navbar
InverseSearchBackgroundF
ocus: #fff;
@navbar
-inverse-search-background-f
ocus: #fff;
@navbar
InverseSearchBorder: @navbarInverseB
ackground;
@navbar
-inverse-search-border: @navbar-inverse-b
ackground;
@navbar
InverseSearchPlaceholderC
olor: #ccc;
@navbar
-inverse-search-placeholder-c
olor: #ccc;
@navbar
InverseBrandColor: @navbarInverseLinkC
olor;
@navbar
-inverse-brand-color: @navbar-inverse-link-c
olor;
// Pagination
// Pagination
...
...
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