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/resources/extensions_toolstrip.css | |
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/resources/extensions_toolstrip.css')
-rw-r--r-- | chrome/browser/resources/extensions_toolstrip.css | 11 |
1 files changed, 9 insertions, 2 deletions
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; |