fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2012-01-05 03:12 pm

[dw-free] Non-form elements show a box-shadow on hover

[commit: http://hg.dwscoalition.org/dw-free/rev/6dc3a51f1b6a]

http://bugs.dwscoalition.org/show_bug.cgi?id=4197

Make the CSS more specific: should only do the hover effect on textbox and
textareas.

Patch by [personal profile] fu.

Files modified:
  • htdocs/stc/base-colors-dark.css
  • htdocs/stc/base-colors-light.css
--------------------------------------------------------------------------------
diff -r 4456a4d7a3ae -r 6dc3a51f1b6a htdocs/stc/base-colors-dark.css
--- a/htdocs/stc/base-colors-dark.css	Wed Jan 04 19:13:55 2012 +0000
+++ b/htdocs/stc/base-colors-dark.css	Thu Jan 05 23:11:46 2012 +0800
@@ -113,7 +113,7 @@
   background-color: #4b4b4b;
 }
 
-.text:hover {
+input.text:hover, textarea.text:hover {
   -moz-box-shadow: inset 0 2px 4px #444;
   -webkit-box-shadow:inset 0 2px 4px #444;
   box-shadow: inset 0 2px 4px #444;
diff -r 4456a4d7a3ae -r 6dc3a51f1b6a htdocs/stc/base-colors-light.css
--- a/htdocs/stc/base-colors-light.css	Wed Jan 04 19:13:55 2012 +0000
+++ b/htdocs/stc/base-colors-light.css	Thu Jan 05 23:11:46 2012 +0800
@@ -114,7 +114,7 @@
   background-color: #f2f2f2;
 }
 
-.text:hover {
+input.text:hover, textarea.text:hover {
   -moz-box-shadow: inset 0 1px 2px #999;
   -webkit-box-shadow:inset 0 1px 2px #999;
   box-shadow: inset 0 1px 2px #999;
--------------------------------------------------------------------------------