Bug 1244473 - Part 7 - Share rules for download items in the Library window. r=jaws

--HG--
extra : commitid : 2XYMslUx77q
extra : rebase_source : 25ac4ee745f847db0982dc5357b3f98f95eb3f3d
This commit is contained in:
Paolo Amadini 2016-02-04 14:20:42 +00:00
Родитель 0bc2d13405
Коммит c7ca419b9d
4 изменённых файлов: 101 добавлений и 156 удалений

Просмотреть файл

@ -4,50 +4,16 @@
%include ../../shared/downloads/allDownloadsViewOverlay.inc.css
#downloadsRichListBox {
/** The default listbox appearance comes with an unwanted margin. **/
-moz-appearance: none;
margin: 0;
}
/*** List items ***/
#downloadsRichListBox > richlistitem.download {
height: 5em;
padding: 5px 8px;
}
.downloadTypeIcon {
-moz-margin-end: 8px;
/* Prevent flickering when changing states. */
min-height: 32px;
min-width: 32px;
:root {
--downloads-item-height: 5em;
}
.blockedIcon {
list-style-image: url("moz-icon://stock/gtk-dialog-error?size=dialog");
}
.downloadTarget {
margin-bottom: 3px;
cursor: inherit;
}
.downloadDetails {
opacity: 0.7;
font-size: 95%;
cursor: inherit;
}
.downloadButton {
-moz-appearance: none;
background: transparent;
min-width: 0;
min-height: 0;
margin: 3px;
border: none;
padding: 5px;
list-style-image: url("chrome://browser/skin/downloads/buttons.png");
}
/*** Button icons ***/
.downloadButton.downloadConfirmBlock,

Просмотреть файл

@ -4,48 +4,10 @@
%include ../../shared/downloads/allDownloadsViewOverlay.inc.css
#downloadsRichListBox {
/** The default listbox appearance comes with an unwanted margin. **/
-moz-appearance: none;
margin: 0;
}
/*** List items ***/
#downloadsRichListBox > richlistitem.download {
height: 6em;
padding: 5px 8px;
}
.downloadTypeIcon {
-moz-margin-end: 8px;
/* Ensure icons are displayed at 32px size even on Retina display */
height: 32px;
width: 32px;
}
.blockedIcon {
list-style-image: url("chrome://global/skin/icons/Error.png");
}
.downloadTarget {
margin-bottom: 3px;
cursor: inherit;
}
.downloadDetails {
opacity: 0.7;
font-size: 95%;
cursor: inherit;
}
.downloadButton {
-moz-appearance: none;
background: transparent;
min-width: 0;
min-height: 0;
margin: 3px;
border: none;
padding: 5px;
list-style-image: url("chrome://browser/skin/downloads/buttons.png");
:root {
--downloads-item-height: 6em;
}
/*** Button icons ***/

Просмотреть файл

@ -1,3 +1,67 @@
/* 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/. */
/*** View and outer controls ***/
#downloadsRichListBox {
/** The default listbox appearance comes with an unwanted margin. **/
-moz-appearance: none;
margin: 0;
}
/*** List items ***/
#downloadsRichListBox > richlistitem.download {
height: var(--downloads-item-height);
}
%ifdef XP_WIN
@media (-moz-os-version: windows-xp) {
%endif
#downloadsRichListBox > richlistitem.download {
padding: 5px 8px;
}
%ifdef XP_WIN
}
%endif
.downloadTypeIcon {
-moz-margin-end: 8px;
width: 32px;
height: 32px;
}
%ifdef XP_WIN
@media not all and (-moz-os-version: windows-xp) {
.downloadTypeIcon {
-moz-margin-start: 8px;
}
}
%endif
.blockedIcon {
list-style-image: url("chrome://global/skin/icons/Error.png");
}
.downloadTarget {
margin-bottom: 3px;
cursor: inherit;
}
.downloadDetails {
opacity: 0.7;
font-size: 95%;
cursor: inherit;
}
.downloadButton {
-moz-appearance: none;
background: transparent;
min-width: 0;
min-height: 0;
margin: 3px;
border: none;
padding: 5px;
list-style-image: url("chrome://browser/skin/downloads/buttons.png");
}

Просмотреть файл

@ -4,61 +4,44 @@
%include ../../shared/downloads/allDownloadsViewOverlay.inc.css
#downloadsRichListBox {
/** The default listbox appearance comes with an unwanted margin. **/
-moz-appearance: none;
margin: 0;
/*** List items ***/
:root {
--downloads-item-height: 6em;
}
#downloadsRichListBox > richlistitem.download {
height: 6em;
}
@media (-moz-os-version: windows-xp) {
#downloadsRichListBox > richlistitem.download {
padding: 5px 8px;
}
}
.downloadTypeIcon {
-moz-margin-end: 8px;
/* explicitly size the icon, so size doesn't vary on hidpi systems */
height: 32px;
width: 32px;
}
/*** Highlighted list items ***/
@media not all and (-moz-os-version: windows-xp) {
.downloadTypeIcon {
-moz-margin-start: 8px;
@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.
*/
#downloadsRichListBox > richlistitem.download[selected] {
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;
}
}
}
.blockedIcon {
list-style-image: url("chrome://global/skin/icons/Error.png");
}
.downloadTarget {
margin-bottom: 3px;
cursor: inherit;
}
.downloadDetails {
opacity: 0.7;
font-size: 95%;
cursor: inherit;
}
.downloadButton {
-moz-appearance: none;
background: transparent;
min-width: 0;
min-height: 0;
margin: 3px;
border: none;
padding: 5px;
list-style-image: url("chrome://browser/skin/downloads/buttons.png");
}
/*** Button icons ***/
.downloadButton.downloadConfirmBlock,
@ -166,33 +149,3 @@ richlistitem.download:hover > .downloadButton.downloadRetry:active {
-moz-image-region: rect(32px, 128px, 48px, 112px);
}
}
@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.
*/
#downloadsRichListBox > richlistitem.download[selected] {
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;
}
}
}