mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-22 06:46:05 -04:00
Add hover state for buttons.
This commit is contained in:
@@ -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){
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
);
|
||||
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user