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
f8d5a974
Commit
f8d5a974
authored
Jul 25, 2013
by
syed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moving navbar inline properties to variables.less and customize.html
parent
e9c83647
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
7 deletions
+31
-7
customize.html
customize.html
+14
-0
less/navbar.less
less/navbar.less
+7
-7
less/variables.less
less/variables.less
+10
-0
No files found.
customize.html
View file @
f8d5a974
...
@@ -724,6 +724,13 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge
...
@@ -724,6 +724,13 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge
<input
type=
"text"
placeholder=
"darken(@navbar-link-color, 10%)"
>
<input
type=
"text"
placeholder=
"darken(@navbar-link-color, 10%)"
>
<label>
@navbar-brand-hover-bg
</label>
<label>
@navbar-brand-hover-bg
</label>
<input
type=
"text"
placeholder=
"transparent"
>
<input
type=
"text"
placeholder=
"transparent"
>
<h4>
Toggle
</h4>
<label>
@navbar-toggle-hover-bg
</label>
<input
type=
"text"
placeholder=
"#ddd"
>
<label>
@navbar-toggle-icon-bar-bg
</label>
<input
type=
"text"
placeholder=
"#ccc"
>
<label>
@navbar-toggle-border-color
</label>
<input
type=
"text"
placeholder=
"#ddd"
>
</div>
</div>
<div
class=
"col-lg-6"
>
<div
class=
"col-lg-6"
>
<h3>
Inverted navbar
</h3>
<h3>
Inverted navbar
</h3>
...
@@ -754,6 +761,13 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge
...
@@ -754,6 +761,13 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge
<input
type=
"text"
placeholder=
"#fff"
>
<input
type=
"text"
placeholder=
"#fff"
>
<label>
@navbar-inverse-brand-hover-bg
</label>
<label>
@navbar-inverse-brand-hover-bg
</label>
<input
type=
"text"
placeholder=
"transparent"
>
<input
type=
"text"
placeholder=
"transparent"
>
<h4>
Toggle
</h4>
<label>
@navbar-inverse-toggle-hover-bg
</label>
<input
type=
"text"
placeholder=
"#333"
>
<label>
@navbar-inverse-toggle-icon-bar-bg
</label>
<input
type=
"text"
placeholder=
"#fff"
>
<label>
@navbar-inverse-toggle-border-color
</label>
<input
type=
"text"
placeholder=
"#333"
>
</div>
</div>
</div>
</div>
...
...
less/navbar.less
View file @
f8d5a974
...
@@ -123,12 +123,12 @@
...
@@ -123,12 +123,12 @@
height: 32px;
height: 32px;
padding: 8px 12px;
padding: 8px 12px;
background-color: transparent;
background-color: transparent;
border: 1px solid
#ddd
;
border: 1px solid
@navbar-toggle-border-color
;
border-radius:
4px
;
border-radius:
@border-radius-base
;
&:hover,
&:hover,
&:focus {
&:focus {
background-color:
#ddd
;
background-color:
@navbar-toggle-hover-bg
;
}
}
// Bars
// Bars
...
@@ -136,7 +136,7 @@
...
@@ -136,7 +136,7 @@
display: block;
display: block;
width: 22px;
width: 22px;
height: 2px;
height: 2px;
background-color:
#ccc
;
background-color:
@navbar-toggle-icon-bar-bg
;
border-radius: 1px;
border-radius: 1px;
}
}
.icon-bar + .icon-bar {
.icon-bar + .icon-bar {
...
@@ -250,13 +250,13 @@
...
@@ -250,13 +250,13 @@
// Darken the responsive nav toggle
// Darken the responsive nav toggle
.navbar-toggle {
.navbar-toggle {
border-color:
#333
;
border-color:
@navbar-inverse-toggle-border-color
;
&:hover,
&:hover,
&:focus {
&:focus {
background-color:
#333
;
background-color:
@navbar-inverse-toggle-hover-bg
;
}
}
.icon-bar {
.icon-bar {
background-color:
#fff
;
background-color:
@navbar-inverse-toggle-icon-bar-bg
;
}
}
}
}
...
...
less/variables.less
View file @
f8d5a974
...
@@ -224,6 +224,16 @@
...
@@ -224,6 +224,16 @@
@navbar-inverse-search-border: @navbar-inverse-bg;
@navbar-inverse-search-border: @navbar-inverse-bg;
@navbar-inverse-search-placeholder-color: #ccc;
@navbar-inverse-search-placeholder-color: #ccc;
// Navbar toggle
@navbar-toggle-hover-bg: #ddd;
@navbar-toggle-icon-bar-bg: #ccc;
@navbar-toggle-border-color: #ddd;
// Inverted navbar toggle
@navbar-inverse-toggle-hover-bg: #333;
@navbar-inverse-toggle-icon-bar-bg: #fff;
@navbar-inverse-toggle-border-color: #333;
// 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