Bug #219591 --> Don't bring in button.css from classic\themes. This brings in a bunch of old style rules for toolbar buttons which don't apply anymore including a style that forces a 47 pixel width on toolbar buttons.

Add style rules to add 2pixels of padding to small toolbar icons.
This commit is contained in:
scott%scott-macgregor.org 2003-09-18 18:30:50 +00:00
Родитель 1e1be8415c
Коммит 474417aebf
2 изменённых файлов: 32 добавлений и 1 удалений

Просмотреть файл

@ -41,7 +41,6 @@
@import url("chrome://global/skin/");
@import url("chrome://communicator/content/communicator.css");
@import url("chrome://communicator/skin/button.css");
@import url("chrome://communicator/skin/formatting.css");
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

Просмотреть файл

@ -404,6 +404,38 @@ toolbar[iconsize="small"] #button-previous:hover {
toolbar[iconsize="small"] #button-previous[disabled] {
-moz-image-region: rect(40px 260px 60px 240px) !important;
}
/* Smaller padding on small toolbar buttons */
toolbar[iconsize="small"] .toolbarbutton-1 {
padding: 2px;
}
toolbar[iconsize="small"] .toolbarbutton-1:hover:active,
toolbar[iconsize="small"] .toolbarbutton-1[open="true"] {
padding: 3px 1px 1px 3px;
}
toolbar[iconsize="small"] .toolbarbutton-1[disabled="true"],
toolbar[iconsize="small"] .toolbarbutton-1[disabled="true"]:hover,
toolbar[iconsize="small"] .toolbarbutton-1[disabled="true"]:hover:active,
toolbar[iconsize="small"] .toolbarbutton-1[disabled="true"][open="true"] {
padding: 2px;
}
toolbar[iconsize="small"] .toolbarbutton-1[checked="true"] {
padding: 3px 1px 1px 3px !important;
}
toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"],
toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"]:hover,
toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"]:hover:active,
toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"][open="true"],
toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"][disabled="true"],
toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"][disabled="true"]:hover,
toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"][disabled="true"]:hover:active {
padding: 0;
}
/* ::::: end small primary toolbar buttons ::::: */