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
d12560c0
Commit
d12560c0
authored
Jan 18, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make button active state clearer by lightening the inner shadow and removing the background image
parent
f2fadf1f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
bootstrap.css
bootstrap.css
+5
-4
bootstrap.min.css
bootstrap.min.css
+1
-1
lib/buttons.less
lib/buttons.less
+2
-1
No files found.
bootstrap.css
View file @
d12560c0
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
* Designed and built with all the love in the world @twitter by @mdo and @fat.
* Date: Wed Jan 18 00:
23:51
PST 2012
* Date: Wed Jan 18 00:
30:09
PST 2012
*/
*/
html
,
body
{
html
,
body
{
margin
:
0
;
margin
:
0
;
...
@@ -2527,9 +2527,10 @@ i {
...
@@ -2527,9 +2527,10 @@ i {
border-color
:
rgba
(
0
,
0
,
0
,
0.1
)
rgba
(
0
,
0
,
0
,
0.1
)
rgba
(
0
,
0
,
0
,
0.25
);
border-color
:
rgba
(
0
,
0
,
0
,
0.1
)
rgba
(
0
,
0
,
0
,
0.1
)
rgba
(
0
,
0
,
0
,
0.25
);
}
}
.btn.active
,
.btn
:active
{
.btn.active
,
.btn
:active
{
-webkit-box-shadow
:
inset
0
2px
4px
rgba
(
0
,
0
,
0
,
0.25
),
0
1px
2px
rgba
(
0
,
0
,
0
,
0.05
);
background-image
:
none
;
-moz-box-shadow
:
inset
0
2px
4px
rgba
(
0
,
0
,
0
,
0.25
),
0
1px
2px
rgba
(
0
,
0
,
0
,
0.05
);
-webkit-box-shadow
:
inset
0
2px
4px
rgba
(
0
,
0
,
0
,
0.15
),
0
1px
2px
rgba
(
0
,
0
,
0
,
0.05
);
box-shadow
:
inset
0
2px
4px
rgba
(
0
,
0
,
0
,
0.25
),
0
1px
2px
rgba
(
0
,
0
,
0
,
0.05
);
-moz-box-shadow
:
inset
0
2px
4px
rgba
(
0
,
0
,
0
,
0.15
),
0
1px
2px
rgba
(
0
,
0
,
0
,
0.05
);
box-shadow
:
inset
0
2px
4px
rgba
(
0
,
0
,
0
,
0.15
),
0
1px
2px
rgba
(
0
,
0
,
0
,
0.05
);
}
}
.btn.disabled
{
.btn.disabled
{
cursor
:
default
;
cursor
:
default
;
...
...
bootstrap.min.css
View file @
d12560c0
...
@@ -456,7 +456,7 @@ i{background-image:url(docs/assets/img/glyphicons-halflings-sprite.png);backgrou
...
@@ -456,7 +456,7 @@ i{background-image:url(docs/assets/img/glyphicons-halflings-sprite.png);backgrou
.btn
{
display
:
inline-block
;
padding
:
5px
10px
6px
;
font-size
:
13px
;
line-height
:
normal
;
color
:
#333
;
text-shadow
:
0
1px
1px
rgba
(
255
,
255
,
255
,
0.75
);
background-color
:
#e6e6e6
;
background-image
:
-webkit-gradient
(
linear
,
0
0
,
0
100%
,
from
(
#ffffff
),
color-stop
(
25%
,
#ffffff
),
to
(
#e6e6e6
));
background-image
:
-webkit-linear-gradient
(
#ffffff
,
#ffffff
25%
,
#e6e6e6
);
background-image
:
-moz-linear-gradient
(
top
,
#ffffff
,
#ffffff
25%
,
#e6e6e6
);
background-image
:
-ms-linear-gradient
(
#ffffff
,
#ffffff
25%
,
#e6e6e6
);
background-image
:
-o-linear-gradient
(
#ffffff
,
#ffffff
25%
,
#e6e6e6
);
background-image
:
linear-gradient
(
#ffffff
,
#ffffff
25%
,
#e6e6e6
);
background-repeat
:
no-repeat
;
filter
:
progid
:
DXImageTransform
.
Microsoft
.
gradient
(
startColorstr
=
'#ffffff'
,
endColorstr
=
'#e6e6e6'
,
GradientType
=
0
);
border
:
1px
solid
#ccc
;
border-bottom-color
:
#bbb
;
-webkit-border-radius
:
4px
;
-moz-border-radius
:
4px
;
border-radius
:
4px
;
-webkit-box-shadow
:
inset
0
1px
0
rgba
(
255
,
255
,
255
,
0.2
),
0
1px
2px
rgba
(
0
,
0
,
0
,
0.05
);
-moz-box-shadow
:
inset
0
1px
0
rgba
(
255
,
255
,
255
,
0.2
),
0
1px
2px
rgba
(
0
,
0
,
0
,
0.05
);
box-shadow
:
inset
0
1px
0
rgba
(
255
,
255
,
255
,
0.2
),
0
1px
2px
rgba
(
0
,
0
,
0
,
0.05
);
cursor
:
pointer
;
-webkit-transition
:
0.1s
linear
all
;
-moz-transition
:
0.1s
linear
all
;
-ms-transition
:
0.1s
linear
all
;
-o-transition
:
0.1s
linear
all
;
transition
:
0.1s
linear
all
;}
.btn
:hover
{
color
:
#333333
;
text-decoration
:
none
;
background-position
:
0
-15px
;}
.btn
{
display
:
inline-block
;
padding
:
5px
10px
6px
;
font-size
:
13px
;
line-height
:
normal
;
color
:
#333
;
text-shadow
:
0
1px
1px
rgba
(
255
,
255
,
255
,
0.75
);
background-color
:
#e6e6e6
;
background-image
:
-webkit-gradient
(
linear
,
0
0
,
0
100%
,
from
(
#ffffff
),
color-stop
(
25%
,
#ffffff
),
to
(
#e6e6e6
));
background-image
:
-webkit-linear-gradient
(
#ffffff
,
#ffffff
25%
,
#e6e6e6
);
background-image
:
-moz-linear-gradient
(
top
,
#ffffff
,
#ffffff
25%
,
#e6e6e6
);
background-image
:
-ms-linear-gradient
(
#ffffff
,
#ffffff
25%
,
#e6e6e6
);
background-image
:
-o-linear-gradient
(
#ffffff
,
#ffffff
25%
,
#e6e6e6
);
background-image
:
linear-gradient
(
#ffffff
,
#ffffff
25%
,
#e6e6e6
);
background-repeat
:
no-repeat
;
filter
:
progid
:
DXImageTransform
.
Microsoft
.
gradient
(
startColorstr
=
'#ffffff'
,
endColorstr
=
'#e6e6e6'
,
GradientType
=
0
);
border
:
1px
solid
#ccc
;
border-bottom-color
:
#bbb
;
-webkit-border-radius
:
4px
;
-moz-border-radius
:
4px
;
border-radius
:
4px
;
-webkit-box-shadow
:
inset
0
1px
0
rgba
(
255
,
255
,
255
,
0.2
),
0
1px
2px
rgba
(
0
,
0
,
0
,
0.05
);
-moz-box-shadow
:
inset
0
1px
0
rgba
(
255
,
255
,
255
,
0.2
),
0
1px
2px
rgba
(
0
,
0
,
0
,
0.05
);
box-shadow
:
inset
0
1px
0
rgba
(
255
,
255
,
255
,
0.2
),
0
1px
2px
rgba
(
0
,
0
,
0
,
0.05
);
cursor
:
pointer
;
-webkit-transition
:
0.1s
linear
all
;
-moz-transition
:
0.1s
linear
all
;
-ms-transition
:
0.1s
linear
all
;
-o-transition
:
0.1s
linear
all
;
transition
:
0.1s
linear
all
;}
.btn
:hover
{
color
:
#333333
;
text-decoration
:
none
;
background-position
:
0
-15px
;}
.btn
:focus
{
outline
:
1px
dotted
#666
;}
.btn
:focus
{
outline
:
1px
dotted
#666
;}
.btn.primary
{
color
:
#ffffff
;
text-shadow
:
0
-1px
0
rgba
(
0
,
0
,
0
,
0.25
);
background-color
:
#0064cd
;
background-image
:
-khtml-gradient
(
linear
,
left
top
,
left
bottom
,
from
(
#049cdb
),
to
(
#0064cd
));
background-image
:
-moz-linear-gradient
(
top
,
#049cdb
,
#0064cd
);
background-image
:
-ms-linear-gradient
(
top
,
#049cdb
,
#0064cd
);
background-image
:
-webkit-gradient
(
linear
,
left
top
,
left
bottom
,
color-stop
(
0%
,
#049cdb
),
color-stop
(
100%
,
#0064cd
));
background-image
:
-webkit-linear-gradient
(
top
,
#049cdb
,
#0064cd
);
background-image
:
-o-linear-gradient
(
top
,
#049cdb
,
#0064cd
);
background-image
:
linear-gradient
(
top
,
#049cdb
,
#0064cd
);
background-repeat
:
repeat-x
;
filter
:
progid
:
DXImageTransform
.
Microsoft
.
gradient
(
startColorstr
=
'#049cdb'
,
endColorstr
=
'#0064cd'
,
GradientType
=
0
);
border-color
:
#0064cd
#0064cd
#003f81
;
border-color
:
rgba
(
0
,
0
,
0
,
0.1
)
rgba
(
0
,
0
,
0
,
0.1
)
rgba
(
0
,
0
,
0
,
0.25
);}
.btn.primary
{
color
:
#ffffff
;
text-shadow
:
0
-1px
0
rgba
(
0
,
0
,
0
,
0.25
);
background-color
:
#0064cd
;
background-image
:
-khtml-gradient
(
linear
,
left
top
,
left
bottom
,
from
(
#049cdb
),
to
(
#0064cd
));
background-image
:
-moz-linear-gradient
(
top
,
#049cdb
,
#0064cd
);
background-image
:
-ms-linear-gradient
(
top
,
#049cdb
,
#0064cd
);
background-image
:
-webkit-gradient
(
linear
,
left
top
,
left
bottom
,
color-stop
(
0%
,
#049cdb
),
color-stop
(
100%
,
#0064cd
));
background-image
:
-webkit-linear-gradient
(
top
,
#049cdb
,
#0064cd
);
background-image
:
-o-linear-gradient
(
top
,
#049cdb
,
#0064cd
);
background-image
:
linear-gradient
(
top
,
#049cdb
,
#0064cd
);
background-repeat
:
repeat-x
;
filter
:
progid
:
DXImageTransform
.
Microsoft
.
gradient
(
startColorstr
=
'#049cdb'
,
endColorstr
=
'#0064cd'
,
GradientType
=
0
);
border-color
:
#0064cd
#0064cd
#003f81
;
border-color
:
rgba
(
0
,
0
,
0
,
0.1
)
rgba
(
0
,
0
,
0
,
0.1
)
rgba
(
0
,
0
,
0
,
0.25
);}
.btn.active
,
.btn
:active
{
-webkit-box-shadow
:
inset
0
2px
4px
rgba
(
0
,
0
,
0
,
0.25
),
0
1px
2px
rgba
(
0
,
0
,
0
,
0.05
);
-moz-box-shadow
:
inset
0
2px
4px
rgba
(
0
,
0
,
0
,
0.25
),
0
1px
2px
rgba
(
0
,
0
,
0
,
0.05
);
box-shadow
:
inset
0
2px
4px
rgba
(
0
,
0
,
0
,
0.2
5
),
0
1px
2px
rgba
(
0
,
0
,
0
,
0.05
);}
.btn.active
,
.btn
:active
{
background-image
:
none
;
-webkit-box-shadow
:
inset
0
2px
4px
rgba
(
0
,
0
,
0
,
0.15
),
0
1px
2px
rgba
(
0
,
0
,
0
,
0.05
);
-moz-box-shadow
:
inset
0
2px
4px
rgba
(
0
,
0
,
0
,
0.15
),
0
1px
2px
rgba
(
0
,
0
,
0
,
0.05
);
box-shadow
:
inset
0
2px
4px
rgba
(
0
,
0
,
0
,
0.1
5
),
0
1px
2px
rgba
(
0
,
0
,
0
,
0.05
);}
.btn.disabled
{
cursor
:
default
;
background-image
:
none
;
filter
:
progid
:
DXImageTransform
.
Microsoft
.
gradient
(
enabled
=
false
);
filter
:
alpha
(
opacity
=
65
);
-moz-opacity
:
0.65
;
opacity
:
0.65
;
-webkit-box-shadow
:
none
;
-moz-box-shadow
:
none
;
box-shadow
:
none
;}
.btn.disabled
{
cursor
:
default
;
background-image
:
none
;
filter
:
progid
:
DXImageTransform
.
Microsoft
.
gradient
(
enabled
=
false
);
filter
:
alpha
(
opacity
=
65
);
-moz-opacity
:
0.65
;
opacity
:
0.65
;
-webkit-box-shadow
:
none
;
-moz-box-shadow
:
none
;
box-shadow
:
none
;}
.btn
[
disabled
]
{
cursor
:
default
;
background-image
:
none
;
filter
:
progid
:
DXImageTransform
.
Microsoft
.
gradient
(
enabled
=
false
);
filter
:
alpha
(
opacity
=
65
);
-moz-opacity
:
0.65
;
opacity
:
0.65
;
-webkit-box-shadow
:
none
;
-moz-box-shadow
:
none
;
box-shadow
:
none
;}
.btn
[
disabled
]
{
cursor
:
default
;
background-image
:
none
;
filter
:
progid
:
DXImageTransform
.
Microsoft
.
gradient
(
enabled
=
false
);
filter
:
alpha
(
opacity
=
65
);
-moz-opacity
:
0.65
;
opacity
:
0.65
;
-webkit-box-shadow
:
none
;
-moz-box-shadow
:
none
;
box-shadow
:
none
;}
.btn.large
{
padding
:
9px
14px
9px
;
font-size
:
15px
;
line-height
:
normal
;
-webkit-border-radius
:
5px
;
-moz-border-radius
:
5px
;
border-radius
:
5px
;}
.btn.large
{
padding
:
9px
14px
9px
;
font-size
:
15px
;
line-height
:
normal
;
-webkit-border-radius
:
5px
;
-moz-border-radius
:
5px
;
border-radius
:
5px
;}
...
...
lib/buttons.less
View file @
d12560c0
...
@@ -68,7 +68,8 @@
...
@@ -68,7 +68,8 @@
// Active and Disabled states
// Active and Disabled states
&.active,
&.active,
&:active {
&:active {
@shadow: inset 0 2px 4px rgba(0,0,0,.25), 0 1px 2px rgba(0,0,0,.05);
background-image: none;
@shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05);
.box-shadow(@shadow);
.box-shadow(@shadow);
}
}
&.disabled {
&.disabled {
...
...
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