Fixes Issue #1209.
Fixes an inconsistency in button rendering in KitchenSink. On OS X, the hosted
mode browser displays unstyled buttons using the aqua look, whereas
Safari2 always uses a non-aqua look for button elements. This change
adds styling to the buttons so that they all render similarly.
Review by: jgw
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@1245 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/public/KitchenSink.css b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/public/KitchenSink.css
index 7eb3742..79f8266 100644
--- a/samples/kitchensink/src/com/google/gwt/sample/kitchensink/public/KitchenSink.css
+++ b/samples/kitchensink/src/com/google/gwt/sample/kitchensink/public/KitchenSink.css
@@ -30,11 +30,26 @@
}
.gwt-Button {
+ background:#f5f5f5;
+ border:1px solid #aaa;
+ border-top:1px solid #ddd;
+ border-left:1px solid #ddd;
+ padding: 2px;
+ width: 12em;
+}
+
+.gwt-Button:active {
+ border:1px solid #aaa;
+ border-bottom:1px solid #ccc;
+ border-right:1px solid #ccc;
}
.gwt-Button[disabled] {
- background: lightGray;
- color: darkGray;
+ background: #ccc;
+ border:1px solid #999;
+ border-top:1px solid #ccc;
+ border-left:1px solid #ccc;
+ color: #888;
}
.gwt-Canvas {