michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: @import url("chrome://global/skin/"); michael@0: @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); michael@0: michael@0: #HelpToolbar { michael@0: -moz-padding-start: 5px; michael@0: } michael@0: michael@0: #HelpToolbar toolbarbutton { michael@0: min-width: 0px; michael@0: list-style-image: url("chrome://help/skin/Toolbar.png"); michael@0: -moz-box-orient: horizontal !important; michael@0: } michael@0: michael@0: #HelpToolbar toolbarbutton[type="menu-button"] { michael@0: margin: 0px; michael@0: padding: 0px; michael@0: } michael@0: michael@0: /* this element contains the icon and the label */ michael@0: #HelpToolbar .toolbarbutton-menubutton-button { michael@0: margin: 0px !important; michael@0: padding: 0px !important; michael@0: border: 0px !important; michael@0: } michael@0: michael@0: /* Hide labels for the toolbar because we really don't need them what with the michael@0: tooltips */ michael@0: #HelpToolbar .toolbarbutton-text { michael@0: display: none; michael@0: } michael@0: michael@0: /* Set the minimum sidebar width so the help contents aren't squeezed together.*/ michael@0: #help-sidebar { min-width: 15em; width: 20em; max-width: 25em; } michael@0: michael@0: #help-back-button { -moz-image-region: rect(0px 24px 24px 0px); } michael@0: #help-back-button:not([disabled="true"]):hover { -moz-image-region: rect(24px 24px 48px 0px); } michael@0: #help-back-button[disabled="true"] { -moz-image-region: rect(48px 24px 72px 0px); } michael@0: #help-back-button:not([disabled="true"]):hover:active { -moz-image-region: rect(72px 24px 96px 0px); } michael@0: michael@0: #help-forward-button { -moz-image-region: rect(0px 48px 24px 24px); } michael@0: #help-forward-button:not([disabled="true"]):hover { -moz-image-region: rect(24px 48px 48px 24px); } michael@0: #help-forward-button[disabled="true"] { -moz-image-region: rect(48px 48px 72px 24px); } michael@0: #help-forward-button:not([disabled="true"]):hover:active { -moz-image-region: rect(72px 48px 96px 24px); } michael@0: michael@0: #help-home-button { -moz-image-region: rect(0px 72px 24px 48px); } michael@0: #help-home-button:not([disabled="true"]):hover { -moz-image-region: rect(24px 72px 48px 48px); } michael@0: #help-home-button[disabled="true"] { -moz-image-region: rect(48px 72px 72px 48px); } michael@0: #help-home-button:not([disabled="true"]):hover:active { -moz-image-region: rect(72px 72px 96px 48px); } michael@0: michael@0: #help-print-button { -moz-image-region: rect(0px 96px 24px 72px); } michael@0: #help-print-button:not([disabled="true"]):hover { -moz-image-region: rect(24px 96px 48px 72px); } michael@0: #help-print-button[disabled="true"] { -moz-image-region: rect(48px 96px 72px 72px); } michael@0: #help-print-button:not([disabled="true"]):hover:active { -moz-image-region: rect(72px 96px 96px 72px); } michael@0: michael@0: /* Style the back/forward dropmarks to connect them to the buttons */ michael@0: michael@0: /* Style the back dropmark */ michael@0: michael@0: #help-back-button > .toolbarbutton-menubutton-dropmarker { michael@0: margin-top: 3px; michael@0: list-style-image: url("chrome://help/skin/dropmark-nav.png"); michael@0: -moz-image-region: rect(0px, 14px, 24px, 0px); michael@0: } michael@0: michael@0: #help-back-button:hover > .toolbarbutton-menubutton-dropmarker { michael@0: -moz-image-region: rect(24px, 14px, 48px, 0px); michael@0: } michael@0: michael@0: #help-back-button[disabled="true"] > .toolbarbutton-menubutton-dropmarker { michael@0: list-style-image: url("chrome://help/skin/dropmark-nav.png") !important; michael@0: -moz-image-region: rect(48px, 14px, 72px, 0px) !important; michael@0: } michael@0: michael@0: #help-back-button:hover:active > .toolbarbutton-menubutton-dropmarker { michael@0: -moz-image-region: rect(72px, 14px, 96px, 0px); michael@0: } michael@0: michael@0: /* Style the forward dropmark */ michael@0: michael@0: #help-forward-button > .toolbarbutton-menubutton-dropmarker { michael@0: margin-top: 3px; michael@0: list-style-image: url("chrome://help/skin/dropmark-nav.png"); michael@0: -moz-image-region: rect(0px, 14px, 24px, 0px); michael@0: } michael@0: #help-forward-button:hover > .toolbarbutton-menubutton-dropmarker { michael@0: -moz-image-region: rect(24px, 14px, 48px, 0px); michael@0: } michael@0: #help-forward-button[disabled="true"] > .toolbarbutton-menubutton-dropmarker { michael@0: list-style-image: url("chrome://help/skin/dropmark-nav.png") !important; michael@0: -moz-image-region: rect(48px, 14px, 72px, 0px) !important; michael@0: } michael@0: #help-forward-button:hover:active > .toolbarbutton-menubutton-dropmarker { michael@0: -moz-image-region: rect(72px, 14px, 96px, 0px); michael@0: } michael@0: michael@0: #helpsidebar-splitter { michael@0: border-right: 1px solid #bebebe; michael@0: }