-menupopup, popup
- {
- /* DON'T DELETE. Removes disappearance of scrollbars
- * in content pane when window is made smaller.
- * Talk to evaughan@netscape.com for details.
- */
- min-width : 1px;
- background-color : #CCD0DD;
- }
-
-/* XXX menupopups have to have a color explicitly specified. this is a bug */
-menupopup, popup
- {
- border : 1px outset #CCD0DD;
- }
-
-.popup-internal-box
- {
- padding : 1px;
- }
-
-/** Tooltips (tooltip <popup> element is deprecated! Use <tooltip> instead!)
- * class="tooltip"
- **/
-.tooltip, tooltip
- {
- background-color : #FFFFCC;
- border : 1px outset #FFFFCC;
- color : #000000;
- font : smaller;
- padding : 2px;
- max-width : 40em;
- }
-
-.tooltip > .popup-internal-box,
-tooltip > .popup-internal-box
- {
- border : 0px;
- padding : 0px;
- }
+/* ::::: menupopup ::::: */
+
+menupopup,
+panel {
+ border: 1px outset #CCD0DD;
+ padding: 1px;
+ min-width: 1px;
+ background-color: #CCD0DD;
+}
+
+menupopup > menu > menupopup {
+ /* align submenus */
+ margin-top: -2px;
+}
+
+/* ::::: arrow panel ::::: */
+
+panel[type="arrow"] {
+ background: transparent;
+ border: none;
+ padding: 0;
+ transition: opacity 300ms;
+}
+
+.panel-arrowcontainer[panelopen] {
+ transition-duration: 200ms, 150ms;
+ transition-property: opacity, transform;
+ transition-timing-function: ease-out;
+}
+
+.panel-arrowcontainer:not([panelopen]) {
+ /* Does not work correctly in Linux right now. - 2012-09-30
+ * Actually, only breaks uncommon Window Managers, but arrowpanels disappear completely. 2013-07-21
+ opacity: 0; */
+}
+
+.panel-arrowcontainer:not([panelopen])[side="top"] {
+ transform: translateY(-20px);
+}
+
+.panel-arrowcontainer:not([panelopen])[side="bottom"] {
+ transform: translateY(20px);
+}
+
+.panel-arrowcontainer:not([panelopen])[side="left"] {
+ transform: translateX(-20px);
+}
+
+.panel-arrowcontainer:not([panelopen])[side="right"] {
+ transform: translateX(20px);
+}
+
+panel[type="arrow"][side="top"],
+panel[type="arrow"][side="bottom"] {
+ margin-left: -20px;
+ margin-right: -20px;
+}
+
+panel[type="arrow"][side="left"],
+panel[type="arrow"][side="right"] {
+ margin-top: -20px;
+ margin-bottom: -20px;
+}
+
+.panel-arrowcontent {
+ padding: 6px;
+ background-color: #CCD0DD;
+ background-clip: padding-box;
+ border: 1px outset #CCD0DD;
+ margin: 0px;
+}
+
+.panel-arrow[side="top"],
+.panel-arrow[side="bottom"] {
+ list-style-image: url("chrome://global/skin/arrow/panelarrow-vertical.svg");
+ position: relative;
+ margin-left: 10px;
+ margin-right: 10px;
+}
+
+.panel-arrow[side="top"] {
+ margin-bottom: -1px;
+}
+
+.panel-arrow[side="bottom"] {
+ transform: scaleY(-1);
+ margin-top: -1px;
+}
+
+.panel-arrow[side="left"],
+.panel-arrow[side="right"] {
+ list-style-image: url("chrome://global/skin/arrow/panelarrow-horizontal.svg");
+ position: relative;
+ margin-top: 10px;
+ margin-bottom: 10px;
+}
+
+.panel-arrow[side="left"] {
+ margin-right: -1px;
+}
+
+.panel-arrow[side="right"] {
+ transform: scaleX(-1);
+ margin-left: -1px;
+}
+
+/* ::::: tooltip ::::: */
+
+tooltip {
+ background-color : #FFFFCC;
+ border : 1px outset #FFFFCC;
+ color: #000000;
+ /* font-size: smaller; */
+ padding: 2px;
+ max-width: 40em;
+}
+
+tooltip[titletip="true"] {
+ /* See bug 32157 comment 128
+ * margin: -2px 0px 0px -3px;
+ */
+ max-width: none;
+}