Add hover state for buttons.

This commit is contained in:
Chad Kieffer
2009-02-09 02:10:19 +00:00
parent 622bada112
commit 08ae48aeaa
3 changed files with 28 additions and 2 deletions
+11
View File
@@ -36,6 +36,17 @@ $(document).ready(function(){
// In-place editing for tag admin
$(".gEditable").bind("click", editInplace);
// Add hover state for buttons
$(".ui-state-default").hover(
function(){
$(this).addClass("ui-state-hover");
},
function(){
$(this).removeClass("ui-state-hover");
}
);
});
function editInplace(element){
+7 -2
View File
@@ -60,7 +60,9 @@ h3 {
/* Links ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
a,
#gDialog a {
#gDialog a,
.gButtonLink,
.gButtonLink:hover {
color: #6b8cb7;
text-decoration: none;
-moz-outline-style: none;
@@ -77,7 +79,6 @@ a:hover,
font-size: .9em;
}
/* Tables ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
table {
@@ -761,6 +762,10 @@ form p.gError {
padding: .1em .3em;
}
.gButtonLink:hover {
}
.ui-icon-left .ui-icon {
float: left;
margin-right: .3em;
+10
View File
@@ -68,6 +68,16 @@ $(document).ready(function() {
for (var i=0; i < dialogLinks.length; i++) {
$(dialogLinks[i]).bind("click", handleDialogEvent);
}
// Add hover state for buttons
$(".ui-state-default").hover(
function(){
$(this).addClass("ui-state-hover");
},
function(){
$(this).removeClass("ui-state-hover");
}
);
});