toolkit/themes/windows/global/popup.css

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

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
michael@0 9 menupopup,
michael@0 10 panel {
michael@0 11 border: 3px solid transparent;
michael@0 12 -moz-border-top-colors : ThreeDLightShadow ThreeDHighlight ThreeDFace;
michael@0 13 -moz-border-left-colors : ThreeDLightShadow ThreeDHighlight ThreeDFace;
michael@0 14 -moz-border-right-colors : ThreeDDarkShadow ThreeDShadow ThreeDFace;
michael@0 15 -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow ThreeDFace;
michael@0 16 padding: 0px;
michael@0 17 min-width: 1px;
michael@0 18 background: Menu;
michael@0 19 color: MenuText;
michael@0 20 }
michael@0 21
michael@0 22 menupopup {
michael@0 23 -moz-appearance: menupopup;
michael@0 24 }
michael@0 25
michael@0 26 menupopup > menu > menupopup {
michael@0 27 /* align submenus */
michael@0 28 -moz-margin-start: -3px;
michael@0 29 margin-top: -3px;
michael@0 30 }
michael@0 31
michael@0 32 panel[type="arrow"] {
michael@0 33 -moz-appearance: none;
michael@0 34 background: transparent;
michael@0 35 border: none;
michael@0 36 transition: opacity 300ms;
michael@0 37 }
michael@0 38
michael@0 39 .panel-arrowcontainer[panelopen] {
michael@0 40 transition-duration: 200ms, 150ms;
michael@0 41 transition-property: opacity, transform;
michael@0 42 transition-timing-function: ease-out;
michael@0 43 }
michael@0 44
michael@0 45 .panel-arrowcontainer:not([panelopen]) {
michael@0 46 opacity: 0;
michael@0 47 }
michael@0 48
michael@0 49 .panel-arrowcontainer:not([panelopen])[side="top"] {
michael@0 50 transform: translateY(-20px);
michael@0 51 }
michael@0 52
michael@0 53 .panel-arrowcontainer:not([panelopen])[side="bottom"] {
michael@0 54 transform: translateY(20px);
michael@0 55 }
michael@0 56
michael@0 57 .panel-arrowcontainer:not([panelopen])[side="left"] {
michael@0 58 transform: translateX(-20px);
michael@0 59 }
michael@0 60
michael@0 61 .panel-arrowcontainer:not([panelopen])[side="right"] {
michael@0 62 transform: translateX(20px);
michael@0 63 }
michael@0 64
michael@0 65 panel[type="arrow"][side="top"],
michael@0 66 panel[type="arrow"][side="bottom"] {
michael@0 67 margin-left: -20px;
michael@0 68 margin-right: -20px;
michael@0 69 }
michael@0 70
michael@0 71 panel[type="arrow"][side="left"],
michael@0 72 panel[type="arrow"][side="right"] {
michael@0 73 margin-top: -20px;
michael@0 74 margin-bottom: -20px;
michael@0 75 }
michael@0 76
michael@0 77 .panel-arrowcontent {
michael@0 78 padding: 10px;
michael@0 79 color: -moz-FieldText;
michael@0 80 background: -moz-field;
michael@0 81 background-clip: padding-box;
michael@0 82 border: 1px solid ThreeDShadow;
michael@0 83 margin: 4px;
michael@0 84 }
michael@0 85
michael@0 86 %ifdef WINDOWS_AERO
michael@0 87 @media (-moz-os-version: windows-vista),
michael@0 88 (-moz-os-version: windows-win7) {
michael@0 89 %endif
michael@0 90 /* < Win8 */
michael@0 91 .panel-arrowcontent {
michael@0 92 border-radius: 4px;
michael@0 93 }
michael@0 94 %ifdef WINDOWS_AERO
michael@0 95 }
michael@0 96 %endif
michael@0 97
michael@0 98 .panel-arrow[side="top"],
michael@0 99 .panel-arrow[side="bottom"] {
michael@0 100 list-style-image: url("chrome://global/skin/arrow/panelarrow-vertical-themed.svg");
michael@0 101 position: relative;
michael@0 102 margin-left: 10px;
michael@0 103 margin-right: 10px;
michael@0 104 }
michael@0 105
michael@0 106 .panel-arrow[side="top"] {
michael@0 107 margin-bottom: -5px;
michael@0 108 }
michael@0 109
michael@0 110 .panel-arrow[side="bottom"] {
michael@0 111 transform: scaleY(-1);
michael@0 112 margin-top: -5px;
michael@0 113 }
michael@0 114
michael@0 115 .panel-arrow[side="left"],
michael@0 116 .panel-arrow[side="right"] {
michael@0 117 list-style-image: url("chrome://global/skin/arrow/panelarrow-horizontal-themed.svg");
michael@0 118 position: relative;
michael@0 119 margin-top: 10px;
michael@0 120 margin-bottom: 10px;
michael@0 121 }
michael@0 122
michael@0 123 .panel-arrow[side="left"] {
michael@0 124 margin-right: -5px;
michael@0 125 }
michael@0 126
michael@0 127 .panel-arrow[side="right"] {
michael@0 128 transform: scaleX(-1);
michael@0 129 margin-left: -5px;
michael@0 130 }
michael@0 131
michael@0 132 %ifdef XP_WIN
michael@0 133 @media (-moz-windows-default-theme) {
michael@0 134 .panel-arrowcontent {
michael@0 135 border-color: hsla(210,4%,10%,.2);
michael@0 136 box-shadow: 0 0 4px hsla(210,4%,10%,.2);
michael@0 137 }
michael@0 138
michael@0 139 .panel-arrow[side="top"],
michael@0 140 .panel-arrow[side="bottom"] {
michael@0 141 list-style-image: url("chrome://global/skin/arrow/panelarrow-vertical.svg");
michael@0 142 }
michael@0 143
michael@0 144 .panel-arrow[side="left"],
michael@0 145 .panel-arrow[side="right"] {
michael@0 146 list-style-image: url("chrome://global/skin/arrow/panelarrow-horizontal.svg");
michael@0 147 }
michael@0 148 }
michael@0 149 %endif
michael@0 150
michael@0 151 /* ::::: tooltip ::::: */
michael@0 152
michael@0 153 tooltip {
michael@0 154 -moz-appearance: tooltip;
michael@0 155 margin-top: 21px;
michael@0 156 border: 1px solid InfoText;
michael@0 157 padding: 2px 3px;
michael@0 158 max-width: 40em;
michael@0 159 background-color: InfoBackground;
michael@0 160 color: InfoText;
michael@0 161 font: message-box;
michael@0 162 }
michael@0 163
michael@0 164 tooltip[titletip="true"] {
michael@0 165 /* See bug 32157 comment 128
michael@0 166 * margin: -2px 0px 0px -3px;
michael@0 167 */
michael@0 168 max-width: none;
michael@0 169 }
michael@0 170
michael@0 171 /* rules for popups associated with menulists */
michael@0 172
michael@0 173 menulist > menupopup,
michael@0 174 .menulist-menupopup {
michael@0 175 -moz-appearance: none;
michael@0 176 border-width: 1px;
michael@0 177 -moz-border-top-colors: -moz-FieldText;
michael@0 178 -moz-border-right-colors: -moz-FieldText;
michael@0 179 -moz-border-bottom-colors: -moz-FieldText;
michael@0 180 -moz-border-left-colors: -moz-FieldText;
michael@0 181 padding: 0px;
michael@0 182 min-width: 0px;
michael@0 183 background-color: -moz-Field;
michael@0 184 }

mercurial