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: @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); michael@0: michael@0: /* ::::: menupopup ::::: */ michael@0: michael@0: menupopup, michael@0: panel { michael@0: -moz-appearance: menupopup; michael@0: min-width: 1px; michael@0: color: MenuText; michael@0: } michael@0: michael@0: /* ::::: arrow panel ::::: */ michael@0: michael@0: panel[type="arrow"] { michael@0: transition: opacity 300ms; michael@0: -moz-appearance: none; michael@0: } michael@0: michael@0: panel[type="arrow"][side="top"], michael@0: panel[type="arrow"][side="bottom"] { michael@0: margin-left: -16px; michael@0: margin-right: -16px; michael@0: } michael@0: michael@0: panel[type="arrow"][side="left"], michael@0: panel[type="arrow"][side="right"] { michael@0: margin-top: -16px; michael@0: margin-bottom: -16px; michael@0: } michael@0: michael@0: .panel-arrowcontent { michael@0: padding: 10px; michael@0: color: -moz-DialogText; michael@0: background: -moz-Dialog; michael@0: border: 1px solid ThreeDShadow; michael@0: } michael@0: michael@0: .panel-arrow[side="top"], michael@0: .panel-arrow[side="bottom"] { michael@0: list-style-image: url("chrome://global/skin/icons/panelarrow-vertical.svg"); michael@0: position: relative; michael@0: margin-left: 6px; michael@0: margin-right: 6px; michael@0: } michael@0: michael@0: .panel-arrow[side="top"] { michael@0: margin-bottom: -1px; michael@0: } michael@0: michael@0: .panel-arrow[side="bottom"] { michael@0: transform: scaleY(-1); michael@0: margin-top: -1px; michael@0: } michael@0: michael@0: .panel-arrow[side="left"], michael@0: .panel-arrow[side="right"] { michael@0: list-style-image: url("chrome://global/skin/icons/panelarrow-horizontal.svg"); michael@0: position: relative; michael@0: margin-top: 6px; michael@0: margin-bottom: 6px; michael@0: } michael@0: michael@0: .panel-arrow[side="left"] { michael@0: margin-right: -1px; michael@0: } michael@0: michael@0: .panel-arrow[side="right"] { michael@0: transform: scaleX(-1); michael@0: margin-left: -1px; michael@0: } michael@0: michael@0: /* ::::: tooltip ::::: */ michael@0: michael@0: tooltip { michael@0: -moz-appearance: tooltip; michael@0: margin-top: 21px; michael@0: /* GTK hardcodes this to 4px */ michael@0: padding: 4px; michael@0: max-width: 40em; michael@0: color: InfoText; michael@0: font: message-box; michael@0: } michael@0: michael@0: tooltip[titletip="true"] { michael@0: /* See bug 32157 comment 128 michael@0: * margin: -2px 0px 0px -3px; michael@0: */ michael@0: max-width: none; michael@0: } michael@0: michael@0: /* rules for popups associated with menulists */ michael@0: michael@0: menulist > menupopup, michael@0: .menulist-menupopup { michael@0: padding: 0px; michael@0: min-width: 0px; michael@0: } michael@0: