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
0ef34770
Commit
0ef34770
authored
Nov 30, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more vars changing
parent
9239bfbc
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
44 additions
and
34 deletions
+44
-34
docs/customize.html
docs/customize.html
+5
-5
docs/templates/pages/customize.mustache
docs/templates/pages/customize.mustache
+5
-5
less/dropdowns.less
less/dropdowns.less
+10
-10
less/navbar.less
less/navbar.less
+4
-4
less/variables.less
less/variables.less
+20
-10
No files found.
docs/customize.html
View file @
0ef34770
...
@@ -423,15 +423,15 @@
...
@@ -423,15 +423,15 @@
<input
type=
"text"
class=
"span3"
placeholder=
"@navbarCollapseWidth + 1"
>
<input
type=
"text"
class=
"span3"
placeholder=
"@navbarCollapseWidth + 1"
>
<h3>
Dropdowns
</h3>
<h3>
Dropdowns
</h3>
<label>
@dropdown
B
ackground
</label>
<label>
@dropdown
-b
ackground
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"#fff"
>
<input
type=
"text"
class=
"span3"
placeholder=
"#fff"
>
<label>
@dropdown
B
order
</label>
<label>
@dropdown
-b
order
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"rgba(0,0,0,.2)"
>
<input
type=
"text"
class=
"span3"
placeholder=
"rgba(0,0,0,.2)"
>
<label>
@dropdown
LinkC
olor
</label>
<label>
@dropdown
-link-c
olor
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"@grayDark"
>
<input
type=
"text"
class=
"span3"
placeholder=
"@grayDark"
>
<label>
@dropdown
LinkColorH
over
</label>
<label>
@dropdown
-link-color-h
over
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"#fff"
>
<input
type=
"text"
class=
"span3"
placeholder=
"#fff"
>
<label>
@dropdown
LinkBackgroundH
over
</label>
<label>
@dropdown
-link-background-h
over
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"@link-color"
>
<input
type=
"text"
class=
"span3"
placeholder=
"@link-color"
>
</div>
<!-- /span -->
</div>
<!-- /span -->
</div>
<!-- /row -->
</div>
<!-- /row -->
...
...
docs/templates/pages/customize.mustache
View file @
0ef34770
...
@@ -355,15 +355,15 @@
...
@@ -355,15 +355,15 @@
<input
type=
"text"
class=
"span3"
placeholder=
"@navbarCollapseWidth + 1"
>
<input
type=
"text"
class=
"span3"
placeholder=
"@navbarCollapseWidth + 1"
>
<h3>
{{
_i
}}
Dropdowns
{{/
i
}}
</h3>
<h3>
{{
_i
}}
Dropdowns
{{/
i
}}
</h3>
<label>
@dropdown
B
ackground
</label>
<label>
@dropdown
-b
ackground
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"#fff"
>
<input
type=
"text"
class=
"span3"
placeholder=
"#fff"
>
<label>
@dropdown
B
order
</label>
<label>
@dropdown
-b
order
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"rgba(0,0,0,.2)"
>
<input
type=
"text"
class=
"span3"
placeholder=
"rgba(0,0,0,.2)"
>
<label>
@dropdown
LinkC
olor
</label>
<label>
@dropdown
-link-c
olor
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"@grayDark"
>
<input
type=
"text"
class=
"span3"
placeholder=
"@grayDark"
>
<label>
@dropdown
LinkColorH
over
</label>
<label>
@dropdown
-link-color-h
over
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"#fff"
>
<input
type=
"text"
class=
"span3"
placeholder=
"#fff"
>
<label>
@dropdown
LinkBackgroundH
over
</label>
<label>
@dropdown
-link-background-h
over
</label>
<input
type=
"text"
class=
"span3"
placeholder=
"@link-color"
>
<input
type=
"text"
class=
"span3"
placeholder=
"@link-color"
>
</div>
<!-- /span -->
</div>
<!-- /span -->
</div>
<!-- /row -->
</div>
<!-- /row -->
...
...
less/dropdowns.less
View file @
0ef34770
...
@@ -45,9 +45,9 @@
...
@@ -45,9 +45,9 @@
padding: 5px 0;
padding: 5px 0;
margin: 2px 0 0; // override default ul
margin: 2px 0 0; // override default ul
list-style: none;
list-style: none;
background-color: @dropdown
B
ackground;
background-color: @dropdown
-b
ackground;
border: 1px solid #ccc; // IE8 fallback
border: 1px solid #ccc; // IE8 fallback
border: 1px solid @dropdown
B
order;
border: 1px solid @dropdown
-b
order;
border-radius: @border-radius-base;
border-radius: @border-radius-base;
.box-shadow(0 5px 10px rgba(0,0,0,.2));
.box-shadow(0 5px 10px rgba(0,0,0,.2));
.background-clip(padding-box);
.background-clip(padding-box);
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
// Dividers (basically an hr) within the dropdown
// Dividers (basically an hr) within the dropdown
.divider {
.divider {
.nav-divider(@dropdown
DividerTop, @dropdownDividerB
ottom);
.nav-divider(@dropdown
-divider-top, @dropdown-divider-b
ottom);
}
}
// Links within the dropdown menu
// Links within the dropdown menu
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
clear: both;
clear: both;
font-weight: normal;
font-weight: normal;
line-height: @line-height-base;
line-height: @line-height-base;
color: @dropdown
LinkC
olor;
color: @dropdown
-link-c
olor;
white-space: nowrap;
white-space: nowrap;
}
}
}
}
...
@@ -81,18 +81,18 @@
...
@@ -81,18 +81,18 @@
.dropdown-menu li > a:focus,
.dropdown-menu li > a:focus,
.dropdown-submenu:hover > a {
.dropdown-submenu:hover > a {
text-decoration: none;
text-decoration: none;
color: @dropdown
LinkColorH
over;
color: @dropdown
-link-color-h
over;
#gradient > .vertical(@dropdown
LinkBackgroundHover, darken(@dropdownLinkBackgroundH
over, 5%));
#gradient > .vertical(@dropdown
-link-background-hover, darken(@dropdown-link-background-h
over, 5%));
}
}
// Active state
// Active state
// ------------
// ------------
.dropdown-menu .active > a,
.dropdown-menu .active > a,
.dropdown-menu .active > a:hover {
.dropdown-menu .active > a:hover {
color: @dropdown
LinkColorA
ctive;
color: @dropdown
-link-color-a
ctive;
text-decoration: none;
text-decoration: none;
outline: 0;
outline: 0;
#gradient > .vertical(@dropdown
LinkBackgroundActive, darken(@dropdownLinkBackgroundA
ctive, 5%));
#gradient > .vertical(@dropdown
-link-background-active, darken(@dropdown-link-background-a
ctive, 5%));
}
}
// Disabled state
// Disabled state
...
@@ -182,12 +182,12 @@
...
@@ -182,12 +182,12 @@
border-color: transparent;
border-color: transparent;
border-style: solid;
border-style: solid;
border-width: 5px 0 5px 5px;
border-width: 5px 0 5px 5px;
border-left-color: darken(@dropdown
B
ackground, 20%);
border-left-color: darken(@dropdown
-b
ackground, 20%);
margin-top: 5px;
margin-top: 5px;
margin-right: -10px;
margin-right: -10px;
}
}
.dropdown-submenu:hover > a:after {
.dropdown-submenu:hover > a:after {
border-left-color: @dropdown
LinkColorH
over;
border-left-color: @dropdown
-link-color-h
over;
}
}
// Left aligned submenus
// Left aligned submenus
...
...
less/navbar.less
View file @
0ef34770
...
@@ -279,7 +279,7 @@
...
@@ -279,7 +279,7 @@
border-left: 7px solid transparent;
border-left: 7px solid transparent;
border-right: 7px solid transparent;
border-right: 7px solid transparent;
border-bottom: 7px solid #ccc;
border-bottom: 7px solid #ccc;
border-bottom-color: @dropdown
B
order;
border-bottom-color: @dropdown
-b
order;
position: absolute;
position: absolute;
top: -7px;
top: -7px;
left: 9px;
left: 9px;
...
@@ -289,7 +289,7 @@
...
@@ -289,7 +289,7 @@
display: inline-block;
display: inline-block;
border-left: 6px solid transparent;
border-left: 6px solid transparent;
border-right: 6px solid transparent;
border-right: 6px solid transparent;
border-bottom: 6px solid @dropdown
B
ackground;
border-bottom: 6px solid @dropdown
-b
ackground;
position: absolute;
position: absolute;
top: -6px;
top: -6px;
left: 10px;
left: 10px;
...
@@ -299,13 +299,13 @@
...
@@ -299,13 +299,13 @@
.navbar-fixed-bottom .nav > li > .dropdown-menu {
.navbar-fixed-bottom .nav > li > .dropdown-menu {
&:before {
&:before {
border-top: 7px solid #ccc;
border-top: 7px solid #ccc;
border-top-color: @dropdown
B
order;
border-top-color: @dropdown
-b
order;
border-bottom: 0;
border-bottom: 0;
bottom: -7px;
bottom: -7px;
top: auto;
top: auto;
}
}
&:after {
&:after {
border-top: 6px solid @dropdown
B
ackground;
border-top: 6px solid @dropdown
-b
ackground;
border-bottom: 0;
border-bottom: 0;
bottom: -6px;
bottom: -6px;
top: auto;
top: auto;
...
...
less/variables.less
View file @
0ef34770
...
@@ -30,12 +30,14 @@
...
@@ -30,12 +30,14 @@
// Scaffolding
// Scaffolding
// -------------------------
// -------------------------
@body-background: #fff;
@body-background: #fff;
@text-color: @grayDark;
@text-color: @grayDark;
// Links
// Links
// -------------------------
// -------------------------
@link-color: #08c;
@link-color: #08c;
@link-color-hover: darken(@link-color, 15%);
@link-color-hover: darken(@link-color, 15%);
...
@@ -73,14 +75,17 @@
...
@@ -73,14 +75,17 @@
// Tables
// Tables
// -------------------------
// -------------------------
@table-background: transparent; // overall background-color
@table-background: transparent; // overall background-color
@table-background-accent: #f9f9f9; // for striping
@table-background-accent: #f9f9f9; // for striping
@table-background-hover: #f5f5f5; // for hover
@table-background-hover: #f5f5f5; // for hover
@table-border: #ddd; // table and cell border
@table-border: #ddd; // table and cell border
// Buttons
// Buttons
// -------------------------
// -------------------------
@btn-background: #fff;
@btn-background: #fff;
@btn-background-highlight: darken(#fff, 10%);
@btn-background-highlight: darken(#fff, 10%);
@btn-border: #bbb;
@btn-border: #bbb;
...
@@ -106,28 +111,33 @@
...
@@ -106,28 +111,33 @@
// Forms
// Forms
// -------------------------
// -------------------------
@input-background: #fff;
@input-background: #fff;
@input-background-disabled: @grayLighter;
@input-border: #ccc;
@input-border: #ccc;
@input-border-radius: @border-radius-base;
@input-border-radius: @border-radius-base;
@input-border-radius-search: 20px;
@input-border-radius-search: 20px;
@input-background-disabled: @grayLighter;
@form-actions-background: #f5f5f5;
@form-actions-background: #f5f5f5;
@input-height: @line-height-base + 14px; // base line-height + 12px vertical padding + 2px top/bottom border
@input-height: @line-height-base + 14px; // base line-height + 12px vertical padding + 2px top/bottom border
// Dropdowns
// Dropdowns
// -------------------------
// -------------------------
@dropdownBackground: #fff;
@dropdownBorder: rgba(0,0,0,.2);
@dropdownDividerTop: #e5e5e5;
@dropdownDividerBottom: #fff;
@dropdownLinkColor: @grayDark;
@dropdown-background: #fff;
@dropdownLinkColorHover: #fff;
@dropdown-border: rgba(0,0,0,.2);
@dropdownLinkColorActive: #fff;
@dropdown-divider-top: #e5e5e5;
@dropdown-divider-bottom: #fff;
@dropdown-link-color: @grayDark;
@dropdown-link-color-hover: #fff;
@dropdown-link-color-active: #fff;
@dropdown
LinkBackgroundA
ctive: @link-color;
@dropdown
-link-background-a
ctive: @link-color;
@dropdown
LinkBackgroundHover: @dropdownLinkBackgroundA
ctive;
@dropdown
-link-background-hover: @dropdown-link-background-a
ctive;
...
...
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