X-Git-Url: https://git-public.kairo.at/?p=themes.git;a=blobdiff_plain;f=EarlyBlue%2Fglobal%2Fpopup.css;h=1b9f33a71dd9cd8480ff56ecf830ca6ece63b916;hp=4ca198f7e45c949113c8b4aa2bb6659b6ddf93d0;hb=fcfc89aa72f63ecd68c3fe8bbe1e88909e57da49;hpb=46dc2718163b4e6ffb52ef8f46bef4c8db7ed804 diff --git a/EarlyBlue/global/popup.css b/EarlyBlue/global/popup.css index 4ca198f7..1b9f33a7 100644 --- a/EarlyBlue/global/popup.css +++ b/EarlyBlue/global/popup.css @@ -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;