summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/resources/shared/css/button.css44
-rw-r--r--chrome/chrome_browser.gypi1
2 files changed, 45 insertions, 0 deletions
diff --git a/chrome/browser/resources/shared/css/button.css b/chrome/browser/resources/shared/css/button.css
new file mode 100644
index 0000000..e04130a
--- /dev/null
+++ b/chrome/browser/resources/shared/css/button.css
@@ -0,0 +1,44 @@
+button {
+ padding: 5px 8px;
+ border: 1px solid rgba(0, 0, 0, .50);
+ -webkit-border-radius: 3px;
+ -webkit-box-shadow: 1px 1px 0px rgba(0, 0, 0, .10);
+ background: -webkit-gradient(linear, 0 50%, 0 100%,
+ from(#ffffff), to(#e3e3e3));
+}
+
+button:active {
+ background: -webkit-gradient(linear, 0 4%, 0 100%,
+ from(#c3c3c3), to(#f5f5f5));
+}
+
+button:focus {
+ /* TODO(feldstein): find a better way to keep buttons same size. */
+ padding: 4px 7px;
+ outline: none;
+ border: 2px solid #426dc9;
+}
+
+button:disabled {
+ border: 1px solid rgba(0, 0, 0, .35);
+ color: rgba(0, 0, 0, .30);
+ background: -webkit-gradient(linear, 0 0, 0 100%,
+ from(#ffffff), to(#e3e3e3));
+}
+
+button.action {
+ border: 1px solid #2e4987;
+ font-weight: bold;
+ color: #ffffff;
+ background: -webkit-gradient(linear, 0 0, 0 100%,
+ from(#6391de), to(#426dc9));
+}
+
+button.action:focus {
+ border: 2px solid #426dc9;
+}
+
+button.action:active {
+ background: -webkit-gradient(linear, 0 0, 0 100%,
+ from(#426dc9), to(#6391de));
+} \ No newline at end of file
diff --git a/chrome/chrome_browser.gypi b/chrome/chrome_browser.gypi
index 7b1eda9..6fa2012 100644
--- a/chrome/chrome_browser.gypi
+++ b/chrome/chrome_browser.gypi
@@ -3284,6 +3284,7 @@
{
'destination': '<(PRODUCT_DIR)/resources/shared/css',
'files': [
+ 'browser/resources/shared/css/button.css',
'browser/resources/shared/css/list.css',
'browser/resources/shared/css/menu.css',
'browser/resources/shared/css/tree.css',