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
1c9db106
Commit
1c9db106
authored
13 years ago
by
Pete Hopkins
Browse files
Options
Download
Email Patches
Plain Diff
Moves buttonBackground to mixins (issue 1292)
parent
a1fc352c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
less/buttons.less
+0
-25
less/buttons.less
less/mixins.less
+23
-0
less/mixins.less
with
23 additions
and
25 deletions
+23
-25
less/buttons.less
+
0
-
25
View file @
1c9db106
...
@@ -35,31 +35,6 @@
...
@@ -35,31 +35,6 @@
}
}
}
}
// Mixin for generating button backgrounds
// ---------------------------------------
.buttonBackground(@startColor, @endColor) {
// gradientBar will set the background to a pleasing blend of these, to support IE<=9
.gradientBar(@startColor, @endColor);
// in these cases the gradient won't cover the background, so we override
&:hover, &:active, &.active, &.disabled {
background-color: @endColor;
}
// called out separately because IE8 would ignore otherwise
&[disabled] {
background-color: @endColor;
}
// IE 7 + 8 can't handle box-shadow to show active, so we darken a bit ourselves
&:active,
&.active {
background-color: darken(@endColor, 10%) e("\9");
}
}
// Base styles
// Base styles
// -----------
// -----------
...
...
This diff is collapsed.
Click to expand it.
less/mixins.less
+
23
-
0
View file @
1c9db106
...
@@ -339,6 +339,29 @@
...
@@ -339,6 +339,29 @@
}
}
// Mixin for generating button backgrounds
// ---------------------------------------
.buttonBackground(@startColor, @endColor) {
// gradientBar will set the background to a pleasing blend of these, to support IE<=9
.gradientBar(@startColor, @endColor);
// in these cases the gradient won't cover the background, so we override
&:hover, &:active, &.active, &.disabled {
background-color: @endColor;
}
// called out separately because IE8 would ignore otherwise
&[disabled] {
background-color: @endColor;
}
// IE 7 + 8 can't handle box-shadow to show active, so we darken a bit ourselves
&:active,
&.active {
background-color: darken(@endColor, 10%) e("\9");
}
}
// COMPONENT MIXINS
// COMPONENT MIXINS
// --------------------------------------------------
// --------------------------------------------------
...
...
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