fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-12-14 11:58 am

[dw-free] Revamp /update

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

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

Improve contrast in various form elements.

Patch by [personal profile] fu.

Files modified:
  • htdocs/stc/base-colors-light.css
  • htdocs/stc/jquery.postoptions.css
  • views/entry/form.tt
--------------------------------------------------------------------------------
diff -r 24d27f7ccdfa -r e797574c1b4d htdocs/stc/base-colors-light.css
--- a/htdocs/stc/base-colors-light.css	Wed Dec 14 19:58:52 2011 +0800
+++ b/htdocs/stc/base-colors-light.css	Wed Dec 14 19:59:28 2011 +0800
@@ -29,7 +29,7 @@
   border-color: #eee;
 }
 .component h3 {
-  color: #666;
+  color: #444;
   text-shadow: 1px 1px 0px #fff;
 }
 .component-header-hover {
@@ -71,7 +71,7 @@
   color: #ccc;
 }
 
-.toolbar input, .submit input {
+.toolbar input, .submit input, .component button {
   background-color: #e3e3e3;
   border-color: #ccc;
   box-shadow: inset 0 0 1px 1px #f6f6f6;
@@ -81,7 +81,7 @@
   text-shadow: 0 1px 0px #fff;
 }
 
-.toolbar input:hover, .submit input:hover {
+.toolbar input:hover, .submit input:hover, .component button:hover {
   background: #f6f6f6;
   box-shadow: inset 0 0 1px 1px #fff;
   -moz-box-shadow: inset 0 0 1px 1px #fff;
@@ -89,7 +89,7 @@
   color: #222;
 }
 
-.toolbar input:active, .submit input:active {
+.toolbar input:active, .submit input:active, .component button:active {
   background-color: #d9d9d9;
   box-shadow: inset 0 0 1px 1px #eaeaea;
   -moz-box-shadow: inset 0 0 1px 1px #eaeaea;
@@ -98,7 +98,7 @@
 }
 
 .destructive input {
-  color: #888;
+  color: #636363;
 }
 
 .destructive input:hover {
diff -r 24d27f7ccdfa -r e797574c1b4d htdocs/stc/jquery.postoptions.css
--- a/htdocs/stc/jquery.postoptions.css	Wed Dec 14 19:58:52 2011 +0800
+++ b/htdocs/stc/jquery.postoptions.css	Wed Dec 14 19:59:28 2011 +0800
@@ -58,7 +58,7 @@
 }
 .ui-sortable .inactive_component {
     display: block;
-    opacity: 0.4;
+    opacity: 0.65;
 }
 
 .ui-sortable .inactive_component .inner {
diff -r 24d27f7ccdfa -r e797574c1b4d views/entry/form.tt
--- a/views/entry/form.tt	Wed Dec 14 19:58:52 2011 +0800
+++ b/views/entry/form.tt	Wed Dec 14 19:59:28 2011 +0800
@@ -229,7 +229,7 @@
                     ) -%]
                 </div>
             </fieldset>
-            <fieldset class='submit toolbar'>
+            <fieldset class='submit'>
                 [%- preview_label = 'talk.btn.preview' | ml;
                     form.submit( value = preview_label
                                  name = "action:preview"
--------------------------------------------------------------------------------