mirror of
https://github.com/pure-css/pure.git
synced 2024-11-24 10:44:21 +00:00
Improve :focus
styles by making the same as :hover
styles
This commit is contained in:
parent
f19b4a8dc6
commit
83823f17f0
@ -1,4 +1,4 @@
|
||||
/*csslint unqualified-attributes:false*/
|
||||
/*csslint unqualified-attributes:false, outline-none:false*/
|
||||
|
||||
.pure-button {
|
||||
font-size: 100%;
|
||||
@ -23,16 +23,19 @@
|
||||
}
|
||||
|
||||
.pure-button-hover,
|
||||
.pure-button:hover {
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#00000000', GradientType=0);
|
||||
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(transparent), color-stop(40%, rgba(0,0,0, 0.05)), to(rgba(0,0,0, 0.05)));
|
||||
background-image: -webkit-linear-gradient(transparent, rgba(0,0,0, 0.05) 40%, rgba(0,0,0, 0.15));
|
||||
background-image: -moz-linear-gradient(top, rgba(0,0,0, 0.05) 0%, rgba(0,0,0, 0.05));
|
||||
background-image: -ms-linear-gradient(transparent, rgba(0,0,0, 0.05) 40%, rgba(0,0,0, 0.15));
|
||||
background-image: -o-linear-gradient(transparent, rgba(0,0,0, 0.05) 40%, rgba(0,0,0, 0.05));
|
||||
background-image: linear-gradient(transparent, rgba(0,0,0, 0.05) 40%, rgba(0,0,0, 0.05));
|
||||
.pure-button:hover,
|
||||
.pure-button:focus {
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#1a000000',GradientType=0);
|
||||
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(transparent), color-stop(40%, rgba(0,0,0, 0.05)), to(rgba(0,0,0, 0.10)));
|
||||
background-image: -webkit-linear-gradient(transparent, rgba(0,0,0, 0.05) 40%, rgba(0,0,0, 0.10));
|
||||
background-image: -moz-linear-gradient(top, rgba(0,0,0, 0.05) 0%, rgba(0,0,0, 0.10));
|
||||
background-image: -ms-linear-gradient(transparent, rgba(0,0,0, 0.05) 40%, rgba(0,0,0, 0.10));
|
||||
background-image: -o-linear-gradient(transparent, rgba(0,0,0, 0.05) 40%, rgba(0,0,0, 0.10));
|
||||
background-image: linear-gradient(transparent, rgba(0,0,0, 0.05) 40%, rgba(0,0,0, 0.10));
|
||||
}
|
||||
.pure-button:focus {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
.pure-button-active,
|
||||
.pure-button:active {
|
||||
box-shadow: 0 0 0 1px rgba(0,0,0, 0.15) inset, 0 0 6px rgba(0,0,0, 0.20) inset;
|
||||
@ -41,6 +44,7 @@
|
||||
.pure-button[disabled],
|
||||
.pure-button-disabled,
|
||||
.pure-button-disabled:hover,
|
||||
.pure-button-disabled:focus,
|
||||
.pure-button-disabled:active {
|
||||
border: none;
|
||||
background-image: none;
|
||||
@ -63,8 +67,6 @@
|
||||
border: 0;
|
||||
}
|
||||
|
||||
|
||||
/* Sam */
|
||||
.pure-button-primary,
|
||||
.pure-button-selected,
|
||||
a.pure-button-primary,
|
||||
@ -72,7 +74,3 @@ a.pure-button-selected {
|
||||
background-color: rgb(0, 120, 231);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.pure-button:-moz-focusring {
|
||||
outline-color: rgba(0, 0, 0, 0.85);
|
||||
}
|
||||
|
@ -40,8 +40,8 @@
|
||||
}
|
||||
|
||||
|
||||
/* HOVER STATES */
|
||||
.pure-menu li a:hover {
|
||||
.pure-menu li a:hover,
|
||||
.pure-menu li a:focus {
|
||||
background: #eee;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user