Skip to content

Commit fb4762d

Browse files
diéssica gurskasjasonLaster
authored andcommitted
Improve source tree and search results (firefox-devtools#2836)
* Change colors for tree and search results in dark theme * Fix collapsing borders in search and search results
1 parent cd7e124 commit fb4762d

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

src/components/shared/ManagedTree.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
background-color: var(--theme-selection-background);
2626
}
2727

28+
.theme-dark .tree .node.focused {
29+
background-color: var(--theme-selection-background-semitransparent);
30+
}
31+
2832
html:not([dir="rtl"]) .tree .node > div {
2933
margin-left: 10px;
3034
}

src/components/shared/ResultList.css

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
21
.result-list {
32
list-style: none;
43
width: 100%;
54
background-color: var(--theme-toolbar-background);
65
margin: 0px;
76
padding: 0px;
87
overflow: auto;
8+
width: calc(100% - 1px); /* 1px fixes the hidden right border */
99
}
1010

1111
.result-list.big {
@@ -23,10 +23,7 @@
2323
padding: 4px 13px;
2424
display: flex;
2525
justify-content: space-between;
26-
}
27-
28-
.result-list li:first-child {
29-
border-top: none;
26+
border: 1px solid transparent;
3027
}
3128

3229
.result-list.big li {
@@ -41,19 +38,18 @@
4138
}
4239

4340
.result-list li.selected {
44-
border: 1px solid var(--theme-selection-background);
45-
}
46-
47-
.result-list.big li.selected {
48-
padding-left: 9px;
49-
padding-top: 9px;
41+
border-color: var(--theme-selection-background);
5042
}
5143

5244
.search-bar .result-list li.selected {
5345
background-color: var(--theme-selection-background);
5446
color: white;
5547
}
5648

49+
.theme-dark .search-bar .result-list li.selected {
50+
background-color: var(--theme-body-background);
51+
}
52+
5753
.result-list li .title {
5854
line-height: 1.5em;
5955
word-break: break-all;

0 commit comments

Comments
 (0)