| 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
| 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
| 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
| 4 | |
| 5 | /* ===== popup.css ====================================================== |
| 6 | == Styles used by the XUL popup element. |
| 7 | ======================================================================= */ |
| 8 | |
| 9 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
| 10 | |
| 11 | /* ::::: menupopup ::::: */ |
| 12 | |
| 13 | menupopup, |
| 14 | panel { |
| 15 | border: 1px solid #FF9F00; |
| 16 | padding: 1px; |
| 17 | min-width: 1px; |
| 18 | background-color: #000000; |
| 19 | } |
| 20 | |
| 21 | panel[type="arrow"] { |
| 22 | background: transparent; |
| 23 | border: none; |
| 24 | -moz-transition: opacity 300ms; |
| 25 | } |
| 26 | |
| 27 | panel[type="arrow"][side="top"], |
| 28 | panel[type="arrow"][side="bottom"] { |
| 29 | margin-left: -25px; |
| 30 | margin-right: -25px; |
| 31 | } |
| 32 | |
| 33 | panel[type="arrow"][side="left"], |
| 34 | panel[type="arrow"][side="right"] { |
| 35 | margin-top: -25px; |
| 36 | margin-bottom: -25px; |
| 37 | } |
| 38 | |
| 39 | .panel-arrowcontent { |
| 40 | border: 1px solid #FF9F00; |
| 41 | background-color: #000000; |
| 42 | border-radius: 6px; |
| 43 | padding: 6px; |
| 44 | margin: 3px; |
| 45 | } |
| 46 | |
| 47 | .panel-arrow[side="top"] { |
| 48 | list-style-image: url("chrome://global/skin/arrow/panelarrow-up.png"); |
| 49 | margin-left: 5px; |
| 50 | margin-right: 5px; |
| 51 | margin-bottom: -8px; |
| 52 | margin-top: -6px; |
| 53 | } |
| 54 | |
| 55 | .panel-arrow[side="bottom"] { |
| 56 | list-style-image: url("chrome://global/skin/arrow/panelarrow-down.png"); |
| 57 | margin-left: 5px; |
| 58 | margin-right: 5px; |
| 59 | margin-top: -8px; |
| 60 | margin-bottom: -6px; |
| 61 | } |
| 62 | |
| 63 | .panel-arrow[side="left"] { |
| 64 | list-style-image: url("chrome://global/skin/arrow/panelarrow-horiz.png"); |
| 65 | margin-top: 5px; |
| 66 | margin-bottom: 5px; |
| 67 | margin-right: -8px; |
| 68 | margin-left: -6px; |
| 69 | } |
| 70 | |
| 71 | .panel-arrow[side="right"] { |
| 72 | list-style-image: url("chrome://global/skin/arrow/panelarrow-horiz.png"); |
| 73 | -moz-transform: scaleX(-1); |
| 74 | margin-top: 5px; |
| 75 | margin-bottom: 5px; |
| 76 | margin-left: -8px; |
| 77 | margin-right: -6px; |
| 78 | } |
| 79 | |
| 80 | tooltip { |
| 81 | border-radius: 3px; |
| 82 | background-color: #9C9CFF; |
| 83 | border: 1px solid #FFCF00; |
| 84 | color: #000000; |
| 85 | /* font-size: smaller; */ |
| 86 | padding: 2px; |
| 87 | max-width: 40em; |
| 88 | } |
| 89 | |
| 90 | tooltip[titletip="true"] { |
| 91 | /* See bug 32157 comment 128 |
| 92 | * margin: -2px 0px 0px -3px; |
| 93 | */ |
| 94 | max-width: none; |
| 95 | } |
| 96 | |
| 97 | /* rules for popups associated with menulists */ |
| 98 | |
| 99 | menulist > menupopup, |
| 100 | .menulist-menupopup { |
| 101 | border: 1px solid #FF9F00; |
| 102 | min-width: 0px; |
| 103 | padding: 0px; |
| 104 | background-color: #000000; |
| 105 | } |
| 106 | |
| 107 | menupopup > menu > menupopup { |
| 108 | margin-top: -2px; |
| 109 | } |