commit ec4fbe8bed76e5fddca45cfd05e0224d533056c1
parent f1b545e64023dfdcb977c347d5e3bd36beeb59aa
Author: Lootyhoof <lootyhoofer@gmail.com>
Date: Sun, 27 Dec 2015 20:42:12 +0000
Add .downloadDisplayName
Diffstat:
2 files changed, 13 insertions(+), 10 deletions(-)
diff --git a/src/chrome/browser/downloads/allDownloadsViewOverlay.css b/src/chrome/browser/downloads/allDownloadsViewOverlay.css
@@ -28,7 +28,8 @@
list-style-image: url("chrome://global/skin/icons/Error.png");
}
-.downloadTarget {
+.downloadTarget,
+.downloadDisplayName {
margin-bottom: 3px;
cursor: inherit;
}
diff --git a/src/chrome/browser/downloads/downloads.css b/src/chrome/browser/downloads/downloads.css
@@ -93,19 +93,19 @@ richlistitem[type="download"]:first-child {
list-style-image: url("chrome://global/skin/icons/Error.png");
}
-/* We hold .downloadTarget, .downloadProgress and .downloadDetails inside of
- a vbox with class .downloadContainer. We set the font-size of the entire
- container to 90% because:
+/* We hold .downloadTarget, .downloadDisplayName, .downloadProgress and
+ .downloadDetails inside of a vbox with class .downloadContainer.
+ We set the font-size of the entire container to 90% because:
1) This is the size that we want .downloadDetails to be
2) The container's width is set by localizers by &downloadDetails.width;,
which is a ch unit. Since this is the value that should control the
panel width, we apply it to the outer container to constrain
- .downloadTarget and .downloadProgress.
+ .downloadTarget/.downloadDisplayName and .downloadProgress.
- Finally, since we want .downloadTarget's font-size to be at 100% of the
- font-size of .downloadContainer's parent, we use calc to go from the
- smaller font-size back to the original font-size.
+ Finally, since we want .downloadTarget/.downloadDisplayName's font-size
+ to be at 100% of the font-size of .downloadContainer's parent,
+ we use calc to go from the smaller font-size back to the original font-size.
*/
#downloadsSummaryDetails,
.downloadContainer {
@@ -113,12 +113,14 @@ richlistitem[type="download"]:first-child {
}
#downloadsSummaryDescription,
-.downloadTarget {
+.downloadTarget,
+.downloadDisplayName {
margin-bottom: 6px;
cursor: inherit;
}
-.downloadTarget {
+.downloadTarget,
+.downloadDisplayName {
font-size: calc(100%/0.9);
}