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
76ed6b0b
Commit
76ed6b0b
authored
12 years ago
by
Mark Otto
Browse files
Options
Download
Email Patches
Plain Diff
Remove comment out code and simplify what's left for button group toggles
parent
1916eb7c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/assets/css/bootstrap.css
+2
-23
docs/assets/css/bootstrap.css
less/button-groups.less
+5
-26
less/button-groups.less
with
7 additions
and
49 deletions
+7
-49
docs/assets/css/bootstrap.css
+
2
-
23
View file @
76ed6b0b
...
@@ -2689,30 +2689,9 @@ fieldset[disabled] .btn-link:hover {
...
@@ -2689,30 +2689,9 @@ fieldset[disabled] .btn-link:hover {
padding-left
:
12px
;
padding-left
:
12px
;
}
}
.btn-group.open
{
/* .btn.dropdown-toggle {
background-color: @btn-background-highlight;
}
.btn-primary.dropdown-toggle {
background-color: @btn-background-primary-highlight;
}
.btn-warning.dropdown-toggle {
background-color: @btn-background-warning-highlight;
}
.btn-danger.dropdown-toggle {
background-color: @btn-background-danger-highlight;
}
.btn-success.dropdown-toggle {
background-color: @btn-background-success-highlight;
}
*/
}
.btn-group.open
.dropdown-toggle
{
.btn-group.open
.dropdown-toggle
{
background-image
:
none
;
-webkit-box-shadow
:
inset
0
3px
5px
rgba
(
0
,
0
,
0
,
0.125
);
-webkit-box-shadow
:
inset
0
2px
4px
rgba
(
0
,
0
,
0
,
0.15
);
box-shadow
:
inset
0
3px
5px
rgba
(
0
,
0
,
0
,
0.125
);
box-shadow
:
inset
0
2px
4px
rgba
(
0
,
0
,
0
,
0.15
);
}
}
.btn
.caret
{
.btn
.caret
{
...
...
This diff is collapsed.
Click to expand it.
less/button-groups.less
+
5
-
26
View file @
76ed6b0b
...
@@ -91,32 +91,11 @@
...
@@ -91,32 +91,11 @@
padding-right: 12px;
padding-right: 12px;
}
}
.btn-group.open {
// The clickable button for toggling the menu
// Remove the gradient and set the same inset shadow as the :active state
// The clickable button for toggling the menu
.btn-group.open .dropdown-toggle {
// Remove the gradient and set the same inset shadow as the :active state
.box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
.dropdown-toggle {
}
background-image: none;
.box-shadow(inset 0 2px 4px rgba(0,0,0,.15));
}
// Keep the hover's background when dropdown is open
/* .btn.dropdown-toggle {
background-color: @btn-background-highlight;
}
.btn-primary.dropdown-toggle {
background-color: @btn-background-primary-highlight;
}
.btn-warning.dropdown-toggle {
background-color: @btn-background-warning-highlight;
}
.btn-danger.dropdown-toggle {
background-color: @btn-background-danger-highlight;
}
.btn-success.dropdown-toggle {
background-color: @btn-background-success-highlight;
}
*/}
// Reposition the caret
// Reposition the caret
...
...
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