X-Git-Url: https://git-public.kairo.at/?p=themes.git;a=blobdiff_plain;f=LCARStrek%2Fglobal%2Fpopup.css;h=83ca10db9c7b014b0762e2dca08a9ac693e2f049;hp=c77246d8bc9f67f33cf90e4361922a65bad140cb;hb=10d7e614a23a72b108f9436cd41b542b432e5b53;hpb=351107c90e7ee7a17d9bf63798f2861307118309 diff --git a/LCARStrek/global/popup.css b/LCARStrek/global/popup.css index c77246d8..83ca10db 100644 --- a/LCARStrek/global/popup.css +++ b/LCARStrek/global/popup.css @@ -35,57 +35,108 @@ * * ***** END LICENSE BLOCK ***** */ +/* ===== popup.css ====================================================== + == Styles used by the XUL popup element. + ======================================================================= */ + @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); -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 : #000000; - color : #FF9F00; - } - -/* XXX menupopups have to have a color explicitly specified. this is a bug */ -menupopup, popup - { - border : 1px solid #FF9F00; - } - -.popup-internal-box - { - padding : 0px; - } - -/** Tooltips (tooltip element is deprecated! Use instead!) - * class="tooltip" - **/ -.tooltip, tooltip - { - -moz-border-radius : 3px; - background-color : #9C9CFF; - border : 1px solid #FFCF00; - color : #000000; - font : smaller; - padding : 3px; - max-width : 40em; - } - -.tooltip > .popup-internal-box, -tooltip > .popup-internal-box - { - border : 0px; - padding : 0px; - } +/* ::::: menupopup ::::: */ + +menupopup, +panel { + border: 1px solid #FF9F00; + padding: 1px; + min-width: 1px; + background-color: #000000; +} + +panel[type="arrow"] { + background: transparent; + border: none; + -moz-transition: opacity 300ms; +} + +panel[type="arrow"][side="top"], +panel[type="arrow"][side="bottom"] { + margin-left: -25px; + margin-right: -25px; +} + +panel[type="arrow"][side="left"], +panel[type="arrow"][side="right"] { + margin-top: -25px; + margin-bottom: -25px; +} + +.panel-arrowcontent { + border: 1px solid #FF9F00; + background-color: #000000; + border-radius: 6px; + padding: 6px; + margin: 3px; +} + +.panel-arrow[side="top"] { + list-style-image: url("chrome://global/skin/arrow/panelarrow-up.png"); + margin-left: 5px; + margin-right: 5px; + margin-bottom: -8px; + margin-top: -6px; +} + +.panel-arrow[side="bottom"] { + list-style-image: url("chrome://global/skin/arrow/panelarrow-down.png"); + margin-left: 5px; + margin-right: 5px; + margin-top: -8px; + margin-bottom: -6px; +} + +.panel-arrow[side="left"] { + list-style-image: url("chrome://global/skin/arrow/panelarrow-horiz.png"); + margin-top: 5px; + margin-bottom: 5px; + margin-right: -8px; + margin-left: -6px; +} + +.panel-arrow[side="right"] { + list-style-image: url("chrome://global/skin/arrow/panelarrow-horiz.png"); + -moz-transform: scaleX(-1); + margin-top: 5px; + margin-bottom: 5px; + margin-left: -8px; + margin-right: -6px; +} + +tooltip { + border-radius: 3px; + background-color: #9C9CFF; + border: 1px solid #FFCF00; + 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; +} /* rules for popups associated with menulists */ - menulist > menupopup, - .menulist-menupopup - { - border : 1px solid #FF9F00; - min-width : 0px; - background-color : #000000; - } +menulist > menupopup, +.menulist-menupopup { + border: 1px solid #FF9F00; + min-width: 0px; + padding: 0px; + background-color: #000000; +} + +menupopup > menu > menupopup { + margin-top: -2px; +}