From 0fd3f3254ee1abae67af1875804de607dca90b3c Mon Sep 17 00:00:00 2001 From: Reinhard Gloggengiesser Date: Mon, 8 Aug 2011 23:09:08 +0200 Subject: [PATCH] Hover state for buttons in seven --- misc/configure-dark.png | Bin 0 -> 367 bytes modules/field_ui/field_ui.admin.inc | 2 +- themes/seven/images/buttons.png | Bin 786 -> 503 bytes themes/seven/jquery.ui.theme.css | 16 ++++++++++++++-- themes/seven/style.css | 31 ++++++++++++++++++------------- 5 files changed, 33 insertions(+), 16 deletions(-) create mode 100644 misc/configure-dark.png diff --git a/misc/configure-dark.png b/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/modules/field_ui/field_ui.admin.inc b/modules/field_ui/field_ui.admin.inc index b594fac..6c7a65f 100644 --- a/modules/field_ui/field_ui.admin.inc +++ b/modules/field_ui/field_ui.admin.inc @@ -1046,7 +1046,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' => 'misc/configure.png', + '#src' => '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/themes/seven/images/buttons.png b/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/themes/seven/jquery.ui.theme.css b/themes/seven/jquery.ui.theme.css index c26046a..51ddace 100644 --- a/themes/seven/jquery.ui.theme.css +++ b/themes/seven/jquery.ui.theme.css @@ -369,10 +369,22 @@ -webkit-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 { - 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/themes/seven/style.css b/themes/seven/style.css index 6ac7861..5a578ea 100644 --- a/themes/seven/style.css +++ b/themes/seven/style.css @@ -657,21 +657,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) 0px -40px repeat-x; - color: #133B54; } -input.form-submit:active { - background: #666; +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, +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 0px -1px 0px; } input.form-button-disabled, -- 1.7.3.2