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 | /*** Status and progress indicator ***/ |
michael@0 | 6 | |
michael@0 | 7 | #downloads-animation-container { |
michael@0 | 8 | min-height: 1px; |
michael@0 | 9 | min-width: 1px; |
michael@0 | 10 | height: 1px; |
michael@0 | 11 | margin-bottom: -1px; |
michael@0 | 12 | /* Makes the outermost animation container element positioned, so that its |
michael@0 | 13 | contents are rendered over the main browser window in the Z order. |
michael@0 | 14 | This is required by the animated event notification. */ |
michael@0 | 15 | position: relative; |
michael@0 | 16 | /* The selected tab may overlap #downloads-indicator-notification */ |
michael@0 | 17 | z-index: 5; |
michael@0 | 18 | } |
michael@0 | 19 | |
michael@0 | 20 | /*** Main indicator icon ***/ |
michael@0 | 21 | |
michael@0 | 22 | #downloads-button[cui-areatype="toolbar"] > #downloads-indicator-anchor > #downloads-indicator-icon { |
michael@0 | 23 | background: -moz-image-rect(url("chrome://browser/skin/Toolbar.png"), |
michael@0 | 24 | 0, 198, 18, 180) center no-repeat; |
michael@0 | 25 | min-width: 18px; |
michael@0 | 26 | min-height: 18px; |
michael@0 | 27 | } |
michael@0 | 28 | |
michael@0 | 29 | toolbar[brighttext] #downloads-button[cui-areatype="toolbar"]:not([attention]) > #downloads-indicator-anchor > #downloads-indicator-icon { |
michael@0 | 30 | background: -moz-image-rect(url("chrome://browser/skin/Toolbar-inverted.png"), |
michael@0 | 31 | 0, 198, 18, 180) center no-repeat; |
michael@0 | 32 | } |
michael@0 | 33 | |
michael@0 | 34 | #downloads-button[cui-areatype="toolbar"][attention] > #downloads-indicator-anchor > #downloads-indicator-icon { |
michael@0 | 35 | background-image: url("chrome://browser/skin/downloads/download-glow.png"); |
michael@0 | 36 | } |
michael@0 | 37 | |
michael@0 | 38 | #downloads-button[cui-areatype="menu-panel"][attention] { |
michael@0 | 39 | list-style-image: url("chrome://browser/skin/downloads/download-glow-menuPanel.png"); |
michael@0 | 40 | -moz-image-region: auto; |
michael@0 | 41 | } |
michael@0 | 42 | |
michael@0 | 43 | /* In the next few rules, we use :not([counter]) as a shortcut that is |
michael@0 | 44 | equivalent to -moz-any([progress], [paused]). */ |
michael@0 | 45 | |
michael@0 | 46 | #downloads-button:not([counter]) > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter { |
michael@0 | 47 | background: -moz-image-rect(url("chrome://browser/skin/Toolbar-small.png"), |
michael@0 | 48 | 0, 16, 16, 0) center no-repeat; |
michael@0 | 49 | background-size: 12px; |
michael@0 | 50 | } |
michael@0 | 51 | |
michael@0 | 52 | toolbar[brighttext] #downloads-button:not([counter]):not([attention]) > #downloads-indicator-anchor > #downloads-button-progress-area > #downloads-indicator-counter { |
michael@0 | 53 | background-image: -moz-image-rect(url("chrome://browser/skin/Toolbar-inverted.png"), 0, 198, 18, 180); |
michael@0 | 54 | } |
michael@0 | 55 | |
michael@0 | 56 | #downloads-button:not([counter])[attention] > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter { |
michael@0 | 57 | background-image: url("chrome://browser/skin/downloads/download-glow.png"); |
michael@0 | 58 | } |
michael@0 | 59 | |
michael@0 | 60 | /*** Download notifications ***/ |
michael@0 | 61 | |
michael@0 | 62 | #downloads-indicator-notification { |
michael@0 | 63 | opacity: 0; |
michael@0 | 64 | background-size: 16px; |
michael@0 | 65 | background-position: center; |
michael@0 | 66 | background-repeat: no-repeat; |
michael@0 | 67 | width: 16px; |
michael@0 | 68 | height: 16px; |
michael@0 | 69 | } |
michael@0 | 70 | |
michael@0 | 71 | @keyframes downloadsIndicatorNotificationStartRight { |
michael@0 | 72 | from { opacity: 0; transform: translate(-128px, 128px) scale(8); } |
michael@0 | 73 | 20% { opacity: .85; animation-timing-function: ease-out; } |
michael@0 | 74 | to { opacity: 0; transform: translate(0) scale(1); } |
michael@0 | 75 | } |
michael@0 | 76 | |
michael@0 | 77 | @keyframes downloadsIndicatorNotificationStartLeft { |
michael@0 | 78 | from { opacity: 0; transform: translate(128px, 128px) scale(8); } |
michael@0 | 79 | 20% { opacity: .85; animation-timing-function: ease-out; } |
michael@0 | 80 | to { opacity: 0; transform: translate(0) scale(1); } |
michael@0 | 81 | } |
michael@0 | 82 | |
michael@0 | 83 | #downloads-notification-anchor[notification="start"] > #downloads-indicator-notification { |
michael@0 | 84 | background-image: url("chrome://browser/skin/downloads/download-notification-start.png"); |
michael@0 | 85 | animation-name: downloadsIndicatorNotificationStartRight; |
michael@0 | 86 | animation-duration: 1s; |
michael@0 | 87 | } |
michael@0 | 88 | |
michael@0 | 89 | #downloads-notification-anchor[notification="start"]:-moz-locale-dir(rtl) > #downloads-indicator-notification { |
michael@0 | 90 | animation-name: downloadsIndicatorNotificationStartLeft; |
michael@0 | 91 | } |
michael@0 | 92 | |
michael@0 | 93 | @keyframes downloadsIndicatorNotificationFinish { |
michael@0 | 94 | from { opacity: 0; transform: scale(1); } |
michael@0 | 95 | 20% { opacity: .65; animation-timing-function: ease-in; } |
michael@0 | 96 | to { opacity: 0; transform: scale(8); } |
michael@0 | 97 | } |
michael@0 | 98 | |
michael@0 | 99 | #downloads-notification-anchor[notification="finish"] > #downloads-indicator-notification { |
michael@0 | 100 | background-image: url("chrome://browser/skin/downloads/download-notification-finish.png"); |
michael@0 | 101 | animation-name: downloadsIndicatorNotificationFinish; |
michael@0 | 102 | animation-duration: 1s; |
michael@0 | 103 | } |
michael@0 | 104 | |
michael@0 | 105 | /*** Progress bar and text ***/ |
michael@0 | 106 | |
michael@0 | 107 | #downloads-indicator-counter { |
michael@0 | 108 | height: 10px; |
michael@0 | 109 | margin: 0; |
michael@0 | 110 | color: hsl(0,0%,30%); |
michael@0 | 111 | text-shadow: 0 1px 0 hsla(0,0%,100%,.5); |
michael@0 | 112 | font-size: 10px; |
michael@0 | 113 | line-height: 10px; |
michael@0 | 114 | text-align: center; |
michael@0 | 115 | } |
michael@0 | 116 | |
michael@0 | 117 | toolbar[brighttext] #downloads-indicator-counter { |
michael@0 | 118 | color: white; |
michael@0 | 119 | text-shadow: 0 0 1px rgba(0,0,0,.7), |
michael@0 | 120 | 0 1px 1.5px rgba(0,0,0,.5); |
michael@0 | 121 | } |
michael@0 | 122 | |
michael@0 | 123 | #downloads-indicator-progress { |
michael@0 | 124 | width: 18px; |
michael@0 | 125 | height: 6px; |
michael@0 | 126 | min-width: 0; |
michael@0 | 127 | min-height: 0; |
michael@0 | 128 | margin-top: 1px; |
michael@0 | 129 | margin-bottom: 2px; |
michael@0 | 130 | border-radius: 2px; |
michael@0 | 131 | box-shadow: 0 1px 0 hsla(0,0%,100%,.4); |
michael@0 | 132 | } |
michael@0 | 133 | |
michael@0 | 134 | #downloads-indicator-progress > .progress-bar { |
michael@0 | 135 | -moz-appearance: none; |
michael@0 | 136 | min-width: 0; |
michael@0 | 137 | min-height: 0; |
michael@0 | 138 | /* The background-clip: border-box; and background-image: none; are there to expand the background-color behind the border */ |
michael@0 | 139 | background-clip: padding-box, border-box; |
michael@0 | 140 | background-color: rgb(255, 135, 94); |
michael@0 | 141 | background-image: linear-gradient(transparent 1px, rgba(255, 255, 255, 0.4) 1px, rgba(255, 255, 255, 0.4) 2px, transparent 2px), none; |
michael@0 | 142 | border: 1px solid; |
michael@0 | 143 | border-color: rgba(0,43,86,.6) rgba(0,43,86,.4) rgba(0,43,86,.4); |
michael@0 | 144 | border-radius: 2px 0 0 2px; |
michael@0 | 145 | } |
michael@0 | 146 | |
michael@0 | 147 | #downloads-indicator-progress > .progress-remainder { |
michael@0 | 148 | -moz-appearance: none; |
michael@0 | 149 | min-width: 0; |
michael@0 | 150 | min-height: 0; |
michael@0 | 151 | background-image: linear-gradient(#505050, #575757); |
michael@0 | 152 | border: 1px solid; |
michael@0 | 153 | border-color: hsla(0,0%,0%,.6) hsla(0,0%,0%,.4) hsla(0,0%,0%,.4); |
michael@0 | 154 | -moz-border-start: none; |
michael@0 | 155 | border-radius: 0 2px 2px 0; |
michael@0 | 156 | } |
michael@0 | 157 | |
michael@0 | 158 | #downloads-button[paused] > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-progress > .progress-bar { |
michael@0 | 159 | background-color: rgb(220, 230, 81); |
michael@0 | 160 | } |
michael@0 | 161 | |
michael@0 | 162 | #downloads-button[paused] > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-progress > .progress-remainder { |
michael@0 | 163 | background-image: linear-gradient(#4b5000, #515700); |
michael@0 | 164 | } |