Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Griever/913528 to your computer and use it in GitHub Desktop.
Save Griever/913528 to your computer and use it in GitHub Desktop.
ページ内検索バーとアドオンバーを統合する.css
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
@-moz-document url(chrome://browser/content/browser.xul) {
/* ページ内検索バーとアドオンバーが横に並ぶように */
#browser-bottombox {
-moz-box-orient: horizontal !important;
}
#FindToolbar {
border: none !important;
padding: 0px !important;
}
#FindToolbar > [anonid="findbar-container"] > * {
margin-top: 0px !important;
margin-bottom: 0px !important;
padding-top: 0px !important;
padding-bottom: 0px !important;
}
#FindToolbar toolbarbutton {
-moz-appearance: none !important;
}
#addon-bar {
-moz-box-flex: 1 !important;
}
#addonbar-closebutton,
[anonid="find-closebutton"]
{ display: none !important; }
/* ページ内検索バーが表示されたらアドオンバーも強引に表示 */
#FindToolbar:not([hidden="true"]) ~ #addon-bar {
visibility: visible !important;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment