/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ %include ../../shared/downloads/downloads.inc.css /*** Panel and outer controls ***/ #downloadsFooter { background-color: hsla(210,4%,10%,.04); box-shadow: 0 1px 0 hsla(210,4%,10%,.08) inset; transition-duration: 150ms; transition-property: background-color; } #downloadsFooter:hover { background-color: hsla(210,4%,10%,.05); } #downloadsFooter:hover:active { background-color: hsla(210,4%,10%,.1); box-shadow: 0 2px 0 0 hsla(210,4%,10%,.1) inset; } @media (-moz-os-version: windows-xp), (-moz-os-version: windows-vista), (-moz-os-version: windows-win7) { #downloadsHistory { color: -moz-nativehyperlinktext; } @media (-moz-windows-default-theme) { #downloadsFooter { border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; transition-duration: 0s; } #downloadsFooter, #downloadsFooter:hover, #downloadsFooter:hover:active { background-color: #f1f5fb; box-shadow: 0px 1px 2px rgb(204,214,234) inset; } @media (-moz-os-version: windows-xp) { #downloadsFooter, #downloadsFooter:hover, #downloadsFooter:hover:active { background-color: hsla(216,45%,88%,.98); } } } } @keyfocus@ #downloadsSummary:focus, @keyfocus@ #downloadsHistory:focus { outline: 1px -moz-dialogtext dotted; outline-offset: -1px; } @keyfocus@ #downloadsSummary:focus { outline-offset: -5px; } #downloadsHistory > .button-box { /* Hide the border so we don't display an inner focus ring. */ border: none; } /*** List items and similar elements in the summary ***/ :root { --downloads-item-height: 7em; --downloads-item-border-top-color: hsla(0,0%,100%,.3); --downloads-item-border-bottom-color: hsla(220,18%,51%,.25); --downloads-item-font-size-factor: 0.9; --downloads-item-target-margin-bottom: 6px; --downloads-item-details-margin-top: 0; --downloads-item-details-opacity: 0.6; } @media (-moz-windows-default-theme) and (-moz-os-version: windows-vista), (-moz-windows-default-theme) and (-moz-os-version: windows-win7) { richlistitem[type="download"] { border: 1px solid transparent; border-bottom: 1px solid hsl(213,40%,90%); } } .downloadButton > .button-box { border: 1px solid transparent; } @keyfocus@ .downloadButton:focus > .button-box { border: 1px dotted ThreeDDarkShadow; } /*** Highlighted list items ***/ @keyfocus@ @itemFocused@ { outline: 1px -moz-dialogtext dotted; outline-offset: -1px; } @notKeyfocus@ @itemFinished@[exists]:hover { background-color: hsla(210,4%,10%,.08); outline: 1px solid hsla(210,4%,10%,.1); outline-offset: -1px; cursor: pointer; } @notKeyfocus@ @itemFinished@[exists]:hover:active { background-color: hsla(210,4%,10%,.15); outline: 1px solid hsla(210,4%,10%,.15); box-shadow: 0 1px 0 0 hsla(210,4%,10%,.05) inset; } @media (-moz-os-version: windows-xp), (-moz-os-version: windows-vista), (-moz-os-version: windows-win7) { @notKeyfocus@ @itemFinished@[exists]:hover { border-radius: 3px; outline: 0; border-top: 1px solid hsla(0,0%,100%,.2); border-bottom: 1px solid hsla(0,0%,0%,.2); background-color: Highlight; color: HighlightText; } @notKeyfocus@ @itemFinished@[exists]:hover:active { background-color: Highlight; outline: 0; box-shadow: none; } } @media (-moz-windows-default-theme) and (-moz-os-version: windows-vista), (-moz-windows-default-theme) and (-moz-os-version: windows-win7) { @notKeyfocus@ @itemFinished@[exists]:hover { border: 1px solid hsl(213,45%,65%); box-shadow: 0 0 0 1px hsla(0,0%,100%,.5) inset, 0 1px 0 hsla(0,0%,100%,.3) inset; background-image: linear-gradient(hsl(212,86%,92%), hsl(212,91%,86%)); color: black; } } /*** Button icons ***/ .downloadButton.downloadConfirmBlock, .downloadButton.downloadCancel { -moz-image-region: rect(0px, 16px, 16px, 0px); } @item@:hover .downloadButton.downloadConfirmBlock, @item@:hover .downloadButton.downloadCancel { -moz-image-region: rect(0px, 32px, 16px, 16px); } @item@:hover .downloadButton.downloadConfirmBlock:hover, @item@:hover .downloadButton.downloadCancel:hover { -moz-image-region: rect(0px, 48px, 16px, 32px); } @item@:hover .downloadButton.downloadConfirmBlock:active, @item@:hover .downloadButton.downloadCancel:active { -moz-image-region: rect(0px, 64px, 16px, 48px); } .downloadButton.downloadShow { -moz-image-region: rect(16px, 16px, 32px, 0px); } @item@:hover .downloadButton.downloadShow { -moz-image-region: rect(16px, 32px, 32px, 16px); } @item@:hover .downloadButton.downloadShow:hover { -moz-image-region: rect(16px, 48px, 32px, 32px); } @item@:hover .downloadButton.downloadShow:active { -moz-image-region: rect(16px, 64px, 32px, 48px); } @media (-moz-os-version: windows-xp) { @keyfocus@ @itemFinished@:hover .downloadButton.downloadShow { -moz-image-region: rect(16px, 32px, 32px, 16px); } @keyfocus@ @itemFinished@:hover .downloadButton.downloadShow:hover { -moz-image-region: rect(16px, 48px, 32px, 32px); } @keyfocus@ @itemFinished@:hover .downloadButton.downloadShow:active { -moz-image-region: rect(16px, 64px, 32px, 48px); } @notKeyfocus@ @itemFinished@:hover .downloadButton.downloadShow { -moz-image-region: rect(16px, 96px, 32px, 80px); } @notKeyfocus@ @itemFinished@:hover .downloadButton.downloadShow:hover { -moz-image-region: rect(16px, 112px, 32px, 96px); } @notKeyfocus@ @itemFinished@:hover .downloadButton.downloadShow:active { -moz-image-region: rect(16px, 128px, 32px, 112px); } } .downloadButton.downloadRetry { -moz-image-region: rect(32px, 16px, 48px, 0px); } @item@:hover .downloadButton.downloadRetry { -moz-image-region: rect(32px, 32px, 48px, 16px); } @item@:hover .downloadButton.downloadRetry:hover { -moz-image-region: rect(32px, 48px, 48px, 32px); } @item@:hover .downloadButton.downloadRetry:active { -moz-image-region: rect(32px, 64px, 48px, 48px); }