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