Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
michael@0 | 6 | |
michael@0 | 7 | menupopup, |
michael@0 | 8 | panel { |
michael@0 | 9 | -moz-appearance: menupopup; |
michael@0 | 10 | background-color: Menu; |
michael@0 | 11 | } |
michael@0 | 12 | |
michael@0 | 13 | menupopup > menu > menupopup { |
michael@0 | 14 | margin-top: -4px; |
michael@0 | 15 | } |
michael@0 | 16 | |
michael@0 | 17 | .popup-internal-box { |
michael@0 | 18 | padding: 4px 0; |
michael@0 | 19 | } |
michael@0 | 20 | |
michael@0 | 21 | panel[titlebar] { |
michael@0 | 22 | -moz-appearance: none; /* to disable rounded corners */ |
michael@0 | 23 | } |
michael@0 | 24 | |
michael@0 | 25 | panel[type="arrow"] { |
michael@0 | 26 | -moz-appearance: none; |
michael@0 | 27 | background: transparent; |
michael@0 | 28 | transition: opacity 300ms; |
michael@0 | 29 | } |
michael@0 | 30 | |
michael@0 | 31 | .panel-arrowcontainer[panelopen] { |
michael@0 | 32 | transition-duration: 200ms, 150ms; |
michael@0 | 33 | transition-property: opacity, transform; |
michael@0 | 34 | transition-timing-function: ease-out; |
michael@0 | 35 | } |
michael@0 | 36 | |
michael@0 | 37 | .panel-arrowcontainer:not([panelopen]) { |
michael@0 | 38 | opacity: 0; |
michael@0 | 39 | } |
michael@0 | 40 | |
michael@0 | 41 | .panel-arrowcontainer:not([panelopen])[side="top"] { |
michael@0 | 42 | transform: translateY(-20px); |
michael@0 | 43 | } |
michael@0 | 44 | |
michael@0 | 45 | .panel-arrowcontainer:not([panelopen])[side="bottom"] { |
michael@0 | 46 | transform: translateY(20px); |
michael@0 | 47 | } |
michael@0 | 48 | |
michael@0 | 49 | .panel-arrowcontainer:not([panelopen])[side="left"] { |
michael@0 | 50 | transform: translateX(-20px); |
michael@0 | 51 | } |
michael@0 | 52 | |
michael@0 | 53 | .panel-arrowcontainer:not([panelopen])[side="right"] { |
michael@0 | 54 | transform: translateX(20px); |
michael@0 | 55 | } |
michael@0 | 56 | |
michael@0 | 57 | panel[type="arrow"][side="top"], |
michael@0 | 58 | panel[type="arrow"][side="bottom"] { |
michael@0 | 59 | margin-left: -25px; |
michael@0 | 60 | margin-right: -25px; |
michael@0 | 61 | } |
michael@0 | 62 | |
michael@0 | 63 | panel[type="arrow"][side="left"], |
michael@0 | 64 | panel[type="arrow"][side="right"] { |
michael@0 | 65 | margin-top: -25px; |
michael@0 | 66 | margin-bottom: -25px; |
michael@0 | 67 | } |
michael@0 | 68 | |
michael@0 | 69 | .panel-arrowcontent { |
michael@0 | 70 | -moz-appearance: none; |
michael@0 | 71 | background-image: linear-gradient(hsla(0,0%,99%,1), hsla(0,0%,99%,.975) 10%, hsla(0,0%,98%,.975)); |
michael@0 | 72 | border-radius: 3.5px; |
michael@0 | 73 | box-shadow: 0 0 0 1px hsla(210,4%,10%,.05); |
michael@0 | 74 | color: hsl(0,0%,10%); |
michael@0 | 75 | padding: 16px; |
michael@0 | 76 | margin: 1px; |
michael@0 | 77 | } |
michael@0 | 78 | |
michael@0 | 79 | .panel-arrow[side="top"] { |
michael@0 | 80 | list-style-image: url("chrome://global/skin/arrow/panelarrow-vertical.png"); |
michael@0 | 81 | margin-left: 16px; |
michael@0 | 82 | margin-right: 16px; |
michael@0 | 83 | margin-bottom: -1px; |
michael@0 | 84 | } |
michael@0 | 85 | |
michael@0 | 86 | .panel-arrow[side="bottom"] { |
michael@0 | 87 | list-style-image: url("chrome://global/skin/arrow/panelarrow-vertical.png"); |
michael@0 | 88 | -moz-transform: scaleY(-1); |
michael@0 | 89 | margin-left: 16px; |
michael@0 | 90 | margin-right: 16px; |
michael@0 | 91 | margin-top: -1px; |
michael@0 | 92 | } |
michael@0 | 93 | |
michael@0 | 94 | .panel-arrow[side="left"] { |
michael@0 | 95 | list-style-image: url("chrome://global/skin/arrow/panelarrow-horizontal.png"); |
michael@0 | 96 | margin-top: 16px; |
michael@0 | 97 | margin-bottom: 16px; |
michael@0 | 98 | margin-right: -1px; |
michael@0 | 99 | } |
michael@0 | 100 | |
michael@0 | 101 | .panel-arrow[side="right"] { |
michael@0 | 102 | list-style-image: url("chrome://global/skin/arrow/panelarrow-horizontal.png"); |
michael@0 | 103 | transform: scaleX(-1); |
michael@0 | 104 | margin-top: 16px; |
michael@0 | 105 | margin-bottom: 16px; |
michael@0 | 106 | margin-left: -1px; |
michael@0 | 107 | } |
michael@0 | 108 | |
michael@0 | 109 | @media (min-resolution: 2dppx) { |
michael@0 | 110 | .panel-arrow[side="top"], |
michael@0 | 111 | .panel-arrow[side="bottom"] { |
michael@0 | 112 | list-style-image: url("chrome://global/skin/arrow/panelarrow-vertical@2x.png"); |
michael@0 | 113 | width: 18px; |
michael@0 | 114 | height: 10px; |
michael@0 | 115 | } |
michael@0 | 116 | |
michael@0 | 117 | .panel-arrow[side="left"], |
michael@0 | 118 | .panel-arrow[side="right"] { |
michael@0 | 119 | list-style-image: url("chrome://global/skin/arrow/panelarrow-horizontal@2x.png"); |
michael@0 | 120 | width: 10px; |
michael@0 | 121 | height: 18px; |
michael@0 | 122 | } |
michael@0 | 123 | } |
michael@0 | 124 | |
michael@0 | 125 | /* ::::: tooltip ::::: */ |
michael@0 | 126 | |
michael@0 | 127 | tooltip { |
michael@0 | 128 | -moz-appearance: tooltip; |
michael@0 | 129 | margin-top: 18px; |
michael@0 | 130 | padding: 2px 3px; |
michael@0 | 131 | max-width: 40em; |
michael@0 | 132 | color: InfoText; |
michael@0 | 133 | font: message-box; |
michael@0 | 134 | cursor: default; |
michael@0 | 135 | } |
michael@0 | 136 | |
michael@0 | 137 | tooltip[titletip="true"] { |
michael@0 | 138 | /* See bug 32157 comment 128 |
michael@0 | 139 | * margin: -2px 0px 0px -3px; |
michael@0 | 140 | */ |
michael@0 | 141 | max-width: none; |
michael@0 | 142 | } |
michael@0 | 143 | |
michael@0 | 144 | /* rules for popups associated with menulists */ |
michael@0 | 145 | |
michael@0 | 146 | menulist > menupopup, |
michael@0 | 147 | .menulist-menupopup { |
michael@0 | 148 | min-width: 0px; |
michael@0 | 149 | } |
michael@0 | 150 | |
michael@0 | 151 | menulist[editable="true"] > menupopup { |
michael@0 | 152 | -moz-appearance: none; |
michael@0 | 153 | } |
michael@0 | 154 | |
michael@0 | 155 | menulist[editable="true"] > menupopup > .popup-internal-box { |
michael@0 | 156 | padding: 0; |
michael@0 | 157 | } |