diff options
author | teramako | 2011-03-26 09:31:27 +0900 |
---|---|---|
committer | teramako | 2011-03-26 09:31:27 +0900 |
commit | 28af28618d4dc7725d87acb07d51d7d6fd7097ab (patch) | |
tree | 19b97a0c9813973ac25782aae8a86eeff5d63e52 /statusline-toolbar.js | |
parent | cde953e7856bafb07ec34ca9406245d42e2e2339 (diff) | |
download | vimperator-plugins-28af28618d4dc7725d87acb07d51d7d6fd7097ab.tar.bz2 |
css 文字列の外出し
Diffstat (limited to 'statusline-toolbar.js')
-rw-r--r-- | statusline-toolbar.js | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/statusline-toolbar.js b/statusline-toolbar.js index 3b53346..b4d2e53 100644 --- a/statusline-toolbar.js +++ b/statusline-toolbar.js @@ -39,6 +39,17 @@ var updater = { } ], }; +var css = <css><![CDATA[ + #liberator-customize-toolbar { + border: none !important; + min-width: 5px !important; + max-height: 17px; + } + #liberator-customize-toolbar > :-moz-any(image, toolbarbutton) { max-height: 16px; } + #liberator-customize-toolbar .statusbar-resizerpanel { display: none; } + #liberator-customize-toolbar toolbarbutton { padding: 0 !important; } +]]></css>.trim(); + function $(id) document.getElementById(id); function createElement (name, attrs) { var elm = document.createElement("toolbar"); @@ -58,17 +69,7 @@ if (!$(id)) { } function init () { - styles.addSheet(true, "customize-toolbar", "chrome://*", <css><![CDATA[ - #liberator-customize-toolbar { - border: none !important; - min-width: 5px !important; - max-height: 17px; - } - #liberator-customize-toolbar > :-moz-any(image, toolbarbutton) { - max-height: 16px; - } - #liberator-customize-toolbar .statusbar-resizerpanel { display: none; } - ]]></css>.toString(), false); + styles.addSheet(true, "customize-toolbar", "chrome://*", css, false); var t = createToolbar(); t.appendChild($("status-bar")); |