Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit b330a92

Browse files
committed
πŸ’„ Restyle downloads sidebar
This includes some slight refactoring to make things work better
1 parent eb05bbb commit b330a92

File tree

4 files changed

+48
-2
lines changed

4 files changed

+48
-2
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/* This Source Code Form is subject to the terms of the Mozilla Public
2+
* License, v. 2.0. If a copy of the MPL was not distributed with this
3+
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4+
5+
/* ========================================================================== */
6+
/* about:downloads */
7+
8+
#contentAreaDownloadsView {
9+
background: var(--tab-selected-bgcolor, var(--toolbar-bgcolor));
10+
}
11+
12+
#downloadsListBox {
13+
border: none;
14+
border-radius: 0;
15+
background: none;
16+
}
17+
18+
#downloadsListBox > richlistitem {
19+
border-radius: 4px;
20+
transition: background-color 0.2s ease-in-out;
21+
22+
margin-bottom: 8px;
23+
}
24+
25+
#downloadsListBox > richlistitem:not([selected]):hover {
26+
background-color: var(--in-content-box-background);
27+
}
28+
29+
@media (prefers-reduced-motion) {
30+
#downloadsListBox > richlistitem {
31+
transition: none;
32+
}
33+
}

β€Žsrc/browser/themes/pulse/jar.inc.mnβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@
77
# be specified once. As a result, the source file paths are relative
88
# to the location of the actual manifest.
99

10-
* skin/classic/browser/sidebar_tabs.css (../pulse/sidebar_tabs.css)
10+
* skin/classic/browser/pulse/sidebar_tabs.css (../pulse/sidebar_tabs.css)
11+
skin/classic/browser/pulse/downloads.css (../pulse/content/downloads.css)
1112
skin/classic/browser/addons/shared.css (../pulse/addons/shared.css)

β€Žsrc/browser/themes/pulse/sidebar_tabs.cssβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
44

55
/* ========================================================================== */
6-
/* SIDE BAR STYLES */
6+
/* SIDEBAR TABS STYLES */
77

88
:root {
99
--sidebar-inside-padding: 8px;
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/browser/themes/shared/downloads/allDownloadsView.inc.css b/browser/themes/shared/downloads/allDownloadsView.inc.css
2+
index 204e6a95a17a58789c5992983196542104f6cf84..43f7cae36b9b60d27d2442efe3f48f7cbea8bcaa 100644
3+
--- a/browser/themes/shared/downloads/allDownloadsView.inc.css
4+
+++ b/browser/themes/shared/downloads/allDownloadsView.inc.css
5+
@@ -4,6 +4,7 @@
6+
7+
@import "chrome://browser/skin/downloads/progressmeter.css";
8+
@import "chrome://browser/skin/downloads/download-blockedStates.css";
9+
+@import "chrome://browser/skin/pulse/downloads.css";
10+
11+
/*** View and outer controls ***/
12+

0 commit comments

Comments
Β (0)