Bug 1377003 - [Photon] Update sidebar tree styling on Linux. r=dao draft
authorNihanth Subramanya <nhnt11@gmail.com>
Tue, 18 Jul 2017 19:06:10 +0530
changeset 610581 159f62d3939ef99be0ba4b1330d9b8b48bc4beea
parent 610579 14394f2db1eb5d5e2457e3bc7dfe94c878800a85
child 637905 dcc01dcc020a7f5cffa0601abf18c3d5559e96d4
push id68941
push usernhnt11@gmail.com
push dateTue, 18 Jul 2017 14:23:55 +0000
reviewersdao
bugs1377003
milestone56.0a1
Bug 1377003 - [Photon] Update sidebar tree styling on Linux. r=dao MozReview-Commit-ID: 6w4pIXt0hc
browser/themes/linux/places/places.css
--- a/browser/themes/linux/places/places.css
+++ b/browser/themes/linux/places/places.css
@@ -1,15 +1,58 @@
 /* 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/. */
 
 /* Sidebars */
+
+#sidebar-search-container {
+  padding: 4px;
+}
+
+#search-box {
+  -moz-appearance: none;
+  border: 1px solid hsla(240, 5%, 5%, 0.2);
+  border-radius: 2px;
+}
+
+#search-box[focused] {
+  border-color: Highlight;
+}
+
+#viewButton {
+  -moz-appearance: none;
+  border-radius: 4px;
+  border: 1px solid transparent;
+  padding: 2px 4px;
+}
+
+#viewButton:hover {
+  background: hsla(240, 5%, 5%, 0.05);
+  border-color: rgba(0, 0, 0, 0.2);
+}
+
+#viewButton[open] {
+  background: hsla(240, 5%, 5%, 0.1);
+  border-color: rgba(0, 0, 0, 0.25);
+}
+
 .sidebar-placesTree {
   margin: 0;
+  -moz-appearance: none;
+  border: 0;
+  background: transparent;
+}
+
+.sidebar-placesTreechildren::-moz-tree-row {
+  height: 24px;
+}
+
+.sidebar-placesTreechildren::-moz-tree-image(container,selected) {
+  fill: HighlightText;
 }
 
 .sidebar-placesTreechildren::-moz-tree-cell(leaf) ,
 .sidebar-placesTreechildren::-moz-tree-image(leaf) {
   cursor: pointer;
 }
 
 .sidebar-placesTreechildren::-moz-tree-cell-text(leaf, hover) {