From b787545fb5c53be0b83ecc7f11d283135451b09c Mon Sep 17 00:00:00 2001 From: webchick Date: Tue, 4 Sep 2012 14:36:10 -0700 Subject: [PATCH] Issue #846182 by reglogge, szantog, geerlingguy: Fixed Seven theme form buttons have no hover state. --- core/misc/configure-dark.png | Bin 0 -> 367 bytes core/modules/field_ui/field_ui.admin.inc | 2 +- core/themes/seven/images/buttons.png | Bin 786 -> 503 bytes core/themes/seven/jquery.ui.theme.css | 16 +++++++++++-- core/themes/seven/style.css | 29 +++++++++++++---------- 5 files changed, 32 insertions(+), 15 deletions(-) create mode 100644 core/misc/configure-dark.png diff --git a/core/misc/configure-dark.png b/core/misc/configure-dark.png new file mode 100644 index 0000000000000000000000000000000000000000..853ae5a1cec98a986136fbaf5483e4ed5d6b98d7 GIT binary patch literal 367 zcmV-#0g(QQP)-&V1WeUx zQ81JUIs+NoG(T@K=Mj(etO;NUj$a~wrg@YhjCQI{vJ=AZqn%Fy1_1K0W;=kIYcT)- N002ovPDHLkV1kiik;wo6 literal 0 HcmV?d00001 diff --git a/core/modules/field_ui/field_ui.admin.inc b/core/modules/field_ui/field_ui.admin.inc index 0be7ffe735dd..29d586e4fbe0 100644 --- a/core/modules/field_ui/field_ui.admin.inc +++ b/core/modules/field_ui/field_ui.admin.inc @@ -1104,7 +1104,7 @@ function field_ui_display_overview_form($form, &$form_state, $entity_type, $bund $table[$name]['settings_edit'] = $base_button + array( '#type' => 'image_button', '#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')), '#op' => 'edit', // Do not check errors for the 'Edit' button, but make sure we get diff --git a/core/themes/seven/images/buttons.png b/core/themes/seven/images/buttons.png index ae833d5f8f1750d4323f64aaa72e3e2e407c5b59..0a89f98ea1f3e680690912f099dcaa79c28e6d2d 100644 GIT binary patch literal 503 zcmeAS@N?(olHy`uVBq!ia0y~yV4MJCS8y-^$>6=l2Y>?mJY5_^D&pQ=xmn7~z~FlE zwo=m;sm&5j;)d*kF3kVpS>LbO`u(})gE#UHNBEczY`mrG(2~d~`I}oHF~Z^4KL(dK z1`IN*|FU%$=qMzcGYGb^ro0gcE7=VZvu9M|;XZMLzk%a0lhHR>g+m(}dSV$}B*Z3c z%!eq~hM33%Hqnk5EaeZ8Qiez|fTi>pmC7U-`mWxCC@BXk0h$AHh#mvjmS~7AY+zgV zLL9IjB4r6S3g|qL&C?;qvqJq;4AI5|)@I8J^2^~34Ll$Rvp~ckM)gCCk^~!NjjRsn zMI=oEAWb0cAfGdX4M$Oc!YPwSR?Ug*%xYvWzGDJ~4A8S}!0_MA3=WcdDRZ7#lV?ti Q0!AomdKI;Vst0B{VasQ>@~ literal 786 zcmb7?TTGGx6vscMwY<%WY1*ceZC&2V!BWy2R`!!W}9>yd@V(ZwdgQuCOqd1AR`{71{Ax@GbweOyDISf&d# zbm0nJxY|0YZvCch73tc9nl{mD8)C%zH{!K+iLMGXO%48sP4!Duv^OeVA0Y_V9@*Vi{THmp{w&1T!&+_c;64u@lFYs=|$ zx?Ha9?d@Mhsn3yX@NjW4DMji{MtB`M<}}dTqp}FmvFFM`37yPLR0nzs7PnvcMW9$Lf3kMN>4Vv=YAncJX9qvH zusip#(GOw`;jjTu!6FPl)@PQGwbl^8C70r6uBntnY_Noo)AtNm7-o`sAym#$?IX8h zHVs+-L|bS7vv*j^=I=QpWuvA{ZUzU*+Y8(qnl!3ZQV$el&M&TnE1Td^3;X4X@Qd#} jT~o@E4lvSQbjz``>L(zdEX%5cj(;5&pB%@D&3N?}%n-ue diff --git a/core/themes/seven/jquery.ui.theme.css b/core/themes/seven/jquery.ui.theme.css index 9245d947a652..ee7249783bff 100644 --- a/core/themes/seven/jquery.ui.theme.css +++ b/core/themes/seven/jquery.ui.theme.css @@ -361,10 +361,22 @@ background: url(images/buttons.png) 0 0 repeat-x; 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 { - background: #666; + background-position: 0 -80px; + border: 1px solid #333; + border-left-color: #222; + border-right-color: #222; + border-bottom-color: #111; color: #fff; - border-color: #555; text-shadow: #222 0px -1px 0px; } .overlay { diff --git a/core/themes/seven/style.css b/core/themes/seven/style.css index 80a5874ae274..86f3fc52f381 100644 --- a/core/themes/seven/style.css +++ b/core/themes/seven/style.css @@ -621,21 +621,26 @@ a.button:visited, a.button:hover, a.button:active { text-decoration: none; - color: #5a5a5a; } -.node-form input#edit-submit, -.node-form input#edit-submit-1 { - border: 1px solid #8eB7cd; - border-left-color: #8eB7cd; - border-right-color: #8eB7cd; - border-bottom-color: #7691a2; - background: url(images/buttons.png) 0 -40px repeat-x; - color: #133B54; +input.form-submit:hover, +input.form-submit:focus, +a.button:hover, +a.button:focus { + background-position: 0 -40px; + border: 1px solid #bebebe; + border-left-color: #afafaf; + border-right-color: #afafaf; + border-bottom-color: #9b9b9b; + color: #2e2e2e; } -input.form-submit:active { - background: #666; +input.form-submit:active, +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; - border-color: #555; text-shadow: #222 0 -1px 0; } input.form-button-disabled,