Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
5bbbdb39
Commit
5bbbdb39
authored
11 years ago
by
Mark Otto
Browse files
Options
Download
Email Patches
Plain Diff
fixes
#9879
: add hover state to theme buttons
parent
c4c87fed
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dist/css/bootstrap-theme.css
+84
-48
dist/css/bootstrap-theme.css
dist/css/bootstrap-theme.min.css
+1
-1
dist/css/bootstrap-theme.min.css
less/theme.less
+11
-4
less/theme.less
with
96 additions
and
53 deletions
+96
-53
dist/css/bootstrap-theme.css
+
84
-
48
View file @
5bbbdb39
...
@@ -32,100 +32,136 @@
...
@@ -32,100 +32,136 @@
.btn-default
{
.btn-default
{
text-shadow
:
0
1px
0
#fff
;
text-shadow
:
0
1px
0
#fff
;
background-image
:
-webkit-gradient
(
linear
,
left
0%
,
left
100%
,
from
(
#ffffff
),
to
(
#e
6e6e6
));
background-image
:
-webkit-gradient
(
linear
,
left
0%
,
left
100%
,
from
(
#ffffff
),
to
(
#e
0e0e0
));
background-image
:
-webkit-linear-gradient
(
top
,
#ffffff
,
0%
,
#e
6e6e6
,
100%
);
background-image
:
-webkit-linear-gradient
(
top
,
#ffffff
,
0%
,
#e
0e0e0
,
100%
);
background-image
:
-moz-linear-gradient
(
top
,
#ffffff
0%
,
#e
6e6e6
100%
);
background-image
:
-moz-linear-gradient
(
top
,
#ffffff
0%
,
#e
0e0e0
100%
);
background-image
:
linear-gradient
(
to
bottom
,
#ffffff
0%
,
#e
6e6e6
100%
);
background-image
:
linear-gradient
(
to
bottom
,
#ffffff
0%
,
#e
0e0e0
100%
);
background-repeat
:
repeat-x
;
background-repeat
:
repeat-x
;
border-color
:
#
e0e0e0
;
border-color
:
#
dbdbdb
;
border-color
:
#ccc
;
border-color
:
#ccc
;
filter
:
progid
:
DXImageTransform
.
Microsoft
.
gradient
(
startColorstr
=
'#ffffffff'
,
endColorstr
=
'#ffe6e6e6'
,
GradientType
=
0
);
filter
:
progid
:
DXImageTransform
.
Microsoft
.
gradient
(
startColorstr
=
'#ffffffff'
,
endColorstr
=
'#ffe0e0e0'
,
GradientType
=
0
);
}
.btn-default
:hover
,
.btn-default
:focus
{
background-color
:
#e0e0e0
;
background-position
:
0
-15px
;
}
}
.btn-default
:active
,
.btn-default
:active
,
.btn-default.active
{
.btn-default.active
{
background-color
:
#e
6e6e6
;
background-color
:
#e
0e0e0
;
border-color
:
#
e0e0e0
;
border-color
:
#
dbdbdb
;
}
}
.btn-primary
{
.btn-primary
{
background-image
:
-webkit-gradient
(
linear
,
left
0%
,
left
100%
,
from
(
#428bca
),
to
(
#
3071a9
));
background-image
:
-webkit-gradient
(
linear
,
left
0%
,
left
100%
,
from
(
#428bca
),
to
(
#
2d6ca2
));
background-image
:
-webkit-linear-gradient
(
top
,
#428bca
,
0%
,
#
3071a9
,
100%
);
background-image
:
-webkit-linear-gradient
(
top
,
#428bca
,
0%
,
#
2d6ca2
,
100%
);
background-image
:
-moz-linear-gradient
(
top
,
#428bca
0%
,
#
3071a9
100%
);
background-image
:
-moz-linear-gradient
(
top
,
#428bca
0%
,
#
2d6ca2
100%
);
background-image
:
linear-gradient
(
to
bottom
,
#428bca
0%
,
#
3071a9
100%
);
background-image
:
linear-gradient
(
to
bottom
,
#428bca
0%
,
#
2d6ca2
100%
);
background-repeat
:
repeat-x
;
background-repeat
:
repeat-x
;
border-color
:
#2d6ca2
;
border-color
:
#2b669a
;
filter
:
progid
:
DXImageTransform
.
Microsoft
.
gradient
(
startColorstr
=
'#ff428bca'
,
endColorstr
=
'#ff3071a9'
,
GradientType
=
0
);
filter
:
progid
:
DXImageTransform
.
Microsoft
.
gradient
(
startColorstr
=
'#ff428bca'
,
endColorstr
=
'#ff2d6ca2'
,
GradientType
=
0
);
}
.btn-primary
:hover
,
.btn-primary
:focus
{
background-color
:
#2d6ca2
;
background-position
:
0
-15px
;
}
}
.btn-primary
:active
,
.btn-primary
:active
,
.btn-primary.active
{
.btn-primary.active
{
background-color
:
#
3071a9
;
background-color
:
#
2d6ca2
;
border-color
:
#2
d6ca2
;
border-color
:
#2
b669a
;
}
}
.btn-success
{
.btn-success
{
background-image
:
-webkit-gradient
(
linear
,
left
0%
,
left
100%
,
from
(
#5cb85c
),
to
(
#4
49d44
));
background-image
:
-webkit-gradient
(
linear
,
left
0%
,
left
100%
,
from
(
#5cb85c
),
to
(
#4
19641
));
background-image
:
-webkit-linear-gradient
(
top
,
#5cb85c
,
0%
,
#4
49d44
,
100%
);
background-image
:
-webkit-linear-gradient
(
top
,
#5cb85c
,
0%
,
#4
19641
,
100%
);
background-image
:
-moz-linear-gradient
(
top
,
#5cb85c
0%
,
#4
49d44
100%
);
background-image
:
-moz-linear-gradient
(
top
,
#5cb85c
0%
,
#4
19641
100%
);
background-image
:
linear-gradient
(
to
bottom
,
#5cb85c
0%
,
#4
49d44
100%
);
background-image
:
linear-gradient
(
to
bottom
,
#5cb85c
0%
,
#4
19641
100%
);
background-repeat
:
repeat-x
;
background-repeat
:
repeat-x
;
border-color
:
#419641
;
border-color
:
#3e8f3e
;
filter
:
progid
:
DXImageTransform
.
Microsoft
.
gradient
(
startColorstr
=
'#ff5cb85c'
,
endColorstr
=
'#ff449d44'
,
GradientType
=
0
);
filter
:
progid
:
DXImageTransform
.
Microsoft
.
gradient
(
startColorstr
=
'#ff5cb85c'
,
endColorstr
=
'#ff419641'
,
GradientType
=
0
);
}
.btn-success
:hover
,
.btn-success
:focus
{
background-color
:
#419641
;
background-position
:
0
-15px
;
}
}
.btn-success
:active
,
.btn-success
:active
,
.btn-success.active
{
.btn-success.active
{
background-color
:
#4
49d44
;
background-color
:
#4
19641
;
border-color
:
#
419641
;
border-color
:
#
3e8f3e
;
}
}
.btn-warning
{
.btn-warning
{
background-image
:
-webkit-gradient
(
linear
,
left
0%
,
left
100%
,
from
(
#f0ad4e
),
to
(
#e
c971f
));
background-image
:
-webkit-gradient
(
linear
,
left
0%
,
left
100%
,
from
(
#f0ad4e
),
to
(
#e
b9316
));
background-image
:
-webkit-linear-gradient
(
top
,
#f0ad4e
,
0%
,
#e
c971f
,
100%
);
background-image
:
-webkit-linear-gradient
(
top
,
#f0ad4e
,
0%
,
#e
b9316
,
100%
);
background-image
:
-moz-linear-gradient
(
top
,
#f0ad4e
0%
,
#e
c971f
100%
);
background-image
:
-moz-linear-gradient
(
top
,
#f0ad4e
0%
,
#e
b9316
100%
);
background-image
:
linear-gradient
(
to
bottom
,
#f0ad4e
0%
,
#e
c971f
100%
);
background-image
:
linear-gradient
(
to
bottom
,
#f0ad4e
0%
,
#e
b9316
100%
);
background-repeat
:
repeat-x
;
background-repeat
:
repeat-x
;
border-color
:
#eb9316
;
border-color
:
#e38d13
;
filter
:
progid
:
DXImageTransform
.
Microsoft
.
gradient
(
startColorstr
=
'#fff0ad4e'
,
endColorstr
=
'#ffec971f'
,
GradientType
=
0
);
filter
:
progid
:
DXImageTransform
.
Microsoft
.
gradient
(
startColorstr
=
'#fff0ad4e'
,
endColorstr
=
'#ffeb9316'
,
GradientType
=
0
);
}
.btn-warning
:hover
,
.btn-warning
:focus
{
background-color
:
#eb9316
;
background-position
:
0
-15px
;
}
}
.btn-warning
:active
,
.btn-warning
:active
,
.btn-warning.active
{
.btn-warning.active
{
background-color
:
#e
c971f
;
background-color
:
#e
b9316
;
border-color
:
#e
b9316
;
border-color
:
#e
38d13
;
}
}
.btn-danger
{
.btn-danger
{
background-image
:
-webkit-gradient
(
linear
,
left
0%
,
left
100%
,
from
(
#d9534f
),
to
(
#c
9302c
));
background-image
:
-webkit-gradient
(
linear
,
left
0%
,
left
100%
,
from
(
#d9534f
),
to
(
#c
12e2a
));
background-image
:
-webkit-linear-gradient
(
top
,
#d9534f
,
0%
,
#c
9302c
,
100%
);
background-image
:
-webkit-linear-gradient
(
top
,
#d9534f
,
0%
,
#c
12e2a
,
100%
);
background-image
:
-moz-linear-gradient
(
top
,
#d9534f
0%
,
#c
9302c
100%
);
background-image
:
-moz-linear-gradient
(
top
,
#d9534f
0%
,
#c
12e2a
100%
);
background-image
:
linear-gradient
(
to
bottom
,
#d9534f
0%
,
#c
9302c
100%
);
background-image
:
linear-gradient
(
to
bottom
,
#d9534f
0%
,
#c
12e2a
100%
);
background-repeat
:
repeat-x
;
background-repeat
:
repeat-x
;
border-color
:
#c12e2a
;
border-color
:
#b92c28
;
filter
:
progid
:
DXImageTransform
.
Microsoft
.
gradient
(
startColorstr
=
'#ffd9534f'
,
endColorstr
=
'#ffc9302c'
,
GradientType
=
0
);
filter
:
progid
:
DXImageTransform
.
Microsoft
.
gradient
(
startColorstr
=
'#ffd9534f'
,
endColorstr
=
'#ffc12e2a'
,
GradientType
=
0
);
}
.btn-danger
:hover
,
.btn-danger
:focus
{
background-color
:
#c12e2a
;
background-position
:
0
-15px
;
}
}
.btn-danger
:active
,
.btn-danger
:active
,
.btn-danger.active
{
.btn-danger.active
{
background-color
:
#c
9302c
;
background-color
:
#c
12e2a
;
border-color
:
#
c12e2a
;
border-color
:
#
b92c28
;
}
}
.btn-info
{
.btn-info
{
background-image
:
-webkit-gradient
(
linear
,
left
0%
,
left
100%
,
from
(
#5bc0de
),
to
(
#
31b0d5
));
background-image
:
-webkit-gradient
(
linear
,
left
0%
,
left
100%
,
from
(
#5bc0de
),
to
(
#
2aabd2
));
background-image
:
-webkit-linear-gradient
(
top
,
#5bc0de
,
0%
,
#
31b0d5
,
100%
);
background-image
:
-webkit-linear-gradient
(
top
,
#5bc0de
,
0%
,
#
2aabd2
,
100%
);
background-image
:
-moz-linear-gradient
(
top
,
#5bc0de
0%
,
#
31b0d5
100%
);
background-image
:
-moz-linear-gradient
(
top
,
#5bc0de
0%
,
#
2aabd2
100%
);
background-image
:
linear-gradient
(
to
bottom
,
#5bc0de
0%
,
#
31b0d5
100%
);
background-image
:
linear-gradient
(
to
bottom
,
#5bc0de
0%
,
#
2aabd2
100%
);
background-repeat
:
repeat-x
;
background-repeat
:
repeat-x
;
border-color
:
#2aabd2
;
border-color
:
#28a4c9
;
filter
:
progid
:
DXImageTransform
.
Microsoft
.
gradient
(
startColorstr
=
'#ff5bc0de'
,
endColorstr
=
'#ff31b0d5'
,
GradientType
=
0
);
filter
:
progid
:
DXImageTransform
.
Microsoft
.
gradient
(
startColorstr
=
'#ff5bc0de'
,
endColorstr
=
'#ff2aabd2'
,
GradientType
=
0
);
}
.btn-info
:hover
,
.btn-info
:focus
{
background-color
:
#2aabd2
;
background-position
:
0
-15px
;
}
}
.btn-info
:active
,
.btn-info
:active
,
.btn-info.active
{
.btn-info.active
{
background-color
:
#
31b0d5
;
background-color
:
#
2aabd2
;
border-color
:
#2
aabd2
;
border-color
:
#2
8a4c9
;
}
}
.thumbnail
,
.thumbnail
,
...
...
This diff is collapsed.
Click to expand it.
dist/css/bootstrap-theme.min.css
+
1
-
1
View file @
5bbbdb39
This diff is collapsed.
Click to expand it.
less/theme.less
+
11
-
4
View file @
5bbbdb39
...
@@ -32,13 +32,20 @@
...
@@ -32,13 +32,20 @@
// Mixin for generating new styles
// Mixin for generating new styles
.btn-styles(@btn-color: #555;) {
.btn-styles(@btn-color: #555;) {
#gradient > .vertical(@start-color: @btn-color; @end-color: darken(@btn-color, 10%));
#gradient > .vertical(@start-color: @btn-color; @end-color: darken(@btn-color, 12%));
border-color: darken(@btn-color, 12%);
background-repeat: repeat-x;
border-color: darken(@btn-color, 14%);
&:hover,
&:focus {
background-color: darken(@btn-color, 12%);
background-position: 0 -15px;
}
&:active,
&:active,
&.active {
&.active {
background-color: darken(@btn-color, 1
0
%);
background-color: darken(@btn-color, 1
2
%);
border-color: darken(@btn-color, 1
2
%);
border-color: darken(@btn-color, 1
4
%);
}
}
}
}
...
...
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
Menu
Explore
Projects
Groups
Snippets