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
3a218918
Commit
3a218918
authored
May 13, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#3469: add variables for dropdown menu dividers
parent
526d77af
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
5 deletions
+22
-5
docs/less.html
docs/less.html
+8
-0
docs/templates/pages/less.mustache
docs/templates/pages/less.mustache
+8
-0
less/dropdowns.less
less/dropdowns.less
+1
-1
less/mixins.less
less/mixins.less
+3
-3
less/variables.less
less/variables.less
+2
-1
No files found.
docs/less.html
View file @
3a218918
...
@@ -614,6 +614,14 @@
...
@@ -614,6 +614,14 @@
<td><code>
@dropdownLinkBackgroundHover
</code></td>
<td><code>
@dropdownLinkBackgroundHover
</code></td>
<td><code>
@linkColor
</code></td>
<td><code>
@linkColor
</code></td>
</tr>
</tr>
<tr>
<td><code>
@@dropdownDividerTop
</code></td>
<td><code>
#e5e5e5
</code></td>
</tr>
<tr>
<td><code>
@@dropdownDividerBottom
</code></td>
<td><code>
@white
</code></td>
</tr>
</tbody>
</tbody>
</table>
</table>
<h4>
Hero unit
</h4>
<h4>
Hero unit
</h4>
...
...
docs/templates/pages/less.mustache
View file @
3a218918
...
@@ -537,6 +537,14 @@
...
@@ -537,6 +537,14 @@
<td><code>
@dropdownLinkBackgroundHover
</code></td>
<td><code>
@dropdownLinkBackgroundHover
</code></td>
<td><code>
@linkColor
</code></td>
<td><code>
@linkColor
</code></td>
</tr>
</tr>
<tr>
<td><code>
@@dropdownDividerTop
</code></td>
<td><code>
#e5e5e5
</code></td>
</tr>
<tr>
<td><code>
@@dropdownDividerBottom
</code></td>
<td><code>
@white
</code></td>
</tr>
</tbody>
</tbody>
</table>
</table>
<h4>
{{
_i
}}
Hero unit
{{/
i
}}
</h4>
<h4>
{{
_i
}}
Hero unit
{{/
i
}}
</h4>
...
...
less/dropdowns.less
View file @
3a218918
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
// Dividers (basically an hr) within the dropdown
// Dividers (basically an hr) within the dropdown
.divider {
.divider {
.nav-divider();
.nav-divider(
@dropdownDividerTop, @dropdownDividerBottom
);
}
}
// Links within the dropdown menu
// Links within the dropdown menu
...
...
less/mixins.less
View file @
3a218918
...
@@ -417,7 +417,7 @@
...
@@ -417,7 +417,7 @@
// Horizontal dividers
// Horizontal dividers
// -------------------------
// -------------------------
// Dividers (basically an hr) within dropdowns and nav lists
// Dividers (basically an hr) within dropdowns and nav lists
.nav-divider() {
.nav-divider(
@top: #e5e5e5, @bottom: @white
) {
// IE7 needs a set width since we gave a height. Restricting just
// IE7 needs a set width since we gave a height. Restricting just
// to IE7 to keep the 1px left/right space in other browsers.
// to IE7 to keep the 1px left/right space in other browsers.
// It is unclear where IE is getting the extra space that we need
// It is unclear where IE is getting the extra space that we need
...
@@ -427,8 +427,8 @@
...
@@ -427,8 +427,8 @@
margin: ((@baseLineHeight / 2) - 1) 1px; // 8px 1px
margin: ((@baseLineHeight / 2) - 1) 1px; // 8px 1px
*margin: -5px 0 5px;
*margin: -5px 0 5px;
overflow: hidden;
overflow: hidden;
background-color:
#e5e5e5
;
background-color:
@top
;
border-bottom: 1px solid @
white
;
border-bottom: 1px solid @
bottom
;
}
}
// Button backgrounds
// Button backgrounds
...
...
less/variables.less
View file @
3a218918
...
@@ -107,7 +107,8 @@
...
@@ -107,7 +107,8 @@
@dropdownLinkColor: @grayDark;
@dropdownLinkColor: @grayDark;
@dropdownLinkColorHover: @white;
@dropdownLinkColorHover: @white;
@dropdownLinkBackgroundHover: @linkColor;
@dropdownLinkBackgroundHover: @linkColor;
@dropdownDividerTop: #e5e5e5;
@dropdownDividerBottom: @white;
...
...
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