some small popup tweaks in both themes
[themes.git] / EarlyBlue / global / popup.css
index 4ca198f7e45c949113c8b4aa2bb6659b6ddf93d0..1b9f33a71dd9cd8480ff56ecf830ca6ece63b916 100644 (file)
@@ -2,6 +2,10 @@
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
+/* ===== popup.css ======================================================
+  == Styles used by the XUL popup element.
+  ======================================================================= */
+
 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
 
 /* ::::: menupopup ::::: */
@@ -14,10 +18,46 @@ panel {
   background-color: #CCD0DD;
 }
 
+menupopup > menu > menupopup {
+  /* align submenus */
+  margin-top: -1px;
+}
+
+/* ::::: arrow panel ::::: */
+
 panel[type="arrow"] {
   background: transparent;
   border: none;
-  -moz-transition: opacity 300ms;
+  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"],
@@ -37,7 +77,7 @@ panel[type="arrow"][side="right"] {
   background-color: #CCD0DD;
   background-clip: padding-box;
   border: 1px outset #CCD0DD;
-  margin: 3px;
+  margin: 0px;
 }
 
 .panel-arrow[side="top"],
@@ -49,12 +89,12 @@ panel[type="arrow"][side="right"] {
 }
 
 .panel-arrow[side="top"] {
-  margin-bottom: -5px;
+  margin-bottom: -1px;
 }
 
 .panel-arrow[side="bottom"] {
-  -moz-transform: scaleY(-1);
-  margin-top: -5px;
+  transform: scaleY(-1);
+  margin-top: -1px;
 }
 
 .panel-arrow[side="left"],
@@ -66,14 +106,16 @@ panel[type="arrow"][side="right"] {
 }
 
 .panel-arrow[side="left"] {
-  margin-right: -5px;
+  margin-right: -1px;
 }
 
 .panel-arrow[side="right"] {
-  -moz-transform: scaleX(-1);
-  margin-left: -5px;
+  transform: scaleX(-1);
+  margin-left: -1px;
 }
 
+/* ::::: tooltip ::::: */
+
 tooltip {
   background-color : #FFFFCC;
   border : 1px outset #FFFFCC;