134 lines
4.5 KiB
CSS
134 lines
4.5 KiB
CSS
|
/* 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/allDownloadsViewOverlay.inc.css
|
||
|
|
||
|
/*** List items ***/
|
||
|
|
||
|
:root {
|
||
|
--downloads-item-height: 6em;
|
||
|
}
|
||
|
|
||
|
/*** Highlighted list items ***/
|
||
|
|
||
|
@media not all and (-moz-os-version: windows-xp) {
|
||
|
@media (-moz-windows-default-theme) {
|
||
|
/*
|
||
|
-moz-appearance: menuitem is almost right, but the hover effect is not
|
||
|
transparent and is lighter than desired.
|
||
|
|
||
|
Copied from the autocomplete richlistbox styling in
|
||
|
toolkit/themes/windows/global/autocomplete.css
|
||
|
|
||
|
This styling should be kept in sync with the style from the above file.
|
||
|
*/
|
||
|
@itemFocused@ {
|
||
|
color: inherit;
|
||
|
background-color: transparent;
|
||
|
/* four gradients for the bevel highlights on each edge, one for blue background */
|
||
|
background-image:
|
||
|
linear-gradient(to bottom, rgba(255,255,255,0.9) 3px, transparent 3px),
|
||
|
linear-gradient(to right, rgba(255,255,255,0.5) 3px, transparent 3px),
|
||
|
linear-gradient(to left, rgba(255,255,255,0.5) 3px, transparent 3px),
|
||
|
linear-gradient(to top, rgba(255,255,255,0.4) 3px, transparent 3px),
|
||
|
linear-gradient(to bottom, rgba(163,196,247,0.3), rgba(122,180,246,0.3));
|
||
|
background-clip: content-box;
|
||
|
border-radius: 6px;
|
||
|
outline: 1px solid rgb(124,163,206);
|
||
|
-moz-outline-radius: 3px;
|
||
|
outline-offset: -2px;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/*** 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);
|
||
|
}
|
||
|
|
||
|
.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);
|
||
|
}
|
||
|
|
||
|
@media (-moz-os-version: windows-xp) {
|
||
|
@itemFocused@ .downloadButton.downloadConfirmBlock,
|
||
|
@itemFocused@ .downloadButton.downloadCancel {
|
||
|
-moz-image-region: rect(0px, 80px, 16px, 64px);
|
||
|
}
|
||
|
@itemFocused@:hover .downloadButton.downloadConfirmBlock,
|
||
|
@itemFocused@:hover .downloadButton.downloadCancel {
|
||
|
-moz-image-region: rect(0px, 96px, 16px, 80px);
|
||
|
}
|
||
|
@itemFocused@:hover .downloadButton.downloadConfirmBlock:hover,
|
||
|
@itemFocused@:hover .downloadButton.downloadCancel:hover {
|
||
|
-moz-image-region: rect(0px, 112px, 16px, 96px);
|
||
|
}
|
||
|
@itemFocused@:hover .downloadButton.downloadConfirmBlock:active,
|
||
|
@itemFocused@:hover .downloadButton.downloadCancel:active {
|
||
|
-moz-image-region: rect(0px, 128px, 16px, 112px);
|
||
|
}
|
||
|
|
||
|
@itemFocused@ .downloadButton.downloadShow {
|
||
|
-moz-image-region: rect(16px, 80px, 32px, 64px);
|
||
|
}
|
||
|
@itemFocused@:hover .downloadButton.downloadShow {
|
||
|
-moz-image-region: rect(16px, 96px, 32px, 80px);
|
||
|
}
|
||
|
@itemFocused@:hover .downloadButton.downloadShow:hover {
|
||
|
-moz-image-region: rect(16px, 112px, 32px, 96px);
|
||
|
}
|
||
|
@itemFocused@:hover .downloadButton.downloadShow:active {
|
||
|
-moz-image-region: rect(16px, 128px, 32px, 112px);
|
||
|
}
|
||
|
|
||
|
@itemFocused@ .downloadButton.downloadRetry {
|
||
|
-moz-image-region: rect(32px, 80px, 48px, 64px);
|
||
|
}
|
||
|
@itemFocused@:hover .downloadButton.downloadRetry {
|
||
|
-moz-image-region: rect(32px, 96px, 48px, 80px);
|
||
|
}
|
||
|
@itemFocused@:hover .downloadButton.downloadRetry:hover {
|
||
|
-moz-image-region: rect(32px, 112px, 48px, 96px);
|
||
|
}
|
||
|
@itemFocused@:hover .downloadButton.downloadRetry:active {
|
||
|
-moz-image-region: rect(32px, 128px, 48px, 112px);
|
||
|
}
|
||
|
}
|