diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-26 21:45:10 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-26 21:45:10 +0000 |
commit | 135056c252315c096ff0c3c21931db17e1587652 (patch) | |
tree | c3c1380ff8c19c242d20636908676cb71cd00af6 /chrome/browser | |
parent | 7bf5fa671779c6dbc3645e1a03ab013b99b37c2b (diff) | |
download | chromium_src-135056c252315c096ff0c3c21931db17e1587652.zip chromium_src-135056c252315c096ff0c3c21931db17e1587652.tar.gz chromium_src-135056c252315c096ff0c3c21931db17e1587652.tar.bz2 |
Make the contents of toolstrips center vertically by default.
Review URL: http://codereview.chromium.org/115790
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16924 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/browser_resources.grd | 2 | ||||
-rw-r--r-- | chrome/browser/resources/extensions_toolstrip.css | 11 |
2 files changed, 10 insertions, 3 deletions
diff --git a/chrome/browser/browser_resources.grd b/chrome/browser/browser_resources.grd index 97dc62f..69733b7 100644 --- a/chrome/browser/browser_resources.grd +++ b/chrome/browser/browser_resources.grd @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- This comment is only here because changes to resources are not picked up -without changes to the corresponding grd file. --> +without changes to the corresponding grd file. --> <grit latest_public_release="0" current_release="1"> <outputs> <output filename="grit/browser_resources.h" type="rc_header"> diff --git a/chrome/browser/resources/extensions_toolstrip.css b/chrome/browser/resources/extensions_toolstrip.css index c7778ff..7d5bbbe 100644 --- a/chrome/browser/resources/extensions_toolstrip.css +++ b/chrome/browser/resources/extensions_toolstrip.css @@ -6,7 +6,7 @@ body { display:-webkit-box; -webkit-box-orient:horizontal; - -webkit-box-align:stretch; + -webkit-box-align:center; white-space:nowrap; overflow: hidden; margin: 0; @@ -19,6 +19,14 @@ body { } /** + * This, combined with -webkit-box-align:center on body, makes content inside + * the body tag center itself vertically by default. + */ +body>* { + display:-webkit-box; +} + +/** * Toolstrip Buttons. The following styles make * <div class="toolstrip-button"><img><span>Woot</span></div> look like the * bookmarkbar buttons on Windows. @@ -31,7 +39,6 @@ body { * fixed. */ div.toolstrip-button { - display:-webkit-box; -webkit-box-orient:horizontal; -webkit-box-align:center; border:6px solid transparent; |