michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: richlistitem.download button { michael@0: /* These buttons should never get focus, as that would "disable" michael@0: the downloads view controller (it's only used when the richlistbox michael@0: is focused). */ michael@0: -moz-user-focus: none; michael@0: } michael@0: michael@0: /*** Visibility of controls inside download items ***/ michael@0: michael@0: .download-state:-moz-any( [state="6"], /* Blocked (parental) */ michael@0: [state="8"], /* Blocked (dirty) */ michael@0: [state="9"]) /* Blocked (policy) */ michael@0: > .downloadTypeIcon:not(.blockedIcon), michael@0: michael@0: .download-state:not(:-moz-any([state="6"], /* Blocked (parental) */ michael@0: [state="8"], /* Blocked (dirty) */ michael@0: [state="9"]) /* Blocked (policy) */) michael@0: > .downloadTypeIcon.blockedIcon, michael@0: michael@0: .download-state:not(:-moz-any([state="-1"],/* Starting (initial) */ michael@0: [state="5"], /* Starting (queued) */ michael@0: [state="0"], /* Downloading */ michael@0: [state="4"], /* Paused */ michael@0: [state="7"]) /* Scanning */) michael@0: > vbox > .downloadProgress, michael@0: michael@0: .download-state:not(:-moz-any([state="-1"],/* Starting (initial) */ michael@0: [state="5"], /* Starting (queued) */ michael@0: [state="0"], /* Downloading */ michael@0: [state="4"]) /* Paused */) michael@0: > .downloadCancel, michael@0: michael@0: .download-state[state]:not(:-moz-any([state="2"], /* Failed */ michael@0: [state="3"]) /* Canceled */) michael@0: > .downloadRetry, michael@0: michael@0: .download-state:not( [state="1"] /* Finished */) michael@0: > .downloadShow michael@0: { michael@0: display: none; michael@0: }