Issue #846182 by reglogge, szantog, geerlingguy: Fixed Seven theme form buttons have no hover state.

8.0.x
webchick 2012-09-04 14:36:10 -07:00
parent f2e4ea1f57
commit b787545fb5
5 changed files with 32 additions and 15 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 367 B

View File

@ -1104,7 +1104,7 @@ function field_ui_display_overview_form($form, &$form_state, $entity_type, $bund
$table[$name]['settings_edit'] = $base_button + array( $table[$name]['settings_edit'] = $base_button + array(
'#type' => 'image_button', '#type' => 'image_button',
'#name' => $name . '_formatter_settings_edit', '#name' => $name . '_formatter_settings_edit',
'#src' => 'core/misc/configure.png', '#src' => 'core/misc/configure-dark.png',
'#attributes' => array('class' => array('field-formatter-settings-edit'), 'alt' => t('Edit')), '#attributes' => array('class' => array('field-formatter-settings-edit'), 'alt' => t('Edit')),
'#op' => 'edit', '#op' => 'edit',
// Do not check errors for the 'Edit' button, but make sure we get // Do not check errors for the 'Edit' button, but make sure we get

Binary file not shown.

Before

Width:  |  Height:  |  Size: 786 B

After

Width:  |  Height:  |  Size: 503 B

View File

@ -361,10 +361,22 @@
background: url(images/buttons.png) 0 0 repeat-x; background: url(images/buttons.png) 0 0 repeat-x;
border-radius: 20px; border-radius: 20px;
} }
.ui-dialog .ui-dialog-buttonpane button:hover,
.ui-dialog .ui-dialog-buttonpane button:focus {
background-position: 0 -40px;
border: 1px solid #bebebe;
border-left-color: #afafaf;
border-right-color: #afafaf;
border-bottom-color: #9b9b9b;
color: #2e2e2e;
}
.ui-dialog .ui-dialog-buttonpane button:active { .ui-dialog .ui-dialog-buttonpane button:active {
background: #666; background-position: 0 -80px;
border: 1px solid #333;
border-left-color: #222;
border-right-color: #222;
border-bottom-color: #111;
color: #fff; color: #fff;
border-color: #555;
text-shadow: #222 0px -1px 0px; text-shadow: #222 0px -1px 0px;
} }
.overlay { .overlay {

View File

@ -621,21 +621,26 @@ a.button:visited,
a.button:hover, a.button:hover,
a.button:active { a.button:active {
text-decoration: none; text-decoration: none;
color: #5a5a5a;
} }
.node-form input#edit-submit, input.form-submit:hover,
.node-form input#edit-submit-1 { input.form-submit:focus,
border: 1px solid #8eB7cd; a.button:hover,
border-left-color: #8eB7cd; a.button:focus {
border-right-color: #8eB7cd; background-position: 0 -40px;
border-bottom-color: #7691a2; border: 1px solid #bebebe;
background: url(images/buttons.png) 0 -40px repeat-x; border-left-color: #afafaf;
color: #133B54; border-right-color: #afafaf;
border-bottom-color: #9b9b9b;
color: #2e2e2e;
} }
input.form-submit:active { input.form-submit:active,
background: #666; a.button:active {
background-position: 0 -80px;
border: 1px solid #333;
border-left-color: #222;
border-right-color: #222;
border-bottom-color: #111;
color: #fff; color: #fff;
border-color: #555;
text-shadow: #222 0 -1px 0; text-shadow: #222 0 -1px 0;
} }
input.form-button-disabled, input.form-button-disabled,